Class LoadbalancingRDSeffSwitch

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch<org.palladiosimulator.simulizar.interpreter.result.InterpreterResult>
org.palladiosimulator.loadbalancingaction.rdseff.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 Details

    • LOGGER

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

    • 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 Details

    • 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:
    • 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: