Interface PowerModelRegistryChangeListener

  • All Known Implementing Classes:
    ConsumptionContext

    public interface PowerModelRegistryChangeListener
    Listener interface to be implemented by classes which want to be notified upon changes of PowerModelRegistrys
    • 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 calculator
        affectedResource - 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 calculator
        affectedEntity - the affected resource