ix.icore.domain
Class Constraint
java.lang.Object
ix.icore.AbstractAnnotatedObject
ix.icore.AbstractIXObject
ix.icore.domain.Constrainer
ix.icore.domain.Constraint
- All Implemented Interfaces:
- Annotated, IXObject, Sendable, java.io.Serializable, java.lang.Cloneable
public class Constraint
- extends Constrainer
- implements java.io.Serializable, java.lang.Cloneable, Sendable
A general-purpose container for constraint information. In most
cases, the type and relation will together determine (in a fairly
straightforward way) what the parameters should contain.
- See Also:
- Serialized Form
Constructor Summary |
Constraint()
|
Constraint(java.lang.String type,
java.lang.String relation,
java.util.List parameters)
A constructor that takes the type and relation as strings
and converts them to symbols. |
Constraint(Symbol type,
Symbol relation,
java.util.List parameters)
|
Methods inherited from class ix.icore.AbstractAnnotatedObject |
addAnnotationListener, annMap, clearAnnotations, fireSetAnnotation, getAnnotation, getAnnotations, getComments, makeAnnMap, removeAnnotation, setAnnotation, setAnnotations, setComments, takeAnnotations |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ALL
public static final Keyword ALL
type
protected Symbol type
relation
protected Symbol relation
parameters
protected java.util.List parameters
senderId
protected Name senderId
Constraint
public Constraint()
Constraint
public Constraint(Symbol type,
Symbol relation,
java.util.List parameters)
Constraint
public Constraint(java.lang.String type,
java.lang.String relation,
java.util.List parameters)
- A constructor that takes the type and relation as strings
and converts them to symbols.
getType
public Symbol getType()
- Specified by:
getType
in class Constrainer
setType
public void setType(Symbol type)
getRelation
public Symbol getRelation()
- Specified by:
getRelation
in class Constrainer
setRelation
public void setRelation(Symbol relation)
getParameters
public java.util.List getParameters()
- Specified by:
getParameters
in class Constrainer
setParameters
public void setParameters(java.util.List p)
getParameter
public java.lang.Object getParameter(int i)
getSenderId
public Name getSenderId()
- Specified by:
getSenderId
in interface Sendable
setSenderId
public void setSenderId(Name id)
- Specified by:
setSenderId
in interface Sendable
getPatternAssignment
public PatternAssignment getPatternAssignment()
getPattern
public LList getPattern()
getValue
public java.lang.Object getValue()
getConstraintRange
public ConstraintRange getConstraintRange()
getTimeWindow
public TimeWindow getTimeWindow()
instantiate
public Constraint instantiate(MatchEnv env,
Function1 ifUnbound)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface Sendable
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object x)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object