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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ArrayList
add, 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.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, 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_ID
public static final int EVENT_ID- See Also:
-
SOURCE
public static final int SOURCE- See Also:
-
DISPLAY_PATH
public static final int DISPLAY_PATH- See Also:
-
EVENT_TIME
public static final int EVENT_TIME- See Also:
-
EVENT_STATE
public static final int EVENT_STATE- See Also:
-
PRIORITY
public static final int PRIORITY- See Also:
-
IS_SYSTEM_EVENT
public static final int IS_SYSTEM_EVENT- See Also:
-
-
Constructor Details
-
AlarmQueryResultImpl
public AlarmQueryResultImpl(boolean isHistory) -
AlarmQueryResultImpl
-
-
Method Details
-
buildFrom
Combines multiple results into a single one. If the incoming set is only one element, it is returned directly. * -
getDataset
Description 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 interfaceAlarmQueryResult
-
getAssociatedData
Description copied from interface:AlarmQueryResultReturns the associated data of an event as a dataset. The columns are [PropertyName, Value]- Specified by:
getAssociatedDatain interfaceAlarmQueryResult
-
getEvent
Description copied from interface:AlarmQueryResultReturns the actual AlarmEvent object for the specified event uuid.- Specified by:
getEventin interfaceAlarmQueryResult
-
getPropertiesForDS
Gets an array of the column property types for the dataset.- Returns:
- Property[] , an array consisting of the
CommonAlarmPropertiesfor the AlarmQueryResult dataset.
-
buildDS
-
buildAssociatedData
Builds a dataset from associated data.
-