|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for objects that need to watch the graph for arc and node addition, removal and changes. Used by the arc consistency algorithms to observe the initial creation of the graph and any subsequent arcs being added during operations.
Method Summary | |
void |
arcAddedEvent(NodeArcGraph graph,
Arc arc)
Called when an arc is added to the graph as a result of arcs being posted by constraints. |
void |
arcRemovedEvent(NodeArcGraph graph,
Arc arc)
Called when an arc is removed from the graph, generally because the choice point stack is being popped. |
void |
nodeChangedEvent(NodeArcGraph graph,
NodeChangeEvent evt)
Called when a node in the graph has a domain change. |
void |
nodeRemovedEvent(NodeArcGraph graph,
Node n)
Called when a node is removed from the graph, generally because the choice point stack is being popped. |
Method Detail |
public void arcAddedEvent(NodeArcGraph graph, Arc arc)
public void arcRemovedEvent(NodeArcGraph graph, Arc arc)
public void nodeRemovedEvent(NodeArcGraph graph, Node n)
public void nodeChangedEvent(NodeArcGraph graph, NodeChangeEvent evt)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |