Class CommandStats

java.lang.Object
org.sensorhub.api.datastore.command.CommandStats

public class CommandStats extends Object

Immutable object representing statistics for commands of a specific command stream.

Since:
Mar 12, 2021
  • Field Details

    • commandStreamID

      protected BigId commandStreamID
    • issueTimeRange

      protected TimeExtent issueTimeRange
    • actuationTimeRange

      protected TimeExtent actuationTimeRange
    • totalCommandCount

      protected long totalCommandCount
    • commandCountsByTime

      protected int[] commandCountsByTime
  • Method Details

    • getCommandStreamID

      public BigId getCommandStreamID()
      Returns:
      The ID of the command stream that these statistics apply to
    • getIssueTimeRange

      public TimeExtent getIssueTimeRange()
      Returns:
      The time range spanned by issue times of all selected commands
    • getActuationTimeRange

      public TimeExtent getActuationTimeRange()
      Returns:
      The time range spanned by actuation times of all selected commands
    • getTotalCommandCount

      public long getTotalCommandCount()
      Returns:
      The total number of selected commands
    • getCommandCountsByTime

      public int[] getCommandCountsByTime()
      Returns:
      The histogram of command counts vs. time
    • toString

      public String toString()
      Overrides:
      toString in class Object