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.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch
modelPackage
-
Constructor Summary
ConstructorDescriptionLoadbalancingRDSeffSwitch
(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, org.palladiosimulator.simulizar.interpreter.RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch, org.palladiosimulator.simulizar.interpreter.EventDispatcher eventDispatcher, StrategyFactory strategyFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.palladiosimulator.simulizar.interpreter.result.InterpreterResult
Returns the result of interpreting the object as an instance of 'Action'.org.palladiosimulator.simulizar.interpreter.result.InterpreterResult
Returns the result of interpreting the object as an instance of 'Resource Demanding Behaviour'.Methods inherited from class org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch
caseAbstractAction, caseAbstractInternalControlFlowAction, caseEntity, caseIdentifier, caseLoadbalancingBranchTransition, caseNamedElement, caseResourceDemandingBehaviour, defaultCase, doSwitch, isSwitchFor
-
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 classLoadbalancingSwitch<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 classLoadbalancingSwitch<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:
-