Class AlarmQueryResultImpl

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<AlarmEvent>
com.inductiveautomation.ignition.common.alarming.query.AlarmQueryResultImpl
All Implemented Interfaces:
AlarmQueryResult, Serializable, Cloneable, Iterable<AlarmEvent>, Collection<AlarmEvent>, List<AlarmEvent>, RandomAccess

public class AlarmQueryResultImpl extends ArrayList<AlarmEvent> implements AlarmQueryResult, Serializable
Returns a Dataset derived from an AlarmEvent query. The Dataset is comprised of Primitive types to avoid exposing users to internal types.
See Also:
  • Field Details

  • Constructor Details

    • AlarmQueryResultImpl

      public AlarmQueryResultImpl(boolean isHistory)
    • AlarmQueryResultImpl

      public AlarmQueryResultImpl(AlarmQueryResult copy)
  • Method Details

    • buildFrom

      public static AlarmQueryResult buildFrom(List<AlarmQueryResult> results)
      Combines multiple results into a single one. If the incoming set is only one element, it is returned directly. *
    • getDataset

      public Dataset getDataset()
      Description copied from interface: AlarmQueryResult
      Returns the alarms as a dataset. The specific columns depend on whether this is the result of a status query, or history query.

      History: EventId, Source, DisplayPath, EventTime, EventState, Priority, IsSystemEvent
      Status: EventId, Source, DisplayPath, EventTime, State, Priority

      Specified by:
      getDataset in interface AlarmQueryResult
    • getAssociatedData

      public Dataset getAssociatedData(String uuid)
      Description copied from interface: AlarmQueryResult
      Returns the associated data of an event as a dataset. The columns are [PropertyName, Value]
      Specified by:
      getAssociatedData in interface AlarmQueryResult
    • getEvent

      public AlarmEvent getEvent(String uuid)
      Description copied from interface: AlarmQueryResult
      Returns the actual AlarmEvent object for the specified event uuid.
      Specified by:
      getEvent in interface AlarmQueryResult
    • getPropertiesForDS

      protected Property[] getPropertiesForDS()
      Gets an array of the column property types for the dataset.
      Returns:
      Property[] , an array consisting of the CommonAlarmProperties for the AlarmQueryResult dataset.
    • buildDS

      protected Dataset buildDS()
    • buildAssociatedData

      protected Dataset buildAssociatedData(AlarmEvent evt)
      Builds a dataset from associated data.