Class CommandAction<T>

java.lang.Object
jadex.rules.eca.CommandAction<T>
All Implemented Interfaces:
IAction<T>

public class CommandAction<T> extends Object implements IAction<T>
Wrapper that maps a command into a rule action.
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public jadex.future.IFuture<T> execute(IEvent event, IRule<T> rule, Object context, Object condresult)
      Description copied from interface: IAction
      Execute the action.
      Specified by:
      execute in interface IAction<T>
      Parameters:
      event - The event.
      rule - The rule this action belongs to.
      context - The user context.
      condresult - The condition result.
    • getCommand

      public jadex.common.IResultCommand<jadex.future.IFuture<T>,CommandAction.CommandData> getCommand()
      Get the command.
      Returns:
      The command.
    • setCommand

      public void setCommand(jadex.common.IResultCommand<jadex.future.IFuture<T>,CommandAction.CommandData> command)
      Set the command.
      Parameters:
      command - The command to set.