public class BaseEvent extends Object implements BaseEventType
BaseEventType defines all general characteristics of an Event. All other EventTypes derive from it.
There is no other semantic associated with this type.
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseEvent.BaseEventBuilder |
| Constructor and Description |
|---|
BaseEvent(com.digitalpetri.opcua.stack.core.types.builtin.ByteString eventId,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId eventType,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId sourceNode,
String sourceName,
com.digitalpetri.opcua.stack.core.types.builtin.DateTime time,
com.digitalpetri.opcua.stack.core.types.builtin.DateTime receiveTime,
Optional<com.digitalpetri.opcua.stack.core.types.structured.TimeZoneDataType> localTime,
com.digitalpetri.opcua.stack.core.types.builtin.LocalizedText message,
com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort severity) |
| Modifier and Type | Method and Description |
|---|---|
com.digitalpetri.opcua.stack.core.types.builtin.ByteString |
getEventId()
An EventId is generated by the Server to uniquely identify a particular Event.
|
com.digitalpetri.opcua.stack.core.types.builtin.NodeId |
getEventType() |
Optional<com.digitalpetri.opcua.stack.core.types.structured.TimeZoneDataType> |
getLocalTime()
TimeZoneDataType is a structure containing the Offset and the DaylightSavingInOffset flag. |
com.digitalpetri.opcua.stack.core.types.builtin.LocalizedText |
getMessage()
A human-readable and localizable text description of the Event.
|
com.digitalpetri.opcua.stack.core.types.builtin.DataValue |
getProperty(com.digitalpetri.opcua.stack.core.types.builtin.QualifiedName propertyName)
Get the value of a property by name.
|
com.digitalpetri.opcua.stack.core.types.builtin.DateTime |
getReceiveTime()
Provides the time the OPC UA Server received the Event from the underlying device of another Server.
|
com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort |
getSeverity()
An indication of the urgency of the Event.
|
String |
getSourceName()
A description of the source of the Event.
|
com.digitalpetri.opcua.stack.core.types.builtin.NodeId |
getSourceNode()
The Node that the Event originated from.
|
com.digitalpetri.opcua.stack.core.types.builtin.DateTime |
getTime()
The time the Event occurred.
|
public BaseEvent(com.digitalpetri.opcua.stack.core.types.builtin.ByteString eventId,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId eventType,
com.digitalpetri.opcua.stack.core.types.builtin.NodeId sourceNode,
String sourceName,
com.digitalpetri.opcua.stack.core.types.builtin.DateTime time,
com.digitalpetri.opcua.stack.core.types.builtin.DateTime receiveTime,
Optional<com.digitalpetri.opcua.stack.core.types.structured.TimeZoneDataType> localTime,
com.digitalpetri.opcua.stack.core.types.builtin.LocalizedText message,
com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort severity)
public com.digitalpetri.opcua.stack.core.types.builtin.ByteString getEventId()
BaseEventTypegetEventId in interface BaseEventTypeByteString that uniquely identifies this Event.public com.digitalpetri.opcua.stack.core.types.builtin.NodeId getEventType()
getEventType in interface BaseEventTypeNodeId of this type of Event.public com.digitalpetri.opcua.stack.core.types.builtin.NodeId getSourceNode()
BaseEventTypegetSourceNode in interface BaseEventTypeNode that the Event originated from.public String getSourceName()
BaseEventTypegetSourceName in interface BaseEventTypepublic com.digitalpetri.opcua.stack.core.types.builtin.DateTime getTime()
BaseEventTypegetTime in interface BaseEventTypepublic com.digitalpetri.opcua.stack.core.types.builtin.DateTime getReceiveTime()
BaseEventTypegetReceiveTime in interface BaseEventTypepublic Optional<com.digitalpetri.opcua.stack.core.types.structured.TimeZoneDataType> getLocalTime()
BaseEventTypeTimeZoneDataType is a structure containing the Offset and the DaylightSavingInOffset flag. The Offset
specifies the time difference (in minutes) between the Time Property and the time at the location in which the
event was issued.
If DaylightSavingInOffset is TRUE, then Standard/Daylight savings time (DST) at the originating location is in effect and Offset includes the DST correction.
If FALSE then the Offset does not include DST correction and DST may or may not have been in effect.
getLocalTime in interface BaseEventTypeTimeZoneDataType, a structure containing the Offset and the DaylightSavingInOffset flag.public com.digitalpetri.opcua.stack.core.types.builtin.LocalizedText getMessage()
BaseEventTypegetMessage in interface BaseEventTypepublic com.digitalpetri.opcua.stack.core.types.builtin.unsigned.UShort getSeverity()
BaseEventTypegetSeverity in interface BaseEventTypepublic com.digitalpetri.opcua.stack.core.types.builtin.DataValue getProperty(com.digitalpetri.opcua.stack.core.types.builtin.QualifiedName propertyName)
BaseEventTypegetProperty in interface BaseEventTypepropertyName - the QualifiedName of the property.DataValue of the property indicated by propertyName.Copyright © 2015. All rights reserved.