Interface IEnergyWatcherNode

All Superinterfaces:
IGridNodeService

public interface IEnergyWatcherNode extends IGridNodeService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a threshold is crossed.
    void
    provides the IEnergyWatcher for this host, for the current network, is called when the hot changes networks.
  • Method Details

    • updateWatcher

      void updateWatcher(IEnergyWatcher newWatcher)
      provides the IEnergyWatcher for this host, for the current network, is called when the hot changes networks. You do not need to clear your old watcher, its already been removed by the time this gets called.
      Parameters:
      newWatcher - new watcher
    • onThresholdPass

      void onThresholdPass(IEnergyService energyGrid)
      Called when a threshold is crossed.
      Parameters:
      energyGrid - grid