jopt.js.spi.graph.arc
Class ForwardCheckReflexArc

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.ForwardCheckReflexArc
All Implemented Interfaces:
jopt.csp.spi.arcalgorithm.graph.arc.Arc

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

Arc to enforce and maintain consistency between resources and activities

Author:
James Boerkoel

Field Summary
 
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc
BINARY, GENERIC, HYPER, NODE, SCHEDULE
 
Constructor Summary
ForwardCheckReflexArc(ResourceNode[] sources, ActivityNode target, int operationID)
          Constructs a forward check reflex arc
 
Method Summary
 int getArcType()
           
 int[] getSourceDependencies()
           
 jopt.csp.spi.arcalgorithm.graph.node.Node[] getSourceNodes()
           
 jopt.csp.spi.arcalgorithm.graph.node.Node[] getTargetNodes()
           
 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

ForwardCheckReflexArc

public ForwardCheckReflexArc(ResourceNode[] sources,
                             ActivityNode target,
                             int operationID)
Constructs a forward check reflex arc

Parameters:
sources - resource nodes that are the targets
target - activity node which is the source
operationID - operationID of 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()

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