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
Nested Classes Modifier and Type Class Description static interface
LoadbalancingRDSeffSwitch.Factory
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.Logger
LOGGER
-
Fields inherited from class org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch
modelPackage
-
-
Constructor Summary
Constructors Constructor Description LoadbalancingRDSeffSwitch(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, org.palladiosimulator.simulizar.interpreter.RDSeffSwitchContributionFactory.RDSeffElementDispatcher parentSwitch, org.palladiosimulator.simulizar.interpreter.EventDispatcher eventDispatcher, StrategyFactory strategyFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.palladiosimulator.simulizar.interpreter.result.InterpreterResult
caseLoadbalancingAction(LoadbalancingAction object)
Returns the result of interpreting the object as an instance of 'Action'.org.palladiosimulator.simulizar.interpreter.result.InterpreterResult
caseLoadbalancingResourceDemandingBehaviour(LoadbalancingResourceDemandingBehaviour object)
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
-
-
-
-
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 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:
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 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:
doSwitch(EObject)
-
-