@Immutable public abstract class CoordinateTimeAbstract extends java.lang.Object implements Coordinate
Coordinate.Type| Modifier and Type | Field and Description |
|---|---|
static CalendarDateFactory |
cdf |
protected int |
code |
static java.lang.String |
MIXED_INTERVALS |
protected java.lang.String |
name |
protected java.lang.String |
periodName |
protected ucar.nc2.time.CalendarDate |
refDate |
protected int[] |
time2runtime |
protected ucar.nc2.time.CalendarPeriod |
timeUnit |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
int |
getMasterRuntimeIndex(int timeIdx) |
java.lang.String |
getName() |
ucar.nc2.time.CalendarPeriod |
getPeriod() |
ucar.nc2.time.CalendarDate |
getRefDate() |
int[] |
getTime2runtime() |
ucar.nc2.time.CalendarPeriod |
getTimeUnit() |
double |
getTimeUnitScale() |
java.lang.String |
getUnit() |
CoordinateTimeAbstract |
makeBestFromComplete()
Implements coverting a "complete best" to a "monotonic best".
|
protected abstract CoordinateTimeAbstract |
makeBestFromComplete(int[] best,
int n) |
abstract ucar.nc2.time.CalendarDateRange |
makeCalendarDateRange(ucar.nc2.time.Calendar cal) |
void |
setName(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestMemorySize, getIndex, getSize, getType, getValue, getValues, showCoords, showInfopublic static final java.lang.String MIXED_INTERVALS
public static CalendarDateFactory cdf
protected final int code
protected final ucar.nc2.time.CalendarPeriod timeUnit
protected final java.lang.String periodName
protected final ucar.nc2.time.CalendarDate refDate
protected final int[] time2runtime
protected java.lang.String name
public int getCode()
getCode in interface Coordinatepublic ucar.nc2.time.CalendarPeriod getPeriod()
public java.lang.String getUnit()
getUnit in interface Coordinatepublic java.lang.String getName()
getName in interface Coordinatepublic void setName(java.lang.String name)
public ucar.nc2.time.CalendarDate getRefDate()
public double getTimeUnitScale()
public ucar.nc2.time.CalendarPeriod getTimeUnit()
public int[] getTime2runtime()
public int getMasterRuntimeIndex(int timeIdx)
public CoordinateTimeAbstract makeBestFromComplete()
protected abstract CoordinateTimeAbstract makeBestFromComplete(int[] best, int n)
public abstract ucar.nc2.time.CalendarDateRange makeCalendarDateRange(ucar.nc2.time.Calendar cal)