public interface SeMa4gCommand
SeMa4g| Modifier and Type | Interface and Description |
|---|---|
static class |
SeMa4gCommand.State
state of the execution context
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkCycleDependencies(List<SeMa4gCommand> usedDependencies)
Checks if there is a cycle dependencies for this command.
|
SeMa4gCommand |
dependingOn(SeMa4gCommand... dependencies)
Definies the
SeMa4gCommand (one or more) which have to
be finished before this command can be executed. |
List<SeMa4gCommand> |
getDependencies()
Returns the list of
SeMa4gCommand for this SeMa4gCommand
which have to be (successfully) executed before this command can be started |
SeMa4g |
getExecutionContext()
Returns the
SeMa4g for this command. |
SeMa4gCommand.State |
getState()
Returns the current
SeMa4gCommand.State |
void |
reset()
this method is called to reset the command
|
void |
run()
This method is used by the execution context to start the command
|
void |
setExecutionContext(SeMa4g executionContext)
Sets the
SeMa4g for this command. |
void |
setState(SeMa4gCommand.State state)
Sets the
SeMa4gCommand.State
of the command |
void |
signalError()
This command can be called to interrupt the execution and
start the error behavior.
|
void |
startCheckCycleDependencies()
starts a cycle dependency check
|
void checkCycleDependencies(List<SeMa4gCommand> usedDependencies) throws SeMa4gException
usedDependencies - all dependencies for this commandSeMa4gException - when a cycle dependency is detectedSeMa4gCommand dependingOn(SeMa4gCommand... dependencies) throws SeMa4gException
SeMa4gCommand (one or more) which have to
be finished before this command can be executed.dependencies - list of commands which have to be finished,
before this command can be startedSeMa4gException - when a cycle dependency is detectedList<SeMa4gCommand> getDependencies()
SeMa4gCommand for this SeMa4gCommand
which have to be (successfully) executed before this command can be startedSeMa4g getExecutionContext()
SeMa4g for this command.SeMa4g for this commandvoid setExecutionContext(SeMa4g executionContext)
SeMa4g for this command.executionContext - the SeMa4g for this commandSeMa4gCommand.State getState()
SeMa4gCommand.Statevoid setState(SeMa4gCommand.State state)
SeMa4gCommand.State
of the commandstate - the new statevoid signalError()
void run()
void startCheckCycleDependencies()
throws SeMa4gException
SeMa4gException - in case there is a cycle dependencyvoid reset()
Copyright © 2018. All rights reserved.