public class ExpressionCondition extends java.lang.Object implements ICondition
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.modelinfo.UnparsedExpression |
expression
The condition expression.
|
protected jadex.javaparser.SimpleValueFetcher |
fetcher
The fetcher.
|
FALSE, TRUE, TRUE_CONDITION
Constructor and Description |
---|
ExpressionCondition(jadex.bridge.modelinfo.UnparsedExpression expression,
jadex.commons.IValueFetcher fetcher)
Create a new ExpressionCondition.
|
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<jadex.commons.Tuple2<java.lang.Boolean,java.lang.Object>> |
evaluate(IEvent event)
Evaluate the condition.
|
jadex.bridge.modelinfo.UnparsedExpression |
getExpression()
Get the expression.
|
jadex.javaparser.SimpleValueFetcher |
getFetcher()
Get the fetcher.
|
void |
setExpression(jadex.bridge.modelinfo.UnparsedExpression expression)
Set the expression.
|
void |
setFetcher(jadex.javaparser.SimpleValueFetcher fetcher)
Set the fetcher.
|
protected jadex.bridge.modelinfo.UnparsedExpression expression
protected jadex.javaparser.SimpleValueFetcher fetcher
public ExpressionCondition(jadex.bridge.modelinfo.UnparsedExpression expression, jadex.commons.IValueFetcher fetcher)
public jadex.commons.future.IFuture<jadex.commons.Tuple2<java.lang.Boolean,java.lang.Object>> evaluate(IEvent event)
evaluate
in interface ICondition
event
- The event.public jadex.bridge.modelinfo.UnparsedExpression getExpression()
public void setExpression(jadex.bridge.modelinfo.UnparsedExpression expression)
expression
- The expression to set.public jadex.javaparser.SimpleValueFetcher getFetcher()
public void setFetcher(jadex.javaparser.SimpleValueFetcher fetcher)
fetcher
- The fetcher to set.