@Immutable public class TimeCoord extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeCoord.Tinv |
static class |
TimeCoord.TinvDate |
| Modifier and Type | Field and Description |
|---|---|
protected List<Integer> |
coords |
protected List<TimeCoord.Tinv> |
intervals |
| Constructor and Description |
|---|
TimeCoord(int code,
CalendarDate runDate,
CalendarPeriod timeUnit,
List coords) |
TimeCoord(int code,
String udunitString,
List coords) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsData(TimeCoord tother)
Instances that have the same runtime, timeUnit and coordinates are equal
|
static int |
findCoord(List<TimeCoord> timeCoords,
TimeCoord want)
Look through timeCoords to see if one matches want.
|
int |
findIdx(int offsetHour) |
int |
findInterval(TimeCoord.Tinv tinv) |
CalendarDateRange |
getCalendarRange() |
int |
getCode() |
List<Integer> |
getCoords() |
List<TimeCoord.Tinv> |
getIntervals() |
String |
getName() |
static int |
getOffset(CalendarDate refDate,
CalendarDate cd,
CalendarPeriod timeUnit) |
CalendarDate |
getRunDate() |
int |
getSize() |
String |
getTimeIntervalName() |
CalendarPeriod |
getTimeUnit() |
double |
getTimeUnitScale() |
String |
getType() |
String |
getUnits() |
boolean |
isInterval() |
String |
toString() |
protected List<TimeCoord.Tinv> intervals
public TimeCoord(int code,
CalendarDate runDate,
CalendarPeriod timeUnit,
List coords)
public static int getOffset(CalendarDate refDate, CalendarDate cd, CalendarPeriod timeUnit)
public CalendarDate getRunDate()
public CalendarDateRange getCalendarRange()
public boolean isInterval()
public List<TimeCoord.Tinv> getIntervals()
public String getUnits()
public double getTimeUnitScale()
public CalendarPeriod getTimeUnit()
public int getCode()
public String getName()
public String getType()
public int getSize()
public String getTimeIntervalName()
public boolean equalsData(TimeCoord tother)
tother - compare this TimeCoord's datapublic int findInterval(TimeCoord.Tinv tinv)
public int findIdx(int offsetHour)
public static int findCoord(List<TimeCoord> timeCoords, TimeCoord want)
timeCoords - look through this listwant - find equivilentCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.