jopt.js.spi.graph.arc
Class ForwardCheckArc

java.lang.Object
  extended byjopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
      extended byjopt.csp.spi.arcalgorithm.graph.arc.SchedulerArc
          extended byjopt.js.spi.graph.arc.ForwardCheckArc
All Implemented Interfaces:
jopt.csp.spi.arcalgorithm.graph.arc.Arc

public class ForwardCheckArc
extends jopt.csp.spi.arcalgorithm.graph.arc.SchedulerArc

Arc to enforce and maintain consistency between activities and resources

Author:
James Boerkoel

Field Summary
 
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
BINARY, GENERIC, HYPER, NODE, SCHEDULE
 
Constructor Summary
ForwardCheckArc(ActivityNode source, ResourceNode[] targets, int operationID)
          Constructs a forward check ark
 
Method Summary
 int getArcType()
           
 int[] getSourceDependencies()
           
 jopt.csp.spi.arcalgorithm.graph.node.Node[] getSourceNodes()
           
 jopt.csp.spi.arcalgorithm.graph.node.Node[] getTargetNodes()
          Returns the target nodes of this Arc
 void propagate()
           
 void propagate(jopt.csp.spi.arcalgorithm.graph.node.Node src)
           
 
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.arc.SchedulerArc
getComplexity
 
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
 

Constructor Detail

ForwardCheckArc

public ForwardCheckArc(ActivityNode source,
                       ResourceNode[] targets,
                       int operationID)
Constructs a forward check ark

Parameters:
source - activity node on which this arc is defined
targets - resource node on which this arc is defined
operationID - operation id of the operation that this arc represents
Method Detail

getArcType

public int getArcType()

getSourceNodes

public jopt.csp.spi.arcalgorithm.graph.node.Node[] getSourceNodes()

getTargetNodes

public jopt.csp.spi.arcalgorithm.graph.node.Node[] getTargetNodes()
Returns the target nodes of this Arc


getSourceDependencies

public int[] getSourceDependencies()

propagate

public void propagate()
               throws jopt.csp.variable.PropagationFailureException
Throws:
jopt.csp.variable.PropagationFailureException

propagate

public void propagate(jopt.csp.spi.arcalgorithm.graph.node.Node src)
               throws jopt.csp.variable.PropagationFailureException
Throws:
jopt.csp.variable.PropagationFailureException