Package de.fzi.power.interpreter
Interface PowerModelRegistryChangeListener
-
- All Known Implementing Classes:
ConsumptionContext
public interface PowerModelRegistryChangeListener
Listener interface to be implemented by classes which want to be notified upon changes ofPowerModelRegistry
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
distributionPowerModelChanged(AbstractDistributionPowerModelCalculator calculator, PowerProvidingEntity affectedEntity)
Method is called just before a new calculator is set for a power providing entity.void
resourcePowerModelChanged(IResourcePowerModelCalculator calculator, AbstractPowerConsumingResource affectedResource)
Method is called just before a new calculator is set for a power consuming resource.
-
-
-
Method Detail
-
resourcePowerModelChanged
void resourcePowerModelChanged(IResourcePowerModelCalculator calculator, AbstractPowerConsumingResource affectedResource)
Method is called just before a new calculator is set for a power consuming resource.- Parameters:
calculator
- the new calculatoraffectedResource
- the affected resource
-
distributionPowerModelChanged
void distributionPowerModelChanged(AbstractDistributionPowerModelCalculator calculator, PowerProvidingEntity affectedEntity)
Method is called just before a new calculator is set for a power providing entity.- Parameters:
calculator
- the new calculatoraffectedEntity
- the affected resource
-
-