Class ForkActionSimulationStrategy

  • All Implemented Interfaces:
    SimulationStrategy<org.palladiosimulator.pcm.seff.AbstractAction,​Request>

    public class ForkActionSimulationStrategy
    extends Object
    implements SimulationStrategy<org.palladiosimulator.pcm.seff.AbstractAction,​Request>
    This traversal strategy is responsible for ForkActions.
    • Constructor Detail

      • ForkActionSimulationStrategy

        public ForkActionSimulationStrategy()
    • Method Detail

      • simulate

        public void simulate​(org.palladiosimulator.pcm.seff.AbstractAction action,
                             Request request,
                             Consumer<TraversalInstruction> onFinishCallback)
        Description copied from interface: SimulationStrategy
        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.

        Specified by:
        simulate in interface SimulationStrategy<org.palladiosimulator.pcm.seff.AbstractAction,​Request>
        Parameters:
        action - the action to be simulated as part of the entity's behaviour
        request - 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