public class DeviceStratumMessage extends java.lang.Object implements CustomGlobalEncoder
Constructor and Description |
---|
DeviceStratumMessage()
Default constructor required for restore
|
DeviceStratumMessage(java.lang.Object... args)
Restore data from an array of objects encoded through the encodeGlobalMessage functionn
|
DeviceStratumMessage(java.lang.String deviceName,
int stratum)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
encodeGlobalMessage() |
boolean |
equals(java.lang.Object other) |
DeviceStratumMessage |
restore(java.lang.Object restore_data)
Decode the data based on how it is encoded.
|
java.lang.String |
toString() |
public DeviceStratumMessage(java.lang.Object... args)
args
- the Object [] argumentspublic DeviceStratumMessage(java.lang.String deviceName, int stratum)
deviceName
- unique deviceName, eg HB-123456stratum
- an index as to how close this device is to the domain time.public DeviceStratumMessage()
public java.lang.Object[] encodeGlobalMessage()
encodeGlobalMessage
in interface CustomGlobalEncoder
public DeviceStratumMessage restore(java.lang.Object restore_data)
CustomGlobalEncoder
restore
in interface CustomGlobalEncoder
restore_data
- the encoded or decoded datapublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object