jopt.js.spi.graph.arc
Class ForwardCheckArc
java.lang.Object
jopt.csp.spi.arcalgorithm.graph.arc.AbstractArc
jopt.csp.spi.arcalgorithm.graph.arc.SchedulerArc
jopt.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
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc |
BINARY, GENERIC, HYPER, NODE, SCHEDULE |
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 |
ForwardCheckArc
public ForwardCheckArc(ActivityNode source,
ResourceNode[] targets,
int operationID)
- Constructs a forward check ark
- Parameters:
source
- activity node on which this arc is definedtargets
- resource node on which this arc is definedoperationID
- operation id of the operation that this arc represents
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