|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface GraphMatchingPlatform.PlatformShadowGraph
Interface for graphs that are shadows of a master graph (most likely the platform principal graph).
Method Summary | |
---|---|
boolean |
canIncrement()
|
java.util.Map<GraphComponent,TrackingGraph.Operation> |
getNextSequenceOperations()
Retrieves the operations that will be applied at the next sequence increment. |
int |
getSequence()
|
int |
incrementSequence()
Takes one transaction from the graph's transaction queue and applies it to the current state of the graph. |
int |
incrementSequence(int targetSequence)
Takes several transactions from the graph's transaction queue and applies them to the current state of the graph, in order to reach the target sequence number. |
int |
incrementSequenceFastForward()
Brings the graph up to date with its master graph, transaction by transaction. |
Methods inherited from interface net.xqhs.graphs.graph.Graph |
---|
add, addAll, addEdge, addNode, contains, getComponents, getEdges, getInEdges, getNodes, getNodesNamed, getOutEdges, m, n, remove, removeAll, removeEdge, removeNode, size |
Method Detail |
---|
int getSequence()
java.util.Map<GraphComponent,TrackingGraph.Operation> getNextSequenceOperations()
null
if the shadow is synchronized with its master.boolean canIncrement()
true
if there are transactions in the transaction queue that can be applied to the
current state of the graph.
java.lang.IllegalStateException
- if the method is called on a graph that is not a shadow graph.int incrementSequence()
java.lang.IllegalStateException
- if the method is called on a graph that is not a shadow graph.int incrementSequence(int targetSequence)
targetSequence
- - the sequence number to reach before stopping.
targetSequence
.
java.lang.IllegalStateException
- if the method is called on a graph that is not a shadow graph.int incrementSequenceFastForward()
java.lang.IllegalStateException
- if the method is called on a graph that is not a shadow graph.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |