Class InternalActionHandler
java.lang.Object
org.palladiosimulator.solver.handler.InternalActionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
InternalActionHandler
-
-
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
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.
-