Interface ComputerResult
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DefaultComputerResult
public interface ComputerResult extends AutoCloseable
The result of theGraphComputer's computation. This is returned in aFuturebyGraphComputer.submit(). A GraphComputer computation yields two things: an updated view of the computed onGraphand any computational sideEffects calledMemory.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the computedGraphComputerresult.Graphgraph()Memorymemory()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 ExceptionClose 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
-
-