|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.spi.arcalgorithm.util.NodeQueue
Represents a queue of nodes to be propagated
Constructor Summary | |
NodeQueue()
Constructor |
Method Summary | |
void |
add(Node node)
Adds an node to the queue |
void |
add(Node node,
int eventType)
Adds an node change to the queue |
void |
add(Node node,
int eventType,
ArcQueue arcs)
Adds a node change to the queue. |
void |
addArc(Arc arc)
Adds source nodes of arc to queue |
void |
addBinaryArc(BinaryArc arc)
Adds source nodes of a binary arc to the queue |
void |
addGenericArc(GenericArc arc)
Adds source nodes of a generic arc to the queue |
void |
addHyperArc(HyperArc arc)
Adds source nodes of a hyper arc to the queue |
void |
addNodeArc(NodeArc arc)
Adds source nodes of a node arc to the queue |
void |
addScheduleArc(SchedulerArc arc)
Adds source nodes of a schedule arc to the queue |
void |
clear()
Removes all nodes in the queue |
boolean |
contains(Node n)
Returns true if a node is in the queue |
ArcQueue |
getCurrentArcs()
Returns the current arc list associated with the last retrieved node |
boolean |
hasNext()
Returns true if queue has a next arc available |
Node |
next()
Returns next node on queue or null if none is available |
NodeChangeEvent |
nextChange()
Returns next node change on queue or null if none is available |
NodeChangeEvent |
remove(Node node)
Removes a node change from the queue |
int |
size()
Returns size of arc queue |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NodeQueue()
Method Detail |
public void clear()
public boolean contains(Node n)
public int size()
public boolean hasNext()
public Node next()
public NodeChangeEvent nextChange()
public ArcQueue getCurrentArcs()
public void add(Node node)
public void add(Node node, int eventType, ArcQueue arcs)
public void add(Node node, int eventType)
public void addNodeArc(NodeArc arc)
public void addBinaryArc(BinaryArc arc)
public void addHyperArc(HyperArc arc)
public void addGenericArc(GenericArc arc)
public void addScheduleArc(SchedulerArc arc)
public void addArc(Arc arc)
public NodeChangeEvent remove(Node node)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |