Class InternalActionHandler


  • public class InternalActionHandler
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createActualResourceDemand​(org.palladiosimulator.pcm.seff.InternalAction action, org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand prd, org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification prs)
      Create a ResourceDemand in the computed allocation context for the given ParametricResourceDemand and ProcessingResourceSpecification The resulting ResourceDemand already takes into account the processing rate.
      protected String getSolvedResourceDemandSpecification​(String specification)
      Get a combined expression for the demanded time: specification / processing rate prs As the expressions can be more complex, we added parentheses, resulting in (specification)/((prs)*1.0).
      void handle​(org.palladiosimulator.pcm.seff.InternalAction action)  
    • Constructor Detail

      • InternalActionHandler

        public InternalActionHandler​(SeffVisitor seffVisitor)
    • Method Detail

      • handle

        public void handle​(org.palladiosimulator.pcm.seff.InternalAction action)
        Parameters:
        action -
      • createActualResourceDemand

        protected void createActualResourceDemand​(org.palladiosimulator.pcm.seff.InternalAction action,
                                                  org.palladiosimulator.pcm.seff.seff_performance.ParametricResourceDemand prd,
                                                  org.palladiosimulator.pcm.resourceenvironment.ProcessingResourceSpecification prs)
        Create a ResourceDemand in the computed allocation context for the given ParametricResourceDemand and ProcessingResourceSpecification The resulting ResourceDemand already takes into account the processing rate.
        Parameters:
        prd -
        prs -
      • getSolvedResourceDemandSpecification

        protected String getSolvedResourceDemandSpecification​(String specification)
        Get a combined expression for the demanded time: specification / processing rate prs As the expressions can be more complex, we added parentheses, resulting in (specification)/((prs)*1.0). This expression is then solved in the ContextWrapper of this.visitor. and finally again printed to a String.
        Parameters:
        specification -
        prs -
        Returns:
        A String with the solved expression.