public final class BdaTimestamp extends BasicDataAttribute
children, objectReference
Constructor | Description |
---|---|
BdaTimestamp(ObjectReference objectReference,
Fc fc,
java.lang.String sAddr,
boolean dchg,
boolean dupd) |
Modifier and Type | Method | 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.time.Instant |
getInstant() |
|
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() |
|
java.lang.String |
getValueString() |
|
void |
setCurrentTime() |
Sets Timestamp to current time
|
void |
setDefault() |
Sets Timestamp the empty byte array (indicating an invalid Timestamp)
|
void |
setInstant(java.time.Instant instant) |
|
void |
setInstant(java.time.Instant instant,
boolean leapSecondsKnown,
boolean clockFailure,
boolean clockNotSynchronized,
int timeAccuracy) |
|
void |
setValue(byte[] value) |
|
void |
setValueFrom(BasicDataAttribute bda) |
|
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 setValueFrom(BasicDataAttribute bda)
setValueFrom
in class BasicDataAttribute
public java.time.Instant getInstant()
public void setInstant(java.time.Instant instant)
public void setInstant(java.time.Instant instant, boolean leapSecondsKnown, boolean clockFailure, boolean clockNotSynchronized, int timeAccuracy)
public byte[] getValue()
public void setValue(byte[] value)
public boolean getLeapSecondsKnown()
public boolean getClockFailure()
public boolean getClockNotSynchronized()
public int getTimeAccuracy()
If the time is set via Java 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
public java.lang.String getValueString()
getValueString
in class BasicDataAttribute