Module PauWareTwo

Class SendSignalAction

java.lang.Object
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Do_activity

public class SendSignalAction
extends Action
implements java.lang.Runnable
This concrete class represents the general notion of Action in UML, which consists in sending a signal. Instances of this class result from using the AbstractState.Reentrance value as the last parameter of the AbstractStateMachine.fires(String,AbstractState,AbstractState,Object,String,Object[],Object,String,Object[],byte) method.

Compatibility: Java 9.

Since:
1.0
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.Thread _thread
    This field refers to the action (if any) being executed; it corresponds to sending a signal.

    Fields inherited from class com.pauware.pauware_engine.Core.AbstractAction

    _action, _args, _object, _result, Pseudo_result, SendSignalAction_symbol
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected SendSignalAction​(java.lang.Object object, java.lang.String action, java.lang.Object[] args)  
  • Method Summary

    Modifier and Type Method Description
    void execute()
    This method executes an action in a standalone thread of control.
    void run()
    This method calls the Action.execute() method in order to synchronize (defer) the action execution with respect to any run-to-completion cycle that is in progress.
    java.lang.String to_UML()
    This method returns the action in the form of a UML-compliant string.

    Methods inherited from class com.pauware.pauware_engine.Core.Action

    wait_for_completion

    Methods inherited from class com.pauware.pauware_engine.Core.AbstractAction

    compare_args, equals, hashCode, hashCode_args, printable_action, printable_object, printable_result, set_args, verbose

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _thread

      protected java.lang.Thread _thread
      This field refers to the action (if any) being executed; it corresponds to sending a signal.
  • Constructor Details

    • SendSignalAction

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

    • execute

      public void execute() throws State_exception
      This method executes an action in a standalone thread of control. Such an action is the self-sending of an event.
      Overrides:
      execute in class Action
      Throws:
      State_exception
      See Also:
      Action.execute()
    • run

      public void run()
      This method calls the Action.execute() method in order to synchronize (defer) the action execution with respect to any run-to-completion cycle that is in progress.
      Specified by:
      run in interface java.lang.Runnable
    • to_UML

      public java.lang.String to_UML()
      This method returns the action in the form of a UML-compliant string.
      Overrides:
      to_UML in class AbstractAction
      Returns: