Package jadex.rules.eca
Class CommandAction<T>
- java.lang.Object
-
- jadex.rules.eca.CommandAction<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandAction.CommandData
-
Field Summary
Fields Modifier and Type Field Description protected IResultCommand<IFuture<T>,CommandAction.CommandData>
command
The command.
-
Constructor Summary
Constructors Constructor Description CommandAction(IResultCommand<IFuture<T>,CommandAction.CommandData> command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<T>
execute(IEvent event, IRule<T> rule, java.lang.Object context, java.lang.Object condresult)
Execute the action.IResultCommand<IFuture<T>,CommandAction.CommandData>
getCommand()
Get the command.void
setCommand(IResultCommand<IFuture<T>,CommandAction.CommandData> command)
Set the command.
-
-
-
Field Detail
-
command
protected IResultCommand<IFuture<T>,CommandAction.CommandData> command
The command.
-
-
Constructor Detail
-
CommandAction
public CommandAction(IResultCommand<IFuture<T>,CommandAction.CommandData> command)
-
-
Method Detail
-
execute
public IFuture<T> execute(IEvent event, IRule<T> rule, java.lang.Object context, java.lang.Object condresult)
Description copied from interface:IAction
Execute the action.
-
getCommand
public IResultCommand<IFuture<T>,CommandAction.CommandData> getCommand()
Get the command.- Returns:
- The command.
-
setCommand
public void setCommand(IResultCommand<IFuture<T>,CommandAction.CommandData> command)
Set the command.- Parameters:
command
- The command to set.
-
-