Interface ComputerResult
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DefaultComputerResult
The result of the
GraphComputer's computation. This is returned in a Future by
GraphComputer.submit(). A GraphComputer computation yields two things: an updated view of the computed on
Graph and any computational sideEffects called Memory.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the computedGraphComputerresult.graph()memory()Get the GraphComputer's computational sideEffects known asMemory.
-
Method Details
-
graph
Graph graph()- Returns:
- The computed graph
-
memory
Memory memory()Get the GraphComputer's computational sideEffects known asMemory.- Returns:
- the computed memory
-
close
Close the computedGraphComputerresult. The semantics of "close" differ depending on the underlying implementation. In general, when aComputerResultis closed, the computed values are no longer available to the user.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-