| Constructor and Description |
|---|
DefaultTask()
Default Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComand(List<Command> cmdList)
Add a list of commands
|
void |
addCommand(Command c)
Add a
Command to the command list of task |
void |
addPostProcessor(Command c)
Add a
Command to postprocessor command list |
void |
addPreprocesor(Command c)
Add a
Command to prepocesor command list |
boolean |
execute(Object data)
Execute prepocesors, commands and postprocessors in order
throw a CommandException if some command fails an stopOnfault
is true.
|
List<Command> |
getCommands() |
String |
getName() |
List<Command> |
getPostProcessors() |
List<Command> |
getPreProcessors() |
List<Command> |
newCommandList()
Creates a new command list
|
void |
onFault(Object data)
Composite onFault to Commands
|
void |
removeComannd(Command c)
Remove a
Command from command list of task |
void |
removePostProcessor(Command c)
Remove a
Command to postprocesor list of task |
void |
removePreprocesor(Command c)
Remove a
Command from preprocesor command list |
void |
setCommands(List<Command> commands) |
void |
setName(String name) |
void |
setPostProcessors(List<Command> postProcessors) |
void |
setPreProcessors(List<Command> preProcessors) |
void |
undo()
Undo command
|
public void addCommand(Command c)
Command to the command list of taskaddCommand in interface Taskc - Command to add.public void addComand(List<Command> cmdList)
cmdList - the command list to addpublic void removeComannd(Command c)
Command from command list of taskremoveComannd in interface Taskc - Commmand to removepublic void addPreprocesor(Command c)
Command to prepocesor command listaddPreprocesor in interface Taskc - Command to add.public void removePreprocesor(Command c)
Command from preprocesor command listremovePreprocesor in interface Taskc - Command to remove.public void addPostProcessor(Command c)
Command to postprocessor command listaddPostProcessor in interface Taskc - Command to add.public void removePostProcessor(Command c)
Command to postprocesor list of taskremovePostProcessor in interface Taskc - Command to removce.public boolean execute(Object data)
public void onFault(Object data)
public List<Command> newCommandList()
public void setCommands(List<Command> commands)
commands - list of commands to setpublic void setPostProcessors(List<Command> postProcessors)
postProcessors - command list to setpublic void setPreProcessors(List<Command> preProcessors)
preProcessors - command list to setspublic void setName(String name)
name - the name to setCopyright © 2014 JDAL. All Rights Reserved.