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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected DatasetBuilds a dataset from associated data.protected DatasetbuildDS()static AlarmQueryResultbuildFrom(List<AlarmQueryResult> results) Combines multiple results into a single one.getAssociatedData(String uuid) Returns the associated data of an event as a dataset.Returns the alarms as a dataset.Returns the actual AlarmEvent object for the specified event uuid.protected Property[]Gets an array of the column property types for the dataset.Methods inherited from class java.util.ArrayListadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollectioncontainsAll, toStringMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Listadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
- 
Field Details- 
EVENT_IDpublic static final int EVENT_ID- See Also:
 
- 
SOURCEpublic static final int SOURCE- See Also:
 
- 
DISPLAY_PATHpublic static final int DISPLAY_PATH- See Also:
 
- 
EVENT_TIMEpublic static final int EVENT_TIME- See Also:
 
- 
EVENT_STATEpublic static final int EVENT_STATE- See Also:
 
- 
PRIORITYpublic static final int PRIORITY- See Also:
 
- 
IS_SYSTEM_EVENTpublic static final int IS_SYSTEM_EVENT- See Also:
 
 
- 
- 
Constructor Details- 
AlarmQueryResultImplpublic AlarmQueryResultImpl(boolean isHistory) 
- 
AlarmQueryResultImpl
 
- 
- 
Method Details- 
buildFromCombines multiple results into a single one. If the incoming set is only one element, it is returned directly. *
- 
getDatasetDescription copied from interface:AlarmQueryResultReturns 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:
- getDatasetin interface- AlarmQueryResult
 
- 
getAssociatedDataDescription copied from interface:AlarmQueryResultReturns the associated data of an event as a dataset. The columns are [PropertyName, Value]- Specified by:
- getAssociatedDatain interface- AlarmQueryResult
 
- 
getEventDescription copied from interface:AlarmQueryResultReturns the actual AlarmEvent object for the specified event uuid.- Specified by:
- getEventin interface- AlarmQueryResult
 
- 
getPropertiesForDSGets an array of the column property types for the dataset.- Returns:
- Property[] , an array consisting of the
 CommonAlarmPropertiesfor the AlarmQueryResult dataset.
 
- 
buildDS
- 
buildAssociatedDataBuilds a dataset from associated data.
 
-