public final class BdaTimestamp extends BasicDataAttribute
children, objectReference| 构造器和说明 |
|---|
BdaTimestamp(ObjectReference objectReference,
Fc fc,
String sAddr,
boolean dchg,
boolean dupd) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
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) |
String |
toString() |
getBasicDataAttributes, getBasicType, getChild, getChild, getChildren, getDchg, getDupd, getQchg, getSAddr, iteratorgetFcgetIterators, getName, getParent, getReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic BdaTimestamp(ObjectReference objectReference, Fc fc, String sAddr, boolean dchg, boolean dupd)
public void setValueFrom(BasicDataAttribute bda)
setValueFrom 在类中 BasicDataAttributepublic 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 在类中 BasicDataAttributepublic void setCurrentTime()
public BdaTimestamp copy()
ModelNodepublic String toString()
toString 在类中 FcModelNodepublic String getValueString()
getValueString 在类中 BasicDataAttributeCopyright © 2025. All rights reserved.