Class PcmProtoAction

    • Constructor Summary

      Constructors 
      Constructor Description
      PcmProtoAction()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected 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)
      InteralAction uses a load generator to simulate CPU/HDD usage.
      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.
      String action​(org.palladiosimulator.pcm.seff.AbstractAction action)  
      CharSequence branchTransition​(org.palladiosimulator.pcm.seff.BranchAction action, org.palladiosimulator.pcm.seff.AbstractBranchTransition transition)  
    • Constructor Detail

      • PcmProtoAction

        public PcmProtoAction()
    • Method Detail

      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.CollectionIteratorAction action)
        No idea. We didn't implement this for the last ProtoCom either. FIXME Implement this as it is a crucial part of the bahavior (lehrig)
        Overrides:
        _action in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.LoopAction action)
        LoopAction is transformed into a simple FOR statement.
        Overrides:
        _action in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.ExternalCallAction action)
        ExternalCallAction calls a remote service. TODO: Move exception handling to RMI tech.
        Overrides:
        _action in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.InternalAction action)
        InteralAction uses a load generator to simulate CPU/HDD usage. Note that ProtoCom does NOT use InfrastructureCalls from the PCM model, because these should be reflected by the underlying middleware and OS!
        Overrides:
        _action in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.BranchAction action)
        BranchAction is implemented as an IF condition. A BranchAction may have two different transition types: ProbabilisticBranchTransition and GuardedBranchTransition.
        Overrides:
        _action in class PcmAction
      • _branchTransition

        protected CharSequence _branchTransition​(org.palladiosimulator.pcm.seff.BranchAction action,
                                                 org.palladiosimulator.pcm.seff.ProbabilisticBranchTransition transition)
        Branch transition for ProbabilisticBranchTransition entities.
        Overrides:
        _branchTransition in class PcmAction
      • _branchTransition

        protected CharSequence _branchTransition​(org.palladiosimulator.pcm.seff.BranchAction action,
                                                 org.palladiosimulator.pcm.seff.GuardedBranchTransition transition)
        Branch transition for GuardedBranchTransition.
        Overrides:
        _branchTransition in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.SetVariableAction action)
        TODO Check whether SetVariableAction is needed.
        Overrides:
        _action in class PcmAction
      • _action

        protected String _action​(org.palladiosimulator.pcm.seff.ForkAction 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.
        Overrides:
        _action in class PcmAction
      • action

        public String action​(org.palladiosimulator.pcm.seff.AbstractAction action)
        Overrides:
        action in class PcmAction
      • branchTransition

        public CharSequence branchTransition​(org.palladiosimulator.pcm.seff.BranchAction action,
                                             org.palladiosimulator.pcm.seff.AbstractBranchTransition transition)
        Overrides:
        branchTransition in class PcmAction