@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 CalendarDate |
refDate |
protected int[] |
time2runtime |
protected CalendarPeriod |
timeUnit |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
int |
getMasterRuntimeIndex(int timeIdx) |
java.lang.String |
getName() |
int |
getNCoords() |
double |
getOffsetInTimeUnits(CalendarDate start) |
CalendarDate |
getRefDate() |
int[] |
getTime2runtime() |
java.lang.String |
getTimeUdUnit() |
CalendarPeriod |
getTimeUnit() |
java.lang.String |
getUnit() |
CoordinateTimeAbstract |
makeBestFromComplete()
Implements coverting a "complete best" to a "monotonic best".
|
protected abstract CoordinateTimeAbstract |
makeBestFromComplete(int[] best,
int n) |
abstract CalendarDateRange |
makeCalendarDateRange(Calendar cal) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
calcDistributions, estMemorySize, getIndex, getSize, getType, getValue, getValues, showCoords, showInfo
public static final java.lang.String MIXED_INTERVALS
public static CalendarDateFactory cdf
protected final int code
protected final CalendarPeriod timeUnit
protected final CalendarDate refDate
protected final int[] time2runtime
protected java.lang.String name
public int getCode()
getCode
in interface Coordinate
public java.lang.String getUnit()
getUnit
in interface Coordinate
public java.lang.String getTimeUdUnit()
public java.lang.String getName()
getName
in interface Coordinate
public void setName(java.lang.String name)
public CalendarDate getRefDate()
public CalendarPeriod getTimeUnit()
public int[] getTime2runtime()
public int getMasterRuntimeIndex(int timeIdx)
public int getNCoords()
getNCoords
in interface Coordinate
public double getOffsetInTimeUnits(CalendarDate start)
public java.lang.String toString()
toString
in class java.lang.Object
public CoordinateTimeAbstract makeBestFromComplete()
protected abstract CoordinateTimeAbstract makeBestFromComplete(int[] best, int n)
public abstract CalendarDateRange makeCalendarDateRange(Calendar cal)