java.lang.Object
de.grogra.rgg.model.VVQueue
- All Implemented Interfaces:
Queue
This XL queue can be used for parallel application of
vertex-vertex operations on graph
rotation systems. Given an instance
g
of
VVQueue
, one can write:
g <== comma-separated list of GRS operations;where the operations include
v [a b c]
- Sets cyclic neighborhood of v to (a, b, c)
a b in v
- Modifies cyclic neighborhood of v such that (a, b) is part of the cycle
~a in v
- Removes a from cyclic neighbourhood of v
a >> b in v
- Replaces a by b in cyclic neighborhood of v
p <+ a +> q
- Splits edge from p to q and inserts a
- Author:
- Ole Kniemeyer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNeighbor
(GRSVertex neighbor) void
clear()
Clears the queue.void
clearSegmentsToExclude
(int[] segs) Returns the descriptor which was used to create this queue.void
insertAfter
(GRSVertex v, GRSVertex old, GRSVertex in) void
insertBefore
(GRSVertex v, GRSVertex old, GRSVertex in) void
makeFollower
(GRSVertex a, GRSVertex b, GRSVertex in) void
markSegment
(int n) operator$shl
(GRSVertex neighbor) boolean
process
(int[] segs) Processes all queued tasks.void
void
void
resetToSegment
(int n) setNeighbors
(GRSVertex vertex) void
-
Field Details
-
DESCRIPTOR
-
-
Method Details
-
getDescriptor
Description copied from interface:Queue
Returns the descriptor which was used to create this queue.- Specified by:
getDescriptor
in interfaceQueue
- Returns:
- descriptor of this queue
- See Also:
-
insertBefore
-
insertAfter
-
makeFollower
-
remove
-
replace
-
setNeighbors
-
addNeighbor
-
operator$shl
-
splitEdge
-
process
Description copied from interface:Queue
Processes all queued tasks. This method is invoked byQueueCollection.process(int[])
.- Specified by:
process
in interfaceQueue
- Returns:
true
iff the execution of tasks resulted in modifications to theGraph
- Throws:
RuntimeModelException
- if some error occurs during execution
-
clearSegmentsToExclude
public void clearSegmentsToExclude(int[] segs) - Specified by:
clearSegmentsToExclude
in interfaceQueue
-
clear
public void clear()Description copied from interface:Queue
Clears the queue. This is invoked by theQueueCollection
in order to reuse the queue for a new transformation step. -
markSegment
public void markSegment(int n) - Specified by:
markSegment
in interfaceQueue
-
resetToSegment
public void resetToSegment(int n) - Specified by:
resetToSegment
in interfaceQueue
-