public class AllenInterval extends MultiVariable
backupForSerialization, constraints, internalSolvers, variablesattributes, dependentVariables, id, logger, solver| Constructor and Description |
|---|
AllenInterval(ConstraintSolver cs,
int id,
ConstraintSolver[] internalSolvers,
Variable[] internalVars) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Variable arg0) |
protected Constraint[] |
createInternalConstraints(Variable[] variables)
This method must be implemented to define the internal lower-level
Constraints of this
MultiVariable. |
Bounds |
getDuration() |
long |
getEET() |
TimePoint |
getEnd() |
long |
getEST() |
long |
getLET() |
long |
getLST() |
java.lang.String |
getName() |
TimePoint |
getStart() |
boolean |
isIntersectingEarliestStartTime(AllenInterval i)
Returns
true iff the the domain of this AllenInterval
intersects the domain of a given AllenInterval in the earliest time. |
void |
setDomain(Domain d)
Set the domain of this variable.
|
void |
setEnd(TimePoint e) |
void |
setName(java.lang.String name) |
void |
setStart(TimePoint s) |
java.lang.String |
toString()
Get a
String representation of this Variable. |
drawVariableHierarchy, getDescription, getDomain, getInternalConstraints, getInternalConstraintSolvers, getInternalVariables, getVariableHierarchy, getVariablesFromVariableHierarchy, setComponentaddDependentVariables, dependsOn, equals, getAncestorVariable, getAttributes, getColor, getComponent, getConstraintSolver, getDependentVariables, getID, getMarking, getOwner, getParentVariable, getRecursivelyDependentVariables, getRootVariable, hashCode, isDependentVariable, removeDependentVariables, setAttributes, setColor, setDependentVariables, setMarking, setOwner, setParentVariablepublic AllenInterval(ConstraintSolver cs, int id, ConstraintSolver[] internalSolvers, Variable[] internalVars)
public boolean isIntersectingEarliestStartTime(AllenInterval i)
true iff the the domain of this AllenInterval
intersects the domain of a given AllenInterval in the earliest time.i - The AllenInterval to check intersection with.true iff the the domain of this AllenInterval
intersects the domain of a given AllenInterval in the earliest time.public void setName(java.lang.String name)
public java.lang.String getName()
protected Constraint[] createInternalConstraints(Variable[] variables)
MultiVariableConstraints of this
MultiVariable.createInternalConstraints in class MultiVariablevariables - The internal variables among which the Constraints should be defined.Constraints of this
MultiVariable.public void setDomain(Domain d)
Variablepublic TimePoint getStart()
public TimePoint getEnd()
public void setStart(TimePoint s)
public void setEnd(TimePoint e)
public long getEST()
public long getLST()
public long getEET()
public long getLET()
public Bounds getDuration()
public java.lang.String toString()
VariableString representation of this Variable.public int compareTo(Variable arg0)