java.lang.Object
com.pauware.pauware_engine.Core.AbstractAction
com.pauware.pauware_engine.Core.Action
com.pauware.pauware_engine.Core.SendSignalAction
- 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_threadThis 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 protectedSendSignalAction(java.lang.Object object, java.lang.String action, java.lang.Object[] args) -
Method Summary
Modifier and Type Method Description voidexecute()This method executes an action in a standalone thread of control.voidrun()This method calls theAction.execute()method in order to synchronize (defer) the action execution with respect to any run-to-completion cycle that is in progress.java.lang.Stringto_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_completionMethods inherited from class com.pauware.pauware_engine.Core.AbstractAction
compare_args, equals, hashCode, hashCode_args, printable_action, printable_object, printable_result, set_args, verboseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_thread
protected java.lang.Thread _threadThis 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
This method executes an action in a standalone thread of control. Such an action is the self-sending of an event.- Overrides:
executein classAction- Throws:
State_exception- See Also:
Action.execute()
-
run
public void run()This method calls theAction.execute()method in order to synchronize (defer) the action execution with respect to any run-to-completion cycle that is in progress.- Specified by:
runin interfacejava.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_UMLin classAbstractAction- Returns:
-