public class SpatioTemporalVariable extends MultiVariable
SpatioTemporalVariable is a MultiVariable composed of an AllenInterval (temporal part)
and a GeometricShapeVariable (spatial part). Constraints of type AllenIntervalConstraint and
DE9IMRelation can be added to SpatioTemporalVariables.backupForSerialization, constraints, internalSolvers, variablesattributes, dependentVariables, id, logger, solver| Constructor and Description |
|---|
SpatioTemporalVariable(ConstraintSolver cs,
int id,
ConstraintSolver[] internalSolvers,
Variable[] internalVars) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Variable o) |
protected Constraint[] |
createInternalConstraints(Variable[] variables)
This method must be implemented to define the internal lower-level
Constraints of this
MultiVariable. |
GeometricShapeVariable |
getSpatialVariable()
Returns the spatial part of this
SpatioTemporalVariable. |
AllenInterval |
getTemporalVariable()
Returns the temporal part of this
SpatioTemporalVariable. |
void |
setDomain(Domain d)
Set the domain of this variable.
|
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 SpatioTemporalVariable(ConstraintSolver cs, int id, ConstraintSolver[] internalSolvers, Variable[] internalVars)
public int compareTo(Variable o)
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 java.lang.String toString()
VariableString representation of this Variable.public AllenInterval getTemporalVariable()
SpatioTemporalVariable.AllenInterval representing the temporal part of this SpatioTemporalVariable.public GeometricShapeVariable getSpatialVariable()
SpatioTemporalVariable.GeometricShapeVariable representing the spatial part of this SpatioTemporalVariable.