|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.graph.arc.AbstractArc jopt.csp.spi.arcalgorithm.graph.arc.generic.GenericArc jopt.csp.spi.arcalgorithm.graph.arc.generic.GenericNumSummationArc
Arc representing Z < summation(Ai, i in [1..100]) etc.
Field Summary |
Fields inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.Arc |
BINARY, GENERIC, HYPER, NODE, SCHEDULE |
Fields inherited from interface jopt.csp.spi.util.NumConstants |
ADD, DIVIDE, DIVIDE_BY, DIVIDE_BY_CEIL, DIVIDE_BY_FLOOR, DIVIDE_CEIL, DIVIDE_FLOOR, DOUBLE, DOUBLE_NEG_INF, DOUBLE_POS_INF, DOUBLE_ZERO, EQ, FLOAT, FLOAT_NEG_INF, FLOAT_POS_INF, FLOAT_ZERO, GEQ, GT, HALF_PI, INTEGER, INTEGER_MAX, INTEGER_MIN, INTEGER_ZERO, LEQ, LONG, LONG_MAX, LONG_MIN, LONG_ZERO, LT, MULTIPLY, NEQ, ONE_AND_HALF_PI, PI, RANGE, SUBTRACT, SUBTRACT_FROM, TWO_PI |
Constructor Summary | |
GenericNumSummationArc(GenericNumNode a,
NumNode tempNode,
Node z,
int nodeType,
int arcType,
GenericIndex[] indexRange,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Constructor |
Method Summary | |
void |
choicePointPop()
Method invoked when choice point pop event is fired |
void |
choicePointPush()
Method invoked when choice point push event is fired |
int |
getComplexity()
Returns a value representing the complexity of the arc |
void |
nodeChange(NodeChangeEvent ev)
Method invoked by node when a node change event is fired |
void |
propagate()
Attempts to reduce values in target node domain based on values in all source nodes |
void |
propagate(Node src)
Attempts to reduce values in target node domain based on values in given source node |
Methods inherited from class jopt.csp.spi.arcalgorithm.graph.arc.generic.GenericArc |
getArcType, getSourceDependencies, getSourceNodes, getTargetNodes |
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 |
getArcType, setAlgorithmStrength, setUseDomainDeltas |
Constructor Detail |
public GenericNumSummationArc(GenericNumNode a, NumNode tempNode, Node z, int nodeType, int arcType, GenericIndex[] indexRange, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
a
- A variable in equationtempNode
- An intermediate node used in calculationsz
- Z variable in equationnodeType
- Node variable type (Integer, Long, Float, Decimal)arcType
- Arc relation type (Eq, Lt, Gt, etc.)indexRange
- Array of indices that summation is oversourceIdxRestriction
- Optional restriction of values placed on source index rangesMethod Detail |
public void nodeChange(NodeChangeEvent ev)
NodeChangeListener
nodeChange
in interface NodeChangeListener
public void choicePointPop()
ChoicePointEventListener
choicePointPop
in interface ChoicePointEventListener
public void choicePointPush()
ChoicePointEventListener
choicePointPush
in interface ChoicePointEventListener
public void propagate() throws jopt.csp.variable.PropagationFailureException
Arc
propagate
in interface Arc
jopt.csp.variable.PropagationFailureException
- If domain of target node becomes emptypublic void propagate(Node src) throws jopt.csp.variable.PropagationFailureException
Arc
propagate
in interface Arc
src
- Source node that caused propagation to occur
jopt.csp.variable.PropagationFailureException
- If domain of target node becomes emptypublic int getComplexity()
Arc
getComplexity
in interface Arc
getComplexity
in class GenericArc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |