jopt.csp.spi.arcalgorithm.graph.arc.node
Class NodeArc

java.lang.Object
  extended byjopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
      extended byjopt.csp.spi.arcalgorithm.graph.arc.node.NodeArc
All Implemented Interfaces:
Arc
Direct Known Subclasses:
NodeNumAbsArc, NodeNumArc, NodeSetArc

public abstract class NodeArc
extends AbstractArc


Field Summary
 
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
BINARY, GENERIC, HYPER, NODE, SCHEDULE
 
Method Summary
 int getArcType()
          Returns value indicating type of Arc
 int getComplexity()
          Returns a value representing the complexity of the arc
 Node getSourceNode()
          Returns the source node of this Arc
 Node getTargetNode()
          Returns the source node of this Arc
 void propagate(Node n)
          Same as propagate
 
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
setAlgorithmStrength, setUseDomainDeltas
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
propagate
 

Method Detail

getSourceNode

public Node getSourceNode()
Returns the source node of this Arc


getTargetNode

public Node getTargetNode()
Returns the source node of this Arc


getArcType

public int getArcType()
Returns value indicating type of Arc


propagate

public void propagate(Node n)
               throws jopt.csp.variable.PropagationFailureException
Same as propagate

Parameters:
n - Source node that caused propagation to occur
Throws:
jopt.csp.variable.PropagationFailureException - If domain of target node becomes empty

getComplexity

public int getComplexity()
Returns a value representing the complexity of the arc