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, wait
canSupportPrecision
public java.lang.String getName()
TimeVariable
getName
in interface TimeVariable
public TimePrecision getPrecision()
TimeVariable
time precision
of the variable.getPrecision
in interface TimeVariable
getPrecision
in interface TimeVariableX
public double[] getTimes()
TimeVariable
time instant model
.getTimes
in interface TimeVariable
public double[] getTimes(TimeInstantModel ts) throws java.lang.Throwable
TimeVariable
time instant model
.getTimes
in interface TimeVariable
java.lang.Throwable
public double[] getTimes(int[] recordRange) throws java.lang.Throwable
TimeVariable
time instant model
.getTimes
in interface TimeVariable
java.lang.Throwable
public double[] getTimes(int[] recordRange, TimeInstantModel ts) throws java.lang.Throwable
TimeVariable
time instant model
.getTimes
in interface TimeVariable
java.lang.Throwable
public double[] getTimes(double[] timeRange)
timeRange
- public double[] getTimes(double[] timeRange, TimeInstantModel ts) throws java.lang.Throwable
TimeVariableX
time instant model
.
getTimes
in interface TimeVariableX
timeRange
- relative time rangejava.lang.Throwable
public double[] getTimes(int[] startTime, int[] stopTime, TimeInstantModel ts) throws java.lang.Throwable
TimeVariable
time instant model
.
getTimes
in interface TimeVariable
startTime
- 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.Throwable
public double[] getTimes(int[] startTime, int[] stopTime) throws java.lang.Throwable
TimeVariable
time instant model
.
getTimes
in interface TimeVariable
startTime
- 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.Throwable
public int[] getRecordRange(double[] timeRange) throws java.lang.Throwable
getRecordRange
in interface TimeVariableX
timeRange
- java.lang.Throwable
public int[] getRecordRange(int[] startTime, int[] stopTime) throws java.lang.Throwable
TimeVariable
time instant model
.getRecordRange
in interface TimeVariable
startTime
- 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.Throwable
public int[] getRecordRange(int[] startTime, int[] stopTime, TimeInstantModel ts) throws java.lang.Throwable
getRecordRange
in interface TimeVariableX
startTime
- stopTime
- ts
- java.lang.Throwable
public int[] getRecordRange(double[] timeRange, TimeInstantModel ts) throws java.lang.Throwable
timeRange
- ts
- java.lang.Throwable
protected void setRecordCount(int count)
count
- public double getFirstMilliSecond()
TimeVariable
This number may be useful as a base time for a time instant model when looking at high time resolution data.
getFirstMilliSecond
in interface TimeVariable
public abstract boolean isTT2000()
TimeVariable
isTT2000
in interface TimeVariable
public java.nio.ByteBuffer getRawBuffer()
getRawBuffer
in interface TimeVariableX