Class LoadbalancingRDSeffSwitch
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch<Object>
-
- org.palladiosimulator.loadbalancingaction.rdseff.LoadbalancingRDSeffSwitch
-
- All Implemented Interfaces:
org.palladiosimulator.simulizar.interpreter.IComposableSwitch
public class LoadbalancingRDSeffSwitch extends LoadbalancingSwitch<Object> implements org.palladiosimulator.simulizar.interpreter.IComposableSwitch
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 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.runtimestate.SimulatedBasicComponentInstance basicComponentInstance, ComposedSwitch<Object> parentSwitch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
caseLoadbalancingAction(LoadbalancingAction object)
Returns the result of interpreting the object as an instance of 'Action'.Object
caseLoadbalancingResourceDemandingBehaviour(LoadbalancingResourceDemandingBehaviour object)
Returns the result of interpreting the object as an instance of 'Resource Demanding Behaviour'.Switch<Object>
getParentSwitch()
-
Methods inherited from class org.palladiosimulator.loadbalancingaction.loadbalancing.util.LoadbalancingSwitch
caseAbstractAction, caseAbstractInternalControlFlowAction, caseEntity, caseIdentifier, caseLoadbalancingBranchTransition, caseNamedElement, caseResourceDemandingBehaviour, defaultCase, doSwitch, isSwitchFor
-
-
-
-
Constructor Detail
-
LoadbalancingRDSeffSwitch
public LoadbalancingRDSeffSwitch(org.palladiosimulator.simulizar.interpreter.InterpreterDefaultContext context, org.palladiosimulator.simulizar.runtimestate.SimulatedBasicComponentInstance basicComponentInstance, ComposedSwitch<Object> parentSwitch)
-
-
Method Detail
-
getParentSwitch
public Switch<Object> getParentSwitch()
- Specified by:
getParentSwitch
in interfaceorg.palladiosimulator.simulizar.interpreter.IComposableSwitch
-
caseLoadbalancingResourceDemandingBehaviour
public Object 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<Object>
- 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 Object 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<Object>
- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Action'.
- See Also:
doSwitch(EObject)
-
-