| org.cougaar.planning.ldm.plan.Constraint
All known Subclasses: org.cougaar.planning.ldm.plan.ConstraintImpl,
Constraint | public interface Constraint (Code) | | Constraint Interface
A Constraint is part of a Workflow.
Constraints provide pair-wise precedence
relationship information about the Tasks
contained in the Workflow. A Task can have
more than one applicable Constraint.
|
COINCIDENT | int COINCIDENT(Code) | | |
GREATERTHAN | int GREATERTHAN(Code) | | |
computeValidConstrainedValue | double computeValidConstrainedValue()(Code) | | |
getConstrainedAspect | int getConstrainedAspect()(Code) | | Returns the aspect type of the constraint for the constrained task
For non temporal constraints, constraining aspect and constrained aspect
will be the same. For temporal constraints, they can be different.
Eg (START_TIME and END_TIME)
|
getConstrainedEventObject | ConstraintEvent getConstrainedEventObject()(Code) | | Return the ConstraintEvent object for the constrained task
|
getConstrainedTask | Task getConstrainedTask()(Code) | | Task mytask = myconstraint.getConstrainedTask();
Task Returns a Task which is constrained by another event or Task. |
getConstrainingAspect | int getConstrainingAspect()(Code) | | Returns the aspect type of the constraint for the constraining task
For non temporal constraints, constraining aspect and constrained aspect
will be the same. For temporal constraints, they can be different.
Eg (START_TIME and END_TIME)
|
getConstrainingEventObject | ConstraintEvent getConstrainingEventObject()(Code) | | Return the ConstraintEvent object for the constraining task
|
getConstrainingTask | Task getConstrainingTask()(Code) | | Task mytask = myconstraint.getConstrainingTask();
Task Returns the Task which is constraining another event or Task. |
getConstraintOrder | int getConstraintOrder()(Code) | | Returns an int which represents the
order of the Constraint.
int myorder = myconstraint.getConstraintOrder();
int The int valuewill be equal to "0" (COINCIDENT), "-1" (BEFORE) or "1" (AFTER).There are also order analogues for constraints on non-temporal aspects.These are "1" (GREATERTHAN), "-1" (LESSTHAN) or "0" (EQUALTO). |
getOffsetOfConstraint | double getOffsetOfConstraint()(Code) | | Returns a double which represents the offset
of the Constraint.
the value to be added to the constraining value beforecomparing to the constrained value. |
|
|