public class QualitativeAllenIntervalConstraint extends BinaryConstraint
| Modifier and Type | Class and Description |
|---|---|
static class |
QualitativeAllenIntervalConstraint.Type |
| Modifier and Type | Field and Description |
|---|---|
static QualitativeAllenIntervalConstraint.Type[][] |
topologicalClosure |
static QualitativeAllenIntervalConstraint.Type[][][] |
transitionTable
The composition table used by path consistency.
|
protected QualitativeAllenIntervalConstraint.Type[] |
types |
annotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
QualitativeAllenIntervalConstraint(QualitativeAllenIntervalConstraint.Type... types)
Create a
QualitativeAllenIntervalConstraint given an array of constraint types. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
containsType(QualitativeAllenIntervalConstraint.Type type)
Query whether this constraint includes a specific type in its disjunction.
|
static QualitativeAllenIntervalConstraint.Type[] |
getAllenConvexClosure(QualitativeAllenIntervalConstraint.Type... types)
Get convex closure of Allen Interval based on canonical representation of interval atomic relation [Ligozat, 1996]
and based on the "Geometrical Interpretation of Maximal Tractable Interval Subalgebras" [F.
|
static int |
getDimension(QualitativeAllenIntervalConstraint.Type... types)
Get the dimension of an Allen relation which is the maximum of basic Allen relations.
|
java.lang.String |
getEdgeLabel()
Every
Constraint should implement this method - its value is
what is drawn by the ConstraintNetwork rendering methods. |
static QualitativeAllenIntervalConstraint.Type |
getInverseRelation(QualitativeAllenIntervalConstraint.Type t)
Get the inverse relation of a given Allen relation.
|
static QualitativeAllenIntervalConstraint.Type[] |
getInverseRelation(QualitativeAllenIntervalConstraint.Type[] t)
Get the inverse relation of a given set of Allen relations.
|
QualitativeAllenIntervalConstraint.Type[] |
getTypes()
Get all types of this constraint.
|
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
boolean |
isPreconvex(QualitativeAllenIntervalConstraint.Type... types)
Define whether an Allen relation (disjunction of basic Allen relations) is pre-convex or not, R is a pre-convex (weakly preconvex) relation if dim(I(R)\R) < dim(R)
|
static QualitativeAllenIntervalConstraint.Type |
lookupTypeByInt(int i)
Get the i-th relation.
|
void |
setTypes(QualitativeAllenIntervalConstraint.Type[] types)
Set types of this constraint.
|
getFrom, getTo, setFrom, setTo, toStringgetAnnotation, getColor, getDescription, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskprotected QualitativeAllenIntervalConstraint.Type[] types
public static QualitativeAllenIntervalConstraint.Type[][][] transitionTable
public static QualitativeAllenIntervalConstraint.Type[][] topologicalClosure
public QualitativeAllenIntervalConstraint(QualitativeAllenIntervalConstraint.Type... types)
QualitativeAllenIntervalConstraint given an array of constraint types.types - public boolean containsType(QualitativeAllenIntervalConstraint.Type type)
type - The type to query.true iff the constraint prescribes the given type.public QualitativeAllenIntervalConstraint.Type[] getTypes()
public void setTypes(QualitativeAllenIntervalConstraint.Type[] types)
types - The types of the constraint.public java.lang.Object clone()
clone in class Constraintpublic 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 static QualitativeAllenIntervalConstraint.Type[] getInverseRelation(QualitativeAllenIntervalConstraint.Type[] t)
t - The relations to invert.t.public static QualitativeAllenIntervalConstraint.Type getInverseRelation(QualitativeAllenIntervalConstraint.Type t)
t - The relation to invert.t.public static QualitativeAllenIntervalConstraint.Type lookupTypeByInt(int i)
i - Index of the desired relation.public 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 int getDimension(QualitativeAllenIntervalConstraint.Type... types)
types - an array of basic Allen relations.public static QualitativeAllenIntervalConstraint.Type[] getAllenConvexClosure(QualitativeAllenIntervalConstraint.Type... types)
types - an array of basic Allen relations.public boolean isPreconvex(QualitativeAllenIntervalConstraint.Type... types)
types - an array of basic Allen relations representing the disjunction we want to test.