Package jadex.rules.eca
Class CommandCondition
- java.lang.Object
-
- jadex.rules.eca.CommandCondition
-
- All Implemented Interfaces:
ICondition
public class CommandCondition extends java.lang.Object implements ICondition
Command version of the condition.
-
-
Field Summary
Fields Modifier and Type Field Description protected IResultCommand<java.lang.Boolean,IEvent>
command
The command.-
Fields inherited from interface jadex.rules.eca.ICondition
FALSE, TRUE, TRUE_CONDITION
-
-
Constructor Summary
Constructors Constructor Description CommandCondition(IResultCommand<java.lang.Boolean,IEvent> command)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<Tuple2<java.lang.Boolean,java.lang.Object>>
evaluate(IEvent event)
Evaluation the condition.static IFuture<Tuple2<java.lang.Boolean,java.lang.Object>>
evaluateResult(java.lang.Object res)
-
-
-
Field Detail
-
command
protected IResultCommand<java.lang.Boolean,IEvent> command
The command.
-
-
Constructor Detail
-
CommandCondition
public CommandCondition(IResultCommand<java.lang.Boolean,IEvent> command)
-
-
Method Detail
-
evaluate
public IFuture<Tuple2<java.lang.Boolean,java.lang.Object>> evaluate(IEvent event)
Description copied from interface:ICondition
Evaluation the condition.- Specified by:
evaluate
in interfaceICondition
- Parameters:
event
- The event.- Returns:
- True, if condition is met (plus additional user data).
-
-