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
     
  • Method Summary

    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.sleep
    protected 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.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(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)
     
    userActions(org.palladiosimulator.pcm.usagemodel.AbstractUserAction userAction)
    Follows the user action path and calls "userAction" for each action in it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PcmUserAction

      public PcmUserAction()
  • Method Details

    • 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)