Class PcmStubAction
java.lang.Object
org.palladiosimulator.protocom.lang.java.util.PcmAction
org.palladiosimulator.protocom.lang.java.util.PcmStubAction
- Direct Known Subclasses:
PcmRMIStubAction
Defines templates for actions of both kinds: SEFF actions and user actions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String_action(org.palladiosimulator.pcm.seff.BranchAction action) BranchAction is implemented as an IF condition.protected String_action(org.palladiosimulator.pcm.seff.CollectionIteratorAction action) No idea.protected String_action(org.palladiosimulator.pcm.seff.ExternalCallAction action) ExternalCallAction calls a remote service.protected String_action(org.palladiosimulator.pcm.seff.ForkAction action) A ForkAction spawns a new thread for each defined behavior.protected String_action(org.palladiosimulator.pcm.seff.InternalAction action) Currently, InteralActions are removed for stubs.protected String_action(org.palladiosimulator.pcm.seff.LoopAction action) LoopAction is transformed into a simple FOR statement.protected String_action(org.palladiosimulator.pcm.seff.SetVariableAction action) TODO Check whether SetVariableAction is needed.protected CharSequence_branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.GuardedBranchTransition transition) Branch transition for GuardedBranchTransition.protected CharSequence_branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition transition) Branch transition for ProbabilisticBranchTransition entities.action(org.palladiosimulator.pcm.seff.AbstractAction action) branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.AbstractBranchTransition transition)
-
Constructor Details
-
PcmStubAction
public PcmStubAction()
-
-
Method Details
-
_action
No idea. We didn't implement this for the last ProtoCom either. FIXME Implement this as it is a crucial part of the behavior (lehrig) -
_action
LoopAction is transformed into a simple FOR statement. -
_action
ExternalCallAction calls a remote service. TODO: Move exception handling to RMI tech. -
_action
Currently, InteralActions are removed for stubs. -
_action
BranchAction is implemented as an IF condition. A BranchAction may have two different transition types: ProbabilisticBranchTransition and GuardedBranchTransition. For code stubs, they are both treated as a normal if-else-if-else series. -
_branchTransition
protected CharSequence _branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition transition) Branch transition for ProbabilisticBranchTransition entities. Handled like GuardedBranchTransition for code stubs.- Overrides:
_branchTransitionin classPcmAction
-
_branchTransition
protected CharSequence _branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.GuardedBranchTransition transition) Branch transition for GuardedBranchTransition.- Overrides:
_branchTransitionin classPcmAction
-
_action
TODO Check whether SetVariableAction is needed. -
_action
A ForkAction spawns a new thread for each defined behavior. These should be processed asynchronously in parallel. Please note that manually spawning new threads is discouraged on certain middlewares (like JavaEE)! TODO Check whether ForkAction is needed. -
action
-
branchTransition
public CharSequence branchTransition(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.AbstractBranchTransition transition) - Overrides:
branchTransitionin classPcmAction
-