Class ExecutionControlProperties
java.lang.Object
de.aristaflow.adept2.model.common.ExecutionControlProperties
- All Implemented Interfaces:
Serializable
The execution control properties reflect the abilities of applications
(operations, activity templates, etc.), on reacting to execution
control requests from the outside.
This includes e.g. if it is possible to suspend the application.
This includes e.g. if it is possible to suspend the application.
- Author:
- Kevin Goeser
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionControlProperties(boolean suspensible, boolean resettable, boolean closable) Constructor initialising an completely initialised instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanReturns true, if it is possible to request from the running activity to close itself.booleanReturns true if the activity can be reset.booleanReturns true if the activity can be suspended.
-
Constructor Details
-
ExecutionControlProperties
public ExecutionControlProperties(boolean suspensible, boolean resettable, boolean closable) Constructor initialising an completely initialised instance.- Parameters:
suspensible- Whether execution can be suspended.resettable- Whether execution can be reset.closable- Whether execution can be closed.
-
-
Method Details
-
isSuspensible
public boolean isSuspensible()Returns true if the activity can be suspended.When the activity is suspended, it must be able to save its whole state and restore this state on resume. The API of the runtime manager allows for storing and restoring the required data.
- Returns:
- True, if the activity's execution can be suspended, else false.
-
isResettable
public boolean isResettable()Returns true if the activity can be reset. This might be the case, e.g. when the user started it by accident or it has to be reset because of an error.- Returns:
- True, if the activity's execution can be reset, else false.
-
isClosable
public boolean isClosable()Returns true, if it is possible to request from the running activity to close itself. The activity does not need to follow the request, e.g. if fields in a form a not filled in completely, or the activity is in a state which does not allow for closing.- Returns:
- True, if the activity may be closed from outside.
-
equals
-
hashCode
public int hashCode()
-