public class SeMa4g extends Object
The execution context manages all commands.
Use run()-method to start execution.
| Modifier and Type | Class and Description |
|---|---|
static class |
SeMa4g.Builder |
static class |
SeMa4g.State
state of the execution context
|
| Modifier and Type | Method and Description |
|---|---|
static SeMa4g.Builder |
builder() |
SeMa4g.State |
getState() |
void |
reset()
Resets all commands of the execution context
|
void |
run()
Use this method to invoke all commands Make sure, that this method is called only once.
|
void |
signalError()
This command can be called to interrupt the execution and
start the error behavior.
|
void |
signalFinish()
This command can be called to finish an execution and
start the next one.
|
void |
trigger()
This method is used by the framework.
|
public static SeMa4g.Builder builder()
public SeMa4g.State getState()
public void run()
throws SeMa4gException
Use this method to invoke all commands
Make sure, that this method is called only once.
SeMa4gExceptionpublic void trigger()
This method is used by the framework. After a command is finished, this method will be called by the command to initiate the start commands, which depend on the execution of the currently finished command.
public void signalError()
public void signalFinish()
public void reset()
Copyright © 2018. All rights reserved.