Interface IEnergyWatcher


public interface IEnergyWatcher
DO NOT IMPLEMENT. Will be injected when adding an IEnergyWatcherNode to a grid.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(double amount)
    Add a specific threshold to watch.
    boolean
    remove(double amount)
    Remove a specific threshold from the watcher.
    void
    Removes all thresholds and resets the watcher to a clean state.
  • Method Details

    • add

      boolean add(double amount)
      Add a specific threshold to watch. Supports multiple values, duplicate ones will not be added.
      Returns:
      true, if successfully added.
    • remove

      boolean remove(double amount)
      Remove a specific threshold from the watcher.
      Returns:
      true, if successfully removed.
    • reset

      void reset()
      Removes all thresholds and resets the watcher to a clean state.