Interface SimulationStrategy<A extends org.palladiosimulator.pcm.core.entity.Entity,​E extends EventSimEntity>

    • Method Detail

      • simulate

        void simulate​(A action,
                      E entity,
                      Consumer<TraversalInstruction> onFinishCallback)
        Simulates a particular behavioural aspect of an entity, expressed by the given action.

        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 behaviour
        entity - the entity whose behaviour is to be simulated by this strategy
        onFinishCallback - the callback that must be invoked once this strategy finishes simulation; a traversal instruction is passed as argument to the callback