Package jadex.rules.eca
Class ExpressionCondition
- java.lang.Object
- 
- jadex.rules.eca.ExpressionCondition
 
- 
- All Implemented Interfaces:
- ICondition
 
 public class ExpressionCondition extends java.lang.Object implements ICondition 
- 
- 
Field SummaryFields Modifier and Type Field Description protected UnparsedExpressionexpressionThe condition expression.protected SimpleValueFetcherfetcherThe fetcher.- 
Fields inherited from interface jadex.rules.eca.IConditionFALSE, TRUE, TRUE_CONDITION
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExpressionCondition(UnparsedExpression expression, IValueFetcher fetcher)Create a new ExpressionCondition.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<Tuple2<java.lang.Boolean,java.lang.Object>>evaluate(IEvent event)Evaluate the condition.UnparsedExpressiongetExpression()Get the expression.SimpleValueFetchergetFetcher()Get the fetcher.voidsetExpression(UnparsedExpression expression)Set the expression.voidsetFetcher(SimpleValueFetcher fetcher)Set the fetcher.
 
- 
- 
- 
Field Detail- 
expressionprotected UnparsedExpression expression The condition expression.
 - 
fetcherprotected SimpleValueFetcher fetcher The fetcher.
 
- 
 - 
Constructor Detail- 
ExpressionConditionpublic ExpressionCondition(UnparsedExpression expression, IValueFetcher fetcher) Create a new ExpressionCondition.
 
- 
 - 
Method Detail- 
evaluatepublic IFuture<Tuple2<java.lang.Boolean,java.lang.Object>> evaluate(IEvent event) Evaluate the condition.- Specified by:
- evaluatein interface- ICondition
- Parameters:
- event- The event.
- Returns:
- True, if condition is met (plus additional user data).
 
 - 
getExpressionpublic UnparsedExpression getExpression() Get the expression.- Returns:
- The expression.
 
 - 
setExpressionpublic void setExpression(UnparsedExpression expression) Set the expression.- Parameters:
- expression- The expression to set.
 
 - 
getFetcherpublic SimpleValueFetcher getFetcher() Get the fetcher.- Returns:
- The fetcher.
 
 - 
setFetcherpublic void setFetcher(SimpleValueFetcher fetcher) Set the fetcher.- Parameters:
- fetcher- The fetcher to set.
 
 
- 
 
-