public class FuzzyAllenIntervalConstraint extends QualitativeAllenIntervalConstraint
FuzzyAllenIntervalConstraint is created by specifying
an initial possibility degree for a subset of the 13 relations. The possibility degree
of all other relations is calculated according to Freksa's conceptual neighborhood (see
the DELTAS enum for alpha-cuts defining how possibility is assigned to neighbors).QualitativeAllenIntervalConstraint.Type| Modifier and Type | Field and Description |
|---|---|
static double[] |
DELTAS
Array defining how possibility decreases with distance in Freksa's neighborhood.
|
static int[][] |
freksa_neighbor
The transition table used for computing Freksa neighborhoods.
|
topologicalClosure, transitionTable, typesannotation, autoRemovable, color, id, logger, masked, numIDs, scope| Constructor and Description |
|---|
FuzzyAllenIntervalConstraint(QualitativeAllenIntervalConstraint.Type... types)
Create a
FuzzyAllenIntervalConstraint given an array of constraint types
whose desired possibility is 1. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> |
getCrispInverse() |
java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> |
getInversePossibilities()
Get the possibilities of all inverse relations.
|
java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> |
getPossibilities()
Get current possibilities of all Allen relations (types).
|
static double |
getPossibilityDegree(int distance)
Get the possibility degree of relations at a given distance (in Freksa's neighborhood).
|
boolean |
isEquivalent(Constraint c)
Method for assessing the "equivalence" between two constraints.
|
java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> |
makeCrispRel() |
containsType, getAllenConvexClosure, getDimension, getEdgeLabel, getInverseRelation, getInverseRelation, getTypes, isPreconvex, lookupTypeByInt, setTypesgetFrom, getTo, setFrom, setTo, toStringgetAnnotation, getColor, getDescription, getID, getScope, isAutoRemovable, isMasked, isSkippableSolver, isUnary, mask, setAnnotation, setAutoRemovable, setColor, setScope, skipSolver, unmaskpublic static int[][] freksa_neighbor
public static double[] DELTAS
public FuzzyAllenIntervalConstraint(QualitativeAllenIntervalConstraint.Type... types)
FuzzyAllenIntervalConstraint given an array of constraint types
whose desired possibility is 1.types - public java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> getPossibilities()
public java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> makeCrispRel()
public java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> getInversePossibilities()
public java.util.HashMap<QualitativeAllenIntervalConstraint.Type,java.lang.Double> getCrispInverse()
public java.lang.Object clone()
clone in class QualitativeAllenIntervalConstraintpublic static double getPossibilityDegree(int distance)
distance - The distance at which to get the possibility degree.public boolean isEquivalent(Constraint c)
ConstraintisEquivalent in class QualitativeAllenIntervalConstraintc - The Constraint to compare against.true iff the two constraints are considered to be equivalent.