public final class EventNotification
extends java.lang.Object
Constructor and Description |
---|
EventNotification(AttributeAddress attributeAddress,
DataObject newValue)
Creates a new event notification without timestamp
|
EventNotification(AttributeAddress attributeAddress,
DataObject newValue,
java.lang.Long timestamp)
Creates a new event notification without timestamp
|
Modifier and Type | Method and Description |
---|---|
AttributeAddress |
attributeAddress() |
DataObject |
data() |
boolean |
hasTimestamp() |
java.lang.Long |
timestamp() |
public EventNotification(AttributeAddress attributeAddress, DataObject newValue)
attributeAddress
- the attribute addressnewValue
- The new value of the attributepublic EventNotification(AttributeAddress attributeAddress, DataObject newValue, java.lang.Long timestamp)
attributeAddress
- the attribute addressnewValue
- The new value of the attributetimestamp
- The timestamp of the remote station when the event has been raisedpublic AttributeAddress attributeAddress()
public DataObject data()
public java.lang.Long timestamp()
public boolean hasTimestamp()