Module PauWareTwo

Class Action

java.lang.Object
com.pauware.pauware_engine.Core.AbstractAction
com.pauware.pauware_engine.Core.Action
Direct Known Subclasses:
SendSignalAction

public class Action
extends AbstractAction
This concrete class represents the general notion of Action in UML.

Compatibility: Java 9.

Since:
1.0
  • Constructor Details

    • Action

      protected Action​(java.lang.Object object, java.lang.String action, java.lang.Object[] args)
      Parameters:
      object -
      action -
      args -
      See Also:
      AbstractAction(Object,String,Object[])
  • Method Details

    • execute

      public void execute() throws State_exception
      This method is called during a run-to-completion cycle and executes the action instance by reflection; Actions may be re-executed.

      This method is called automatically, and more precisely, at an appropriate moment with respect to the functioning of a state machine. All kinds of probable exceptions including Java Error instances and runtime exceptions are caught by this method. The computed result is assigned to the _result variable and is made readable through the AbstractAction.verbose() method.

      Specified by:
      execute in class AbstractAction
      Throws:
      State_exception - An encapsulation of any Java problem that results from executing the action
    • wait_for_completion

      protected void wait_for_completion() throws State_exception
      This method allows the possibility of waiting for actions to complete. Since UML actions are recognized as instantaneous, this method is left empty.
      Specified by:
      wait_for_completion in class AbstractAction
      Throws:
      State_exception
      See Also:
      Do_activity.wait_for_completion()