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
-
Field Summary
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
Action(java.lang.Object object, java.lang.String action, java.lang.Object[] args)
-
Method Summary
Modifier and Type Method Description void
execute()
This method is called during a run-to-completion cycle and executes the action instance by reflection; Actions may be re-executed.protected void
wait_for_completion()
This method allows the possibility of waiting for actions to complete.Methods inherited from class com.pauware.pauware_engine.Core.AbstractAction
compare_args, equals, hashCode, hashCode_args, printable_action, printable_object, printable_result, set_args, to_UML, verbose
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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
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 theAbstractAction.verbose()
method.- Specified by:
execute
in classAbstractAction
- Throws:
State_exception
- An encapsulation of any Java problem that results from executing the action
-
wait_for_completion
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 classAbstractAction
- Throws:
State_exception
- See Also:
Do_activity.wait_for_completion()
-