Package jadex.rules.rulesystem.rules
Interface IOperator
-
- All Known Implementing Classes:
Operator.Contains
,Operator.Equal
,Operator.Excludes
,Operator.Greater
,Operator.GreaterOrEqual
,Operator.InstanceOf
,Operator.Less
,Operator.LessOrEqual
,Operator.Matches
,Operator.NotEqual
,Operator.StartsWith
public interface IOperator
Interface for all operators.
-
-
Field Summary
Fields Modifier and Type Field Description static IOperator
CONTAINS
The contains operator.static IOperator
EQUAL
The equal operator.static IOperator
EXCLUDES
The excludes operator.static IOperator
GREATER
The greater operator.static IOperator
GREATEROREQUAL
The greater or equal operator.static IOperator
INSTANCEOF
The instanceof operator.static IOperator
LESS
The less operator.static IOperator
LESSOREQUAL
The less or equal operator.static IOperator
MATCHES
The matches operator.static IOperator
NOTEQUAL
The not equal operator.static IOperator
STARTSWITH
The starts with operator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(IOAVState state, java.lang.Object a, java.lang.Object b)
Evaluate two objects with respect to the operator semantics.
-
-
-
Field Detail
-
EQUAL
static final IOperator EQUAL
The equal operator.
-
NOTEQUAL
static final IOperator NOTEQUAL
The not equal operator.
-
LESS
static final IOperator LESS
The less operator.
-
LESSOREQUAL
static final IOperator LESSOREQUAL
The less or equal operator.
-
GREATER
static final IOperator GREATER
The greater operator.
-
GREATEROREQUAL
static final IOperator GREATEROREQUAL
The greater or equal operator.
-
CONTAINS
static final IOperator CONTAINS
The contains operator.
-
EXCLUDES
static final IOperator EXCLUDES
The excludes operator.
-
INSTANCEOF
static final IOperator INSTANCEOF
The instanceof operator.
-
MATCHES
static final IOperator MATCHES
The matches operator.
-
STARTSWITH
static final IOperator STARTSWITH
The starts with operator.
-
-
Method Detail
-
evaluate
boolean evaluate(IOAVState state, java.lang.Object a, java.lang.Object b)
Evaluate two objects with respect to the operator semantics.- Parameters:
state
- The state.a
- The first object.b
- The second object.- Returns:
- True, if objects fit wrt. the operator semantics.
-
-