Class CommandCondition

java.lang.Object
jadex.rules.eca.CommandCondition
All Implemented Interfaces:
ICondition

public class CommandCondition extends Object implements ICondition
Command version of the condition.
  • Field Details

    • command

      protected jadex.common.IResultCommand<Boolean,IEvent> command
      The command.
  • Constructor Details

    • CommandCondition

      public CommandCondition(jadex.common.IResultCommand<Boolean,IEvent> command)
  • Method Details

    • evaluate

      public jadex.future.IFuture<jadex.common.Tuple2<Boolean,Object>> evaluate(IEvent event)
      Description copied from interface: ICondition
      Evaluation the condition.
      Specified by:
      evaluate in interface ICondition
      Parameters:
      event - The event.
      Returns:
      True, if condition is met (plus additional user data).
    • evaluateResult

      public static jadex.future.IFuture<jadex.common.Tuple2<Boolean,Object>> evaluateResult(Object res)