Class LoadbalancingRDSeffSwitch


  • public class LoadbalancingRDSeffSwitch
    extends LoadbalancingSwitch<org.palladiosimulator.simulizar.interpreter.result.InterpreterResult>
    Extends the simulizar RDSeffSwitch using an extension point. Introduces the interpretation of the new elements LoadbalancerResourceDemandingBehaviour and LoadbalancerAction. LoadbalancerAction is similar to a branch action, beside the branch transition is chosen by load balancing algorithm instead of by a probability function or guard.
    • Field Detail

      • LOGGER

        protected static final org.apache.log4j.Logger LOGGER
    • Constructor Detail

      • LoadbalancingRDSeffSwitch

        @AssistedInject
        public LoadbalancingRDSeffSwitch​(@Assisted
                                         org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context,
                                         @Assisted
                                         org.palladiosimulator.simulizar.interpreter.RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch,
                                         org.palladiosimulator.simulizar.interpreter.EventDispatcher eventDispatcher,
                                         StrategyFactory strategyFactory)
    • Method Detail

      • caseLoadbalancingResourceDemandingBehaviour

        public org.palladiosimulator.simulizar.interpreter.result.InterpreterResult caseLoadbalancingResourceDemandingBehaviour​(LoadbalancingResourceDemandingBehaviour object)
        Description copied from class: LoadbalancingSwitch
        Returns the result of interpreting the object as an instance of 'Resource Demanding Behaviour'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseLoadbalancingResourceDemandingBehaviour in class LoadbalancingSwitch<org.palladiosimulator.simulizar.interpreter.result.InterpreterResult>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Resource Demanding Behaviour'.
        See Also:
        doSwitch(EObject)
      • caseLoadbalancingAction

        public org.palladiosimulator.simulizar.interpreter.result.InterpreterResult caseLoadbalancingAction​(LoadbalancingAction object)
        Description copied from class: LoadbalancingSwitch
        Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.
        Overrides:
        caseLoadbalancingAction in class LoadbalancingSwitch<org.palladiosimulator.simulizar.interpreter.result.InterpreterResult>
        Parameters:
        object - the target of the switch.
        Returns:
        the result of interpreting the object as an instance of 'Action'.
        See Also:
        doSwitch(EObject)