Class PcmUserAction
- java.lang.Object
-
- org.palladiosimulator.protocom.lang.java.util.PcmUserAction
-
- Direct Known Subclasses:
PcmProtoUserAction,PcmStubUserAction
public abstract class PcmUserAction extends Object
Abstract class for implementing PCM actions, i.e., the behavior of components as specified via SEFFs. Refinements of this class could, for instance, add simulate stack frames for performance prototypes or provide code stub generation.
-
-
Constructor Summary
Constructors Constructor Description PcmUserAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String_userAction(org.palladiosimulator.pcm.usagemodel.Branch userAction)UserActions only have probabilistic transitions.protected String_userAction(org.palladiosimulator.pcm.usagemodel.Delay userAction)FIXME Implement and test this action with Thread.sleepprotected String_userAction(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall userAction)EntryLevelSystemCall is an user action which calls a system service from an usage scenario.protected String_userAction(org.palladiosimulator.pcm.usagemodel.Loop userAction)Loop actions are transformed into a simple FOR statement.protected String_userAction(org.palladiosimulator.pcm.usagemodel.Start userAction)protected String_userAction(org.palladiosimulator.pcm.usagemodel.Stop userAction)static org.palladiosimulator.pcm.usagemodel.StartfindUserStart(Iterable<org.palladiosimulator.pcm.usagemodel.AbstractUserAction> actions)And another helper method, since Actions and UserActions are *obviously* so different that they cannot have a common supertype...StringuserAction(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)StringuserActions(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)Follows the user action path and calls "userAction" for each action in it.
-
-
-
Method Detail
-
userActions
public String userActions(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)
Follows the user action path and calls "userAction" for each action in it. Note that actions do not branch! Branching is solved by a Branch action, therefore at most one successor is given at any time.
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.EntryLevelSystemCall userAction)
EntryLevelSystemCall is an user action which calls a system service from an usage scenario.
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.Delay userAction)
FIXME Implement and test this action with Thread.sleep
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.Start userAction)
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.Stop userAction)
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.Loop userAction)
Loop actions are transformed into a simple FOR statement.
-
_userAction
protected String _userAction(org.palladiosimulator.pcm.usagemodel.Branch userAction)
UserActions only have probabilistic transitions.
-
findUserStart
public static org.palladiosimulator.pcm.usagemodel.Start findUserStart(Iterable<org.palladiosimulator.pcm.usagemodel.AbstractUserAction> actions)
And another helper method, since Actions and UserActions are *obviously* so different that they cannot have a common supertype...
-
userAction
public String userAction(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)
-
-