public abstract static class TimeVariableFactory.CDFTimeVariable extends java.lang.Object implements TimeVariableX
| Modifier and Type | Method and Description |
|---|---|
double |
getFirstMilliSecond()
Returns the millisecond offset of the first record using Epoch 0
as the base time
|
java.lang.String |
getName()
Returns name of the variable.
|
TimePrecision |
getPrecision()
Returns
time precision of the variable. |
java.nio.ByteBuffer |
getRawBuffer() |
int[] |
getRecordRange(double[] timeRange) |
int[] |
getRecordRange(double[] timeRange,
TimeInstantModel ts) |
int[] |
getRecordRange(int[] startTime,
int[] stopTime)
Returns range of records which fall within the specified range
of times relative to the base of the given
time instant model. |
int[] |
getRecordRange(int[] startTime,
int[] stopTime,
TimeInstantModel ts) |
double[] |
getTimes()
Returns relative times using the default
time instant model. |
double[] |
getTimes(double[] timeRange) |
double[] |
getTimes(double[] timeRange,
TimeInstantModel ts)
Returns relative times for the specified time range using the given
time instant model. |
double[] |
getTimes(int[] recordRange)
Returns relative times for the specified record range using the default
time instant model. |
double[] |
getTimes(int[] startTime,
int[] stopTime)
Returns relative times for the specified time range using the default
time instant model. |
double[] |
getTimes(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
Returns relative times for the specified time range using the given
time instant model. |
double[] |
getTimes(int[] recordRange,
TimeInstantModel ts)
Returns relative times for the specified record range using the specified
time instant model. |
double[] |
getTimes(TimeInstantModel ts)
Returns relative times using the specified
time instant model. |
abstract boolean |
isTT2000()
Returns whether this is a TT2000 type variable
|
protected void |
setRecordCount(int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanSupportPrecisionpublic java.lang.String getName()
TimeVariablegetName in interface TimeVariablepublic TimePrecision getPrecision()
TimeVariabletime precision of the variable.getPrecision in interface TimeVariablegetPrecision in interface TimeVariableXpublic double[] getTimes()
TimeVariabletime instant model.getTimes in interface TimeVariablepublic double[] getTimes(TimeInstantModel ts) throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablejava.lang.Throwablepublic double[] getTimes(int[] recordRange)
throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablejava.lang.Throwablepublic double[] getTimes(int[] recordRange,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariabletime instant model.getTimes in interface TimeVariablejava.lang.Throwablepublic double[] getTimes(double[] timeRange)
timeRange - public double[] getTimes(double[] timeRange,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariableXtime instant model.
getTimes in interface TimeVariableXtimeRange - relative time rangejava.lang.Throwablepublic double[] getTimes(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
throws java.lang.Throwable
TimeVariabletime instant model.
getTimes in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.java.lang.Throwablepublic double[] getTimes(int[] startTime,
int[] stopTime)
throws java.lang.Throwable
TimeVariabletime instant model.
getTimes in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.java.lang.Throwablepublic int[] getRecordRange(double[] timeRange)
throws java.lang.Throwable
getRecordRange in interface TimeVariableXtimeRange - java.lang.Throwablepublic int[] getRecordRange(int[] startTime,
int[] stopTime)
throws java.lang.Throwable
TimeVariabletime instant model.getRecordRange in interface TimeVariablestartTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.stopTime - a 3 to 7 element int[], containing year, month,
day,hour, minute, second and millisecond.java.lang.Throwablepublic int[] getRecordRange(int[] startTime,
int[] stopTime,
TimeInstantModel ts)
throws java.lang.Throwable
getRecordRange in interface TimeVariableXstartTime - stopTime - ts - java.lang.Throwablepublic int[] getRecordRange(double[] timeRange,
TimeInstantModel ts)
throws java.lang.Throwable
timeRange - ts - java.lang.Throwableprotected void setRecordCount(int count)
count - public double getFirstMilliSecond()
TimeVariableThis number may be useful as a base time for a time instant model when looking at high time resolution data.
getFirstMilliSecond in interface TimeVariablepublic abstract boolean isTT2000()
TimeVariableisTT2000 in interface TimeVariablepublic java.nio.ByteBuffer getRawBuffer()
getRawBuffer in interface TimeVariableX