java.lang.Object
com.pauware.pauware_engine.Core.AbstractGuard
com.pauware.pauware_engine.Core.Guard
public class Guard extends AbstractGuard
This concrete class represents the general notion of Guard in UML.
Compatibility: Java 9.
- Since:
- 1.0
-
Field Summary
Fields inherited from class com.pauware.pauware_engine.Core.AbstractGuard
_action, _value -
Constructor Summary
Constructors Modifier Constructor Description protectedGuard(java.lang.Object guard_object, java.lang.String guard_action, java.lang.Object[] guard_args) -
Method Summary
Modifier and Type Method Description protected AbstractActionaction(java.lang.Object guard_object, java.lang.String guard_action, java.lang.Object[] guard_args)This method creates and returns an action instance that is compatible with the chosen platform, i.e., adaptation for platforms different from Java 9 have to provide specific code.Methods inherited from class com.pauware.pauware_engine.Core.AbstractGuard
equals, execute, hashCode, to_UML, verboseMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Guard
protected Guard(java.lang.Object guard_object, java.lang.String guard_action, java.lang.Object[] guard_args)- Parameters:
guard_object-guard_action-guard_args-- See Also:
AbstractGuard(Object,String,Object[])
-
-
Method Details
-
action
protected AbstractAction action(java.lang.Object guard_object, java.lang.String guard_action, java.lang.Object[] guard_args)This method creates and returns an action instance that is compatible with the chosen platform, i.e., adaptation for platforms different from Java 9 have to provide specific code.- Specified by:
actionin classAbstractGuard- Parameters:
guard_object-guard_action-guard_args-- Returns:
- This is an instance of
Action. Note that guards cannot send signals, and thus should only evaluate local data. As a result, an instance of theSendSignalActionclass cannot be returned. - See Also:
Action
-