Interface ComputerResult
-
- All Superinterfaces:
AutoCloseable
public interface ComputerResult extends AutoCloseable
The result of theGraphComputer
's computation. This is returned in aFuture
byGraphComputer.submit()
. A GraphComputer computation yields two things: an updated view of the computed onGraph
and any computational sideEffects calledMemory
.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the computedGraphComputer
result.Graph
graph()
Memory
memory()
Get the GraphComputer's computational sideEffects known asMemory
.
-
-
-
Method Detail
-
graph
Graph graph()
- Returns:
- The computed graph
-
memory
Memory memory()
Get the GraphComputer's computational sideEffects known asMemory
.- Returns:
- the computed memory
-
close
void close() throws Exception
Close the computedGraphComputer
result. The semantics of "close" differ depending on the underlying implementation. In general, when aComputerResult
is closed, the computed values are no longer available to the user.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-