Class SumStateMessage

java.lang.Object
io.openems.backend.alerting.Message
io.openems.backend.alerting.message.SumStateMessage
All Implemented Interfaces:
Comparable<Message>

public class SumStateMessage extends Message
  • Field Details

  • Constructor Details

  • Method Details

    • getSumState

      public Level getSumState()
    • getStateSince

      public ZonedDateTime getStateSince()
    • getNotifyStamp

      public ZonedDateTime getNotifyStamp()
      Description copied from class: Message
      Returns the time stamp at which this message is supposed to be sent.
      Specified by:
      getNotifyStamp in class Message
      Returns:
      ZonedDateTime at which to send this message
    • setSumState

      public void setSumState(Level sumState, ZonedDateTime now)
    • getEdgeId

      public String getEdgeId()
    • getCurrentRecipients

      public List<SumStateAlertingSetting> getCurrentRecipients()
      Get the list of settings, which are closest to be sent.
      Returns:
      List of recipients
    • getParams

      public com.google.gson.JsonObject getParams()
      Description copied from class: Message
      Get attributes as JsonObject for Mailer.
      Specified by:
      getParams in class Message
      Returns:
      JsonObject
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • update

      public boolean update()
      Update and prepare message for a next schedule.
      Returns:
      true if should be rescheduled;
    • isEmpty

      public boolean isEmpty()