public class Event extends java.lang.Object implements TopologyInformation
| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Builder
This class is a Builder for an Event.
|
| Modifier and Type | Field and Description |
|---|---|
static org.opendof.core.oal.DOFInterfaceID |
DEFAULT_SINK_VERSION
The default sink version that this implementation uses.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
org.opendof.core.oal.DOFObjectID |
getDeviceID()
Return the ID of the device originating the Event.
|
org.opendof.core.oal.DOFInterfaceID |
getInterfaceID()
Return the InterfaceID of the Event.
|
int |
getItemID()
Return the Item ID of the Event.
|
org.opendof.core.oal.DOFObjectID |
getParentID()
Return the ID of the parent of the device originating the Event.
|
java.lang.Integer |
getPosition()
Return the position of the device within the parent.
|
byte[] |
getStorageBytes()
Get a compressed byte array containing all data required to reconstruct an event.
|
java.util.Date |
getTimestamp()
Return the timestamp of the event.
|
byte[] |
getTransferBytes(org.opendof.core.oal.DOFInterfaceID version)
Return an array of bytes that can be used later to reconstruct the Event.
|
org.opendof.core.oal.DOFType[] |
getTypes()
Return an array of types associated with the Event.
|
org.opendof.core.oal.DOFValue[] |
getValues()
Return an array of values associated with the Event.
|
int |
hashCode() |
public static final org.opendof.core.oal.DOFInterfaceID DEFAULT_SINK_VERSION
public byte[] getTransferBytes(org.opendof.core.oal.DOFInterfaceID version)
version - The version identifying the marshaled byte format.Event.Builder.loadTransferBytes(DOFInterfaceID, byte[]) to reconstruct an Event.DEFAULT_SINK_VERSIONpublic byte[] getStorageBytes()
Event.Builder.loadStorageBytes(byte[]) to reconstruct an Event.public org.opendof.core.oal.DOFObjectID getDeviceID()
getDeviceID in interface TopologyInformationpublic org.opendof.core.oal.DOFObjectID getParentID()
getParentID in interface TopologyInformationpublic java.lang.Integer getPosition()
getPosition in interface TopologyInformationpublic java.util.Date getTimestamp()
getTimestamp in interface TopologyInformationpublic org.opendof.core.oal.DOFInterfaceID getInterfaceID()
public int getItemID()
public org.opendof.core.oal.DOFType[] getTypes()
public org.opendof.core.oal.DOFValue[] getValues()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object