Class ExecutionControlProperties

java.lang.Object
de.aristaflow.adept2.model.common.ExecutionControlProperties
All Implemented Interfaces:
Serializable

public final class ExecutionControlProperties extends Object implements 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.
Author:
Kevin Goeser
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExecutionControlProperties(boolean suspensible, boolean resettable, boolean closable)
    Constructor initialising an completely initialised instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
    boolean
    Returns true, if it is possible to request from the running activity to close itself.
    boolean
    Returns true if the activity can be reset.
    boolean
    Returns true if the activity can be suspended.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object