public class AllenIntervalConstraint extends MultiBinaryConstraint
AllenIntervalConstraint.Type enum for details.| Modifier and Type | Class and Description |
|---|---|
static class |
AllenIntervalConstraint.Type
The 13 basic qualitative relations in Allen's Interval Algebra, plus several tractable disjunctions.
|
| Modifier and Type | Field and Description |
|---|---|
protected Bounds[] |
bounds |
protected AllenIntervalConstraint.Type[] |
types |
constraintsannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
AllenIntervalConstraint(AllenIntervalConstraint.Type... types)
Creates an
AllenIntervalConstraint of a given (disjunctive) type with default bounds. |
AllenIntervalConstraint(AllenIntervalConstraint.Type type,
Bounds bounds)
Convenience constructor for not casting bounds into an array (see
AllenIntervalConstraint(Type, Bounds[]) constructor). |
AllenIntervalConstraint(AllenIntervalConstraint.Type type,
Bounds[] bounds)
Creates an elementary
AllenIntervalConstraint of a given type with given bounds. |
AllenIntervalConstraint(AllenIntervalConstraint.Type type,
Bounds bounds1,
Bounds bounds2)
Convenience constructor for not casting bounds into an array (see
AllenIntervalConstraint(Type, Bounds[]) constructor). |
AllenIntervalConstraint(AllenIntervalConstraint.Type type,
Bounds bounds1,
Bounds bounds2,
Bounds bounds3)
Convenience constructor for not casting bounds into an array (see
AllenIntervalConstraint(Type, Bounds[]) constructor). |
AllenIntervalConstraint(AllenIntervalConstraint.Type type,
Bounds bounds1,
Bounds bounds2,
Bounds bounds3,
Bounds bounds4)
Convenience constructor for not casting bounds into an array (see
AllenIntervalConstraint(Type, Bounds[]) constructor). |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
A
MultiConstraint must be cloneable. |
protected Constraint[] |
createInternalConstraints(Variable f,
Variable t)
This method must be defined to create the internal constraints underlying
this
MultiBinaryConstraint. |
Bounds[] |
getBounds()
Get the bounds for this
AllenIntervalConstraint. |
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
static AllenIntervalConstraint.Type |
getRelation(AllenInterval i1,
AllenInterval i2)
Get the qualitative relation that exists between two
AllenIntervals, under the earliest time assumption. |
AllenIntervalConstraint.Type |
getType()
Deprecated.
|
AllenIntervalConstraint.Type[] |
getTypes()
Get the type of this
AllenIntervalConstraint. |
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
createInternalConstraints, getFrom, getTo, setFrom, setTo, toStringgetDescription, getInternalConstraints, propagateImmediately, setPropagateImmediately, setPropagateLatergetAnnotation, getColor, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskprotected Bounds[] bounds
protected AllenIntervalConstraint.Type[] types
public AllenIntervalConstraint(AllenIntervalConstraint.Type type, Bounds bounds)
AllenIntervalConstraint(Type, Bounds[]) constructor).type - The type of the constraint.bounds - The one and only upper-lower bound pair for the constraint.public AllenIntervalConstraint(AllenIntervalConstraint.Type type, Bounds bounds1, Bounds bounds2)
AllenIntervalConstraint(Type, Bounds[]) constructor).type - The type of the constraint.bounds1 - The first upper-lower bound pair for the constraint.bounds2 - The second upper-lower bound pair for the constraint.public AllenIntervalConstraint(AllenIntervalConstraint.Type type, Bounds bounds1, Bounds bounds2, Bounds bounds3)
AllenIntervalConstraint(Type, Bounds[]) constructor).type - The type of the constraint.bounds1 - The first upper-lower bound pair for the constraint.bounds2 - The second upper-lower bound pair for the constraint.bounds3 - The third upper-lower bound pair for the constraint.public AllenIntervalConstraint(AllenIntervalConstraint.Type type, Bounds bounds1, Bounds bounds2, Bounds bounds3, Bounds bounds4)
AllenIntervalConstraint(Type, Bounds[]) constructor).type - The type of the constraint.bounds1 - The first upper-lower bound pair for the constraint.bounds2 - The second upper-lower bound pair for the constraint.bounds3 - The third upper-lower bound pair for the constraint.bounds4 - The fourth upper-lower bound pair for the constraint.public AllenIntervalConstraint(AllenIntervalConstraint.Type type, Bounds[] bounds)
AllenIntervalConstraint of a given type with given bounds.type - The type of the constraint.bounds - The bounds of the constraint.public AllenIntervalConstraint(AllenIntervalConstraint.Type... types)
AllenIntervalConstraint of a given (disjunctive) type with default bounds.types - The elementary Allen relations that constitute this constraint.@Deprecated public AllenIntervalConstraint.Type getType()
AllenIntervalConstraint.AllenIntervalConstraint.public AllenIntervalConstraint.Type[] getTypes()
AllenIntervalConstraint.AllenIntervalConstraint.public Bounds[] getBounds()
AllenIntervalConstraint.AllenIntervalConstraint.protected Constraint[] createInternalConstraints(Variable f, Variable t)
MultiBinaryConstraintMultiBinaryConstraint.createInternalConstraints in class MultiBinaryConstraintf - The source Variable of the MultiConstraint.t - The destination Variable of the MultiConstraint.MultiBinaryConstraint.public java.lang.String getEdgeLabel()
ConstraintConstraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods.getEdgeLabel in class ConstraintString representation of the constraint to be used for
ConstraintNetwork rendering.public java.lang.Object clone()
MultiConstraintMultiConstraint must be cloneable. This is used by the MultiConstraintSolver
class to instantiate proper constraints to delegate its underlying ConstraintSolvers.clone in class MultiConstraintpublic boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class Constraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.public static AllenIntervalConstraint.Type getRelation(AllenInterval i1, AllenInterval i2)
AllenIntervals, under the earliest time assumption.i1 - The first AllenInterval in the sought relation.i2 - The second AllenInterval in the sought relation.AllenIntervalConstraint.Type that exists between the two given AllenIntervals (under the earliest time assumption).