Package org.openmuc.jdlms
Class EventNotification
- java.lang.Object
-
- org.openmuc.jdlms.EventNotification
-
public final class EventNotification extends java.lang.Object
Class holding all data received from an event that the remote station sent
-
-
Constructor Summary
Constructors Constructor Description EventNotification(AttributeAddress attributeAddress, DataObject newValue, java.lang.Long timestamp)
Creates a new event notification without timestamp
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeAddress
attributeAddress()
DataObject
getData()
java.lang.Long
getTimestamp()
boolean
hasTimestamp()
-
-
-
Constructor Detail
-
EventNotification
public EventNotification(AttributeAddress attributeAddress, DataObject newValue, java.lang.Long timestamp)
Creates a new event notification without timestamp- Parameters:
attributeAddress
- the attribute addressnewValue
- The new value of the attributetimestamp
- The timestamp of the remote station when the event has been raised
-
-
Method Detail
-
attributeAddress
public AttributeAddress attributeAddress()
-
getData
public DataObject getData()
-
getTimestamp
public java.lang.Long getTimestamp()
- Returns:
- The timestamp when this event has been generated at the remote station. Null if there is no timestamp
-
hasTimestamp
public boolean hasTimestamp()
- Returns:
- True if this event has a timestamp
-
-