|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.variable.VariableChangeBase jopt.csp.spi.arcalgorithm.constraint.AbstractConstraint jopt.js.spi.constraint.TemporalConstraint
A constraint to maintain temporal relations between activities.
Field Summary |
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 | |
TemporalConstraint(ActivityExpr source,
ActivityExpr target,
int sourceEntity,
int targetEntity,
int relation)
Constructs a temporal constraint |
|
TemporalConstraint(ActivityExpr source,
ActivityExpr target,
int sourceEntity,
int targetEntity,
int relation,
int delay)
Constructs a temporal constraint |
|
TemporalConstraint(ActivityExpr source,
jopt.csp.spi.arcalgorithm.variable.IntExpr target,
int sourceEntity,
int targetEntity,
int relation)
Constructs a temporal constraint |
|
TemporalConstraint(ActivityExpr source,
jopt.csp.spi.arcalgorithm.variable.IntExpr target,
int sourceEntity,
int targetEntity,
int relation,
int delay)
Constructs a temporal constraint |
|
TemporalConstraint(jopt.csp.spi.arcalgorithm.variable.IntExpr source,
ActivityExpr target,
int sourceEntity,
int targetEntity,
int relation)
Constructs a temporal constraint |
|
TemporalConstraint(jopt.csp.spi.arcalgorithm.variable.IntExpr source,
ActivityExpr target,
int sourceEntity,
int targetEntity,
int relation,
int delay)
Constructs a temporal constraint |
Method Summary | |
void |
addVariableChangeListener(jopt.csp.spi.solver.VariableChangeListener listener)
Adds a listener interested in variable change events |
jopt.csp.spi.arcalgorithm.graph.arc.Arc[] |
getBooleanSourceArcs()
|
jopt.csp.spi.arcalgorithm.graph.node.Node[] |
getBooleanSourceNodes()
|
jopt.js.api.variable.SchedulerExpression[] |
getExpressions()
Returns any and all Scheduler Expressions that are involved with the problem |
void |
postToGraph()
Posts the constraint to the graph |
Methods inherited from class jopt.csp.spi.arcalgorithm.constraint.AbstractConstraint |
associateToGraph, getGraphConstraintFragment, getPostableOpposite, isFalse, isTrue, isViolated, toBoolean |
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.VariableChangeBase |
removeVariableChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.solver.VariableChangeSource |
removeVariableChangeListener |
Constructor Detail |
public TemporalConstraint(ActivityExpr source, ActivityExpr target, int sourceEntity, int targetEntity, int relation, int delay)
source
- Activity that acts the sourcetarget
- activity that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATdelay
- the amount of delay that must occur between the twopublic TemporalConstraint(jopt.csp.spi.arcalgorithm.variable.IntExpr source, ActivityExpr target, int sourceEntity, int targetEntity, int relation, int delay)
source
- expr that acts the sourcetarget
- activity that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATdelay
- the amount of delay that must occur between the twopublic TemporalConstraint(ActivityExpr source, jopt.csp.spi.arcalgorithm.variable.IntExpr target, int sourceEntity, int targetEntity, int relation, int delay)
source
- Activity that acts the sourcetarget
- expression that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATdelay
- the amount of delay that must occur between the twopublic TemporalConstraint(ActivityExpr source, ActivityExpr target, int sourceEntity, int targetEntity, int relation)
source
- Activity that acts the sourcetarget
- activity that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATpublic TemporalConstraint(jopt.csp.spi.arcalgorithm.variable.IntExpr source, ActivityExpr target, int sourceEntity, int targetEntity, int relation)
source
- expression that acts the sourcetarget
- activity that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATpublic TemporalConstraint(ActivityExpr source, jopt.csp.spi.arcalgorithm.variable.IntExpr target, int sourceEntity, int targetEntity, int relation)
source
- Activity that acts the sourcetarget
- expression that acts as the targetsourceEntity
- an int representing which of the entities (start, end, duration) of the source is being referencedtargetEntity
- an int representing which of the entities (start, end, duration) of the target is being referencedrelation
- an int representing a constant BEFORE, AFTER, ATMethod Detail |
public jopt.js.api.variable.SchedulerExpression[] getExpressions()
SchedulerConstraint
getExpressions
in interface SchedulerConstraint
public void postToGraph()
postToGraph
in interface jopt.csp.spi.arcalgorithm.graph.arc.PostableConstraint
public void addVariableChangeListener(jopt.csp.spi.solver.VariableChangeListener listener)
addVariableChangeListener
in interface jopt.csp.spi.solver.VariableChangeSource
public jopt.csp.spi.arcalgorithm.graph.arc.Arc[] getBooleanSourceArcs()
getBooleanSourceArcs
in interface jopt.csp.spi.arcalgorithm.graph.arc.PostableConstraint
public jopt.csp.spi.arcalgorithm.graph.node.Node[] getBooleanSourceNodes()
getBooleanSourceNodes
in interface jopt.csp.spi.arcalgorithm.graph.arc.PostableConstraint
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |