Package jadex.rules.rulesystem.rules
Class ObjectCondition
- java.lang.Object
-
- jadex.rules.rulesystem.rules.ConstrainableCondition
-
- jadex.rules.rulesystem.rules.ObjectCondition
-
- All Implemented Interfaces:
ICondition
public class ObjectCondition extends ConstrainableCondition
A condition that contains constraints belonging to one object. The tests may contain simple constant tests as well as joins with other objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected OAVObjectType
type
The object type.-
Fields inherited from class jadex.rules.rulesystem.rules.ConstrainableCondition
constraints
-
-
Constructor Summary
Constructors Constructor Description ObjectCondition(OAVObjectType type)
Create a new object condition.ObjectCondition(OAVObjectType type, java.util.List constraints)
Create a new object condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAVObjectType
getObjectType()
Get the object type.void
setObjectType(OAVObjectType type)
Get the object type.java.lang.String
toString()
Get the string representation.-
Methods inherited from class jadex.rules.rulesystem.rules.ConstrainableCondition
addConstraint, getBoundConstraints, getConstraints, getVariables
-
-
-
-
Field Detail
-
type
protected OAVObjectType type
The object type.
-
-
Constructor Detail
-
ObjectCondition
public ObjectCondition(OAVObjectType type)
Create a new object condition.
-
ObjectCondition
public ObjectCondition(OAVObjectType type, java.util.List constraints)
Create a new object condition.
-
-
Method Detail
-
getObjectType
public OAVObjectType getObjectType()
Get the object type.- Returns:
- The object type.
-
setObjectType
public void setObjectType(OAVObjectType type)
Get the object type.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-