Class InternalActionHandler

java.lang.Object
org.palladiosimulator.solver.handler.InternalActionHandler

public class InternalActionHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • InternalActionHandler

      public InternalActionHandler(SeffVisitor seffVisitor)
  • Method Details

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