public final class BdaTimestamp extends BasicDataAttribute
children, objectReference
Constructor and Description |
---|
BdaTimestamp(ObjectReference objectReference,
Fc fc,
java.lang.String sAddr,
boolean dchg,
boolean dupd) |
Modifier and Type | Method and Description |
---|---|
BdaTimestamp |
copy()
Returns a copy of model node with all of its children.
|
boolean |
getClockFailure()
The attribute clockFailure shall indicate that the time source of the sending device is unreliable.
|
boolean |
getClockNotSynchronized()
The attribute clockNotSynchronized shall indicate that the time source of the sending device is not synchronized
with the external UTC time.
|
java.util.Date |
getDate() |
boolean |
getLeapSecondsKnown()
The value TRUE of the attribute LeapSecondsKnown shall indicate that the value for SecondSinceEpoch takes into
account all leap seconds occurred.
|
int |
getTimeAccuracy()
The attribute TimeAccuracy shall represent the time accuracy class of the time source of the sending device
relative to the external UTC time.
|
byte[] |
getValue() |
void |
setCurrentTime()
Sets Timestamp to current time
|
void |
setDate(java.util.Date date) |
void |
setDate(java.util.Date date,
boolean leapSecondsKnown,
boolean clockFailure,
boolean clockNotSynchronized,
int timeAccuracy) |
void |
setDefault()
Sets Timestamp the empty byte array (indicating an invalid Timestamp)
|
void |
setValue(byte[] value) |
java.lang.String |
toString() |
getBasicDataAttributes, getBasicType, getChild, getChild, getChildren, getDchg, getDupd, getQchg, getSAddr, iterator
getFc
getIterators, getName, getParent, getReference
public BdaTimestamp(ObjectReference objectReference, Fc fc, java.lang.String sAddr, boolean dchg, boolean dupd)
public void setDate(java.util.Date date)
public void setDate(java.util.Date date, boolean leapSecondsKnown, boolean clockFailure, boolean clockNotSynchronized, int timeAccuracy)
public void setValue(byte[] value)
public java.util.Date getDate()
public byte[] getValue()
public boolean getLeapSecondsKnown()
Date
and Calendar
objects do handle leap seconds, so this is usually true.public boolean getClockFailure()
public boolean getClockNotSynchronized()
public int getTimeAccuracy()
Date
objects, the accuracy is 1 ms, that is a timeAccuracy value of 10.public void setDefault()
setDefault
in class BasicDataAttribute
public void setCurrentTime()
public BdaTimestamp copy()
ModelNode
public java.lang.String toString()
toString
in class FcModelNode