|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.ft.fmrc.TimeCoord
public class TimeCoord
Represents a list of offset times shared among variables Tracks a list of variables that all have the same list of offset times.
Nested Class Summary | |
---|---|
static class |
TimeCoord.Tinv
|
Field Summary | |
---|---|
static TimeCoord |
EMPTY
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equalsData(TimeCoord tother)
Instances that have the same offsetHours/bounds and runtime are equal |
int |
findIndex(double offsetHour)
|
int |
findInterval(double b1,
double b2)
|
static TimeCoord |
findTimeCoord(List<TimeCoord> timeCoords,
TimeCoord want)
Look through timeCoords to see if one matches want. |
String |
getAxisName()
|
double[] |
getBound1()
|
double[] |
getBound2()
|
List<GridDatasetInv.Grid> |
getGridInventory()
The list of GridDatasetInv.Grid that use this TimeCoord |
int |
getId()
A unique id for this TimeCoord |
String |
getName()
|
int |
getNCoords()
|
double[] |
getOffsetTimes()
The list of valid times, in units of hours since the run time |
Date |
getRunDate()
|
boolean |
isInterval()
|
static TimeCoord |
makeUnion(List<TimeCoord> timeCoords,
Date baseDate)
Create the union of all the values in the list of TimeCoord, ignoring the TimeCoord's runDate |
void |
setBounds(double[] bound1,
double[] bound2)
|
void |
setBounds(List<TimeCoord.Tinv> tinvs)
|
void |
setId(int id)
Set the unique id for this TimeCoord |
void |
setOffsetTimes(double[] offset)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final TimeCoord EMPTY
Method Detail |
---|
public Date getRunDate()
public boolean isInterval()
public List<GridDatasetInv.Grid> getGridInventory()
public int getId()
public void setId(int id)
id
- id for this TimeCoordpublic String getName()
public String getAxisName()
public int getNCoords()
public double[] getOffsetTimes()
public double[] getBound1()
public double[] getBound2()
public void setOffsetTimes(double[] offset)
public void setBounds(double[] bound1, double[] bound2)
public void setBounds(List<TimeCoord.Tinv> tinvs)
public String toString()
toString
in class Object
public boolean equalsData(TimeCoord tother)
tother
- compare this TimeCoord's data
public int findInterval(double b1, double b2)
public int findIndex(double offsetHour)
public int compareTo(Object o)
compareTo
in interface Comparable
public static TimeCoord findTimeCoord(List<TimeCoord> timeCoords, TimeCoord want)
timeCoords
- look through this listwant
- find equivilent
public static TimeCoord makeUnion(List<TimeCoord> timeCoords, Date baseDate)
timeCoords
- list of TimeCoordbaseDate
- resulting union timeCoord uses this as a base date
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |