Class BranchSimulationStrategy

  • All Implemented Interfaces:
    SimulationStrategy<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>

    public class BranchSimulationStrategy
    extends Object
    implements SimulationStrategy<org.palladiosimulator.pcm.usagemodel.AbstractUserAction,​User>
    Simulates Branch actions.
    • Constructor Detail

      • BranchSimulationStrategy

        public BranchSimulationStrategy()
    • Method Detail

      • simulate

        public void simulate​(org.palladiosimulator.pcm.usagemodel.AbstractUserAction action,
                             User user,
                             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.usagemodel.AbstractUserAction,​User>
        Parameters:
        action - the action to be simulated as part of the entity's behaviour
        user - 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