ucar.nc2.dt.fmrc
Class ForecastModelRunInventory.TimeCoord

java.lang.Object
  extended by ucar.nc2.dt.fmrc.ForecastModelRunInventory.TimeCoord
All Implemented Interfaces:
Comparable, FmrcCoordSys.TimeCoord
Enclosing class:
ForecastModelRunInventory

public static class ForecastModelRunInventory.TimeCoord
extends Object
implements FmrcCoordSys.TimeCoord, Comparable

Represents a list of valid times. Tracks a list of variables that all have the same list of valid times.


Method Summary
 int compareTo(Object o)
           
 boolean equalsData(ForecastModelRunInventory.TimeCoord tother)
          Instances that have the same offsetHours are equal
 List<ForecastModelRunInventory.Grid> getGrids()
          The list of Grid that use this TimeCoord
 String getId()
          A unique id for this TimeCoord
 String getName()
           
 double[] getOffsetHours()
          The list of valid times, in units of hours since the run time
 void setId(String id)
          Set the unique id for this TimeCoord
 void setOffsetHours(double[] offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGrids

public List<ForecastModelRunInventory.Grid> getGrids()
The list of Grid that use this TimeCoord

Returns:
list of Grid that use this TimeCoord

getId

public String getId()
A unique id for this TimeCoord

Returns:
unique id for this TimeCoord

setId

public void setId(String id)
Set the unique id for this TimeCoord

Parameters:
id - id for this TimeCoord

getName

public String getName()
Specified by:
getName in interface FmrcCoordSys.TimeCoord

getOffsetHours

public double[] getOffsetHours()
The list of valid times, in units of hours since the run time

Specified by:
getOffsetHours in interface FmrcCoordSys.TimeCoord

setOffsetHours

public void setOffsetHours(double[] offset)

equalsData

public boolean equalsData(ForecastModelRunInventory.TimeCoord tother)
Instances that have the same offsetHours are equal

Parameters:
tother - compare this TomCoord's data
Returns:
true if data is equal

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.