|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ionetrics.lib.annotatorcomm.Timestamp
com.ionetrics.lib.annotatorcomm.IrigBTimestamp
public class IrigBTimestamp
IrigBTimestamp is a timestamp containing the exact bit stream of an Irig B source. The stream includes BCD seconds, minutes, hours, days, and years, straight binary time of day in seconds, and control functions for field testing and use.
Field Summary | |
---|---|
static int |
CONTROL_FUNCTION_BITS
Irig-B timestamps contain 19 control function bits. |
static int |
LENGTH
Irig-B timestamps are 10 bytes long. |
Constructor Summary | |
---|---|
IrigBTimestamp(byte[] timestamp)
Construct a new IrigBTimestamp. |
Method Summary | |
---|---|
int |
getControlFunctions()
Get the control function bits. |
int |
getDayOfYear()
Get the day of year value from the BCD Day of Year field. |
java.lang.String |
getExtendedFormatTime()
Get the formatted time the BCD time of day and control functions appended. |
java.lang.String |
getFormattedControlFunctions()
Get the control function bits as a String of 0's and 1's. |
int |
getHourOfDay()
Get the hour of day (24 hour day). |
int |
getMicrosecond()
Zero is always returned as Irig B doesn't carry microsecond accuracy directly. |
int |
getMinuteOfHour()
Get the minute of the hour. |
int |
getSBS()
Get the second of day value from the SB Second of Day field. |
int |
getSecondOfDay()
Get the second of the day. |
int |
getSecondOfMinute()
Get the second of the minute. |
byte[] |
getTimestampBytes()
Get an array containing the timestamp bytes. |
int |
getYear()
Get the year value from the BCD Year field. |
Methods inherited from class com.ionetrics.lib.annotatorcomm.Timestamp |
---|
compareTo, equals, getFormattedTime, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LENGTH
public static final int CONTROL_FUNCTION_BITS
Constructor Detail |
---|
public IrigBTimestamp(byte[] timestamp)
timestamp
- timestamp bytes
java.lang.IllegalArgumentException
- thrown on incorrect timestamp lengthMethod Detail |
---|
public int getYear()
getYear
in class Timestamp
public int getDayOfYear()
getDayOfYear
in class Timestamp
public int getSBS()
public int getMicrosecond()
getMicrosecond
in class Timestamp
public int getHourOfDay()
getHourOfDay
in class Timestamp
public int getMinuteOfHour()
getMinuteOfHour
in class Timestamp
public int getSecondOfMinute()
getSecondOfMinute
in class Timestamp
public int getSecondOfDay()
Timestamp
getSecondOfDay
in class Timestamp
public int getControlFunctions()
public java.lang.String getFormattedControlFunctions()
public java.lang.String getExtendedFormatTime()
getExtendedFormatTime
in class Timestamp
public byte[] getTimestampBytes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |