Class StopSimulationStrategy
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.workload.interpreter.strategies.StopSimulationStrategy
-
- All Implemented Interfaces:
SimulationStrategy<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,User>
public class StopSimulationStrategy extends Object implements SimulationStrategy<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,User>
This traversal strategy is responsible forStop
actions.
-
-
Constructor Summary
Constructors Constructor Description StopSimulationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
simulate(org.palladiosimulator.pcm.usagemodel.AbstractUserAction action, User user, Consumer<TraversalInstruction> onFinishCallback)
Simulates a particular behavioural aspect of anentity
, expressed by the givenaction
.
-
-
-
Method Detail
-
simulate
public void simulate(org.palladiosimulator.pcm.usagemodel.AbstractUserAction action, User user, Consumer<TraversalInstruction> onFinishCallback)
Simulates a particular behavioural aspect of anentity
, expressed by the givenaction
.For example, let's assume the given action describes a call to another component, and let the entity be a request (or process). The corresponding strategy would then simulate the request's effects of calling the external component service.
Once desired effects have been simulated, this simulation strategy must provide a traversal instruction to its caller by invoking the passed callback.
- Specified by:
simulate
in interfaceSimulationStrategy<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,User>
- Parameters:
action
- the action to be simulated as part of the entity's behaviouruser
- the entity whose behaviour is to be simulated by this strategyonFinishCallback
- the callback that must be invoked once this strategy finishes simulation; a traversal instruction is passed as argument to the callback
-
-