public class DefaultComputerResult extends Object implements ComputerResult
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
.Modifier and Type | Field and Description |
---|---|
protected Graph |
graph |
protected Memory |
memory |
Constructor and Description |
---|
DefaultComputerResult(Graph graph,
Memory memory) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the computed
GraphComputer result. |
Graph |
graph()
|
Memory |
memory()
Get the GraphComputer's computational sideEffects known as
Memory . |
String |
toString() |
public Graph graph()
ComputerResult
graph
in interface ComputerResult
public Memory memory()
ComputerResult
Memory
.memory
in interface ComputerResult
public void close()
ComputerResult
GraphComputer
result. The semantics of "close" differ depending on the underlying implementation.
In general, when a ComputerResult
is closed, the computed values are no longer available to the user.close
in interface AutoCloseable
close
in interface ComputerResult
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.