|
|||||||||
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.MicrosecondTimestamp
com.ionetrics.lib.annotatorcomm.annotatorjr.TriggerTimestamp
public class TriggerTimestamp
Timestamp containing the time at a trigger point. Triggers can be hardware generated or software generated.
Field Summary |
---|
Fields inherited from class com.ionetrics.lib.annotatorcomm.MicrosecondTimestamp |
---|
dayOfYear, microsecond, secondOfDay, year |
Constructor Summary | |
---|---|
TriggerTimestamp(int year,
int dayOfYear,
int secondOfDay,
int microsecond)
Construct a TriggerTimestamp. |
Method Summary | |
---|---|
static TriggerTimestamp |
makeTimestamp(byte[] timestamp,
int offset)
typedef struct { uint16_t year; uint16_t dayofyear; uint32_t secondofday; } realtimeclock_t; uint32_t microsecond; |
void |
offsetDays(int offset)
Offset the timestamp by a given number of days. |
void |
offsetMicrosecond(int offset)
Offset the timestamp by a given number of microseconds. |
void |
offsetSeconds(int offset)
Offset the timestamp by a given number of seconds. |
void |
offsetYear(int offset)
Offset the timestamp by a given number of years. |
Methods inherited from class com.ionetrics.lib.annotatorcomm.MicrosecondTimestamp |
---|
getDayOfYear, getMicrosecond, getSecondOfDay, getYear |
Methods inherited from class com.ionetrics.lib.annotatorcomm.Timestamp |
---|
compareTo, equals, getExtendedFormatTime, getFormattedTime, getHourOfDay, getMinuteOfHour, getSecondOfMinute, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TriggerTimestamp(int year, int dayOfYear, int secondOfDay, int microsecond)
year
- timestamp yeardayOfYear
- timestamp day of yearsecondOfDay
- timestamp second of daymicrosecond
- timestamp microsecondMethod Detail |
---|
public void offsetYear(int offset)
offset
- years to offsetpublic void offsetDays(int offset)
offset
- days to offsetpublic void offsetSeconds(int offset)
offset
- seconds to offsetpublic void offsetMicrosecond(int offset)
offset
- microseconds to offsetpublic static TriggerTimestamp makeTimestamp(byte[] timestamp, int offset)
typedef struct { uint16_t year; uint16_t dayofyear; uint32_t secondofday; } realtimeclock_t; uint32_t microsecond;
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |