Class SimpleTimeseriesQuery

java.lang.Object
de.iip_ecosphere.platform.connectors.events.SimpleTimeseriesQuery
All Implemented Interfaces:
ConnectorTriggerQuery

public class SimpleTimeseriesQuery extends Object implements ConnectorTriggerQuery
Represents a simple timeseries query given by start/end time assuming that the connector knows from where to get the data.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • SimpleTimeseriesQuery

      public SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind)
      Creates a simple time series query with start time point and unspecified end.
      Parameters:
      start - the start time
      startKind - the start kind as interpretation of start
    • SimpleTimeseriesQuery

      public SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind)
      Creates a simple time series query.
      Parameters:
      start - the start time
      startKind - the start kind as interpretation of start
      end - the end time
      endKind - the end kind as interpretation of start
    • SimpleTimeseriesQuery

      public SimpleTimeseriesQuery(int start, SimpleTimeseriesQuery.TimeKind startKind, int end, SimpleTimeseriesQuery.TimeKind endKind, int delay)
      Creates a simple time series query.
      Parameters:
      start - the start time
      startKind - the start kind as interpretation of start
      end - the end time
      endKind - the end kind as interpretation of start
      delay - the fixed absolute delay of a result timeseries in ms, 0 for none
  • Method Details

    • getStart

      public int getStart()
      Returns the start time.
      Returns:
      the start time, interpretation see getStartKind()
    • getStartKind

      public SimpleTimeseriesQuery.TimeKind getStartKind()
      Returns the interpretation of the start time.
      Returns:
      the the start kind
    • getEnd

      public int getEnd()
      Returns the end time.
      Returns:
      the end time, interpretation see getEndKind()
    • getEndKind

      public SimpleTimeseriesQuery.TimeKind getEndKind()
      Returns the interpretation of the end time.
      Returns:
      the end kind
    • delay

      public int delay()
      Description copied from interface: ConnectorTriggerQuery
      Delay for multiple-data streamed result.
      Specified by:
      delay in interface ConnectorTriggerQuery
      Returns:
      delay between two result data points in ms, none/existing timing if not positive