public class PowerModelUpdaterSwitch extends InfrastructureSwitch<Void>
PowerAssemblyContext that has been set for them.| Constructor and Description |
|---|
PowerModelUpdaterSwitch(PowerModelRegistry registry,
CalculatorInstantiator calcInstantiator)
Creates the switch for updating the power models registered in the
PowerModelRegistry
of an interpreted power infrastructure model. |
| Modifier and Type | Method and Description |
|---|---|
Void |
caseMountedPowerDistributionUnit(MountedPowerDistributionUnit mountedPdu)
Update the power model for a
MountedPowerDistributionUnit. |
Void |
casePowerConsumingResource(PowerConsumingResource powerConsumingResource)
Update the power model for a power-consuming resource (
PowerConsumingResource) such
as a CPU, HDD etc. |
Void |
casePowerDistributionUnit(PowerDistributionUnit powerDistributionUnit)
Update the power model for a
PowerDistributionUnit. |
Void |
casePowerInfrastructureRepository(PowerInfrastructureRepository repo)
Returns the result of interpreting the object as an instance of '
Power Infrastructure Repository'.
|
Void |
casePowerProvidingEntity(PowerProvidingEntity ppe)
Update the power model for a
PowerProvidingEntity. |
Void |
caseStatefulPowerConsumingResource(StatefulPowerConsumingResource powerConsumingResource)
Returns the result of interpreting the object as an instance of '
Stateful Power Consuming Resource'.
|
caseAbstractPowerConsumingResource, caseEntity, caseIdentifier, caseNamedElement, casePowerConsumingEntity, casePowerConsumingProvidingEntity, defaultCasepublic PowerModelUpdaterSwitch(PowerModelRegistry registry, CalculatorInstantiator calcInstantiator)
PowerModelRegistry
of an interpreted power infrastructure model.registry - The registry onto which the power models are registered.calcInstantiator - The factory used for instantiating the respective updated elements.public Void casePowerInfrastructureRepository(PowerInfrastructureRepository repo)
InfrastructureSwitchcasePowerInfrastructureRepository in class InfrastructureSwitch<Void>repo - the target of the switch.doSwitch(EObject)public Void casePowerDistributionUnit(PowerDistributionUnit powerDistributionUnit)
PowerDistributionUnit.casePowerDistributionUnit in class InfrastructureSwitch<Void>The - updated PDU.doSwitch(EObject)public Void casePowerProvidingEntity(PowerProvidingEntity ppe)
PowerProvidingEntity.casePowerProvidingEntity in class InfrastructureSwitch<Void>The - updated PowerProvidingEntity entity.doSwitch(EObject)public Void caseMountedPowerDistributionUnit(MountedPowerDistributionUnit mountedPdu)
MountedPowerDistributionUnit.caseMountedPowerDistributionUnit in class InfrastructureSwitch<Void>The - updated mounted PDU.doSwitch(EObject)public Void casePowerConsumingResource(PowerConsumingResource powerConsumingResource)
PowerConsumingResource) such
as a CPU, HDD etc.casePowerConsumingResource in class InfrastructureSwitch<Void>powerConsumingResource - The resource for which the power model is updated.doSwitch(EObject)public Void caseStatefulPowerConsumingResource(StatefulPowerConsumingResource powerConsumingResource)
InfrastructureSwitchcaseStatefulPowerConsumingResource in class InfrastructureSwitch<Void>powerConsumingResource - the target of the switch.doSwitch(EObject)