Interface SimulationStrategy<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity>
-
- All Known Subinterfaces:
DecoratingSimulationStrategy<A,E>
- All Known Implementing Classes:
AcquireActionSimulationStrategy
,BranchActionSimulationStrategy
,BranchSimulationStrategy
,DelaySimulationStrategy
,EntryLevelSystemCallSimulationStrategy
,ExternalCallSimulationStrategy
,ForkActionSimulationStrategy
,InternalActionSimulationStrategy
,LoopActionSimulationStrategy
,LoopSimulationStrategy
,ReleaseActionSimulationStrategy
,SetVariableActionSimulationStrategy
,StartActionSimulationStrategy
,StartSimulationStrategy
,StopActionSimulationStrategy
,StopSimulationStrategy
public interface SimulationStrategy<A extends org.palladiosimulator.pcm.core.entity.Entity,E extends EventSimEntity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
simulate(A action, E entity, Consumer<TraversalInstruction> onFinishCallback)
Simulates a particular behavioural aspect of anentity
, expressed by the givenaction
.
-
-
-
Method Detail
-
simulate
void simulate(A action, E entity, 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.
- Parameters:
action
- the action to be simulated as part of the entity's behaviourentity
- 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
-
-