anl.aida.data
Interface TimeCoordAxis

All Superinterfaces:
CoordAxis
All Known Implementing Classes:
DataFrameTimeAxis, RegularTimeAxis

public interface TimeCoordAxis
extends CoordAxis

Interface for the time coordinate axis.

Version:
$Revision$ $Date$

Method Summary
 java.util.Date getDate(int timestep)
          Returns the Date for the specified timestep, or null if the timestep is invalid.
 int getTimeStep(java.util.Date date)
          Gets the timestep that corresponds to the specified date.
 
Methods inherited from interface anl.aida.data.CoordAxis
getAttribute, getAxisType, getDescription, getName, getRange, getUnits, getValue, getValueAsString, isCompatible
 

Method Detail

getDate

java.util.Date getDate(int timestep)
Returns the Date for the specified timestep, or null if the timestep is invalid.

Parameters:
timestep - the time step we want the date for.
Returns:
the Date for the specified timestep

getTimeStep

int getTimeStep(java.util.Date date)
Gets the timestep that corresponds to the specified date. If no such timestep is found then return Axes.TIME_STEP_NOT_FOUND.

Parameters:
date - the date whose time step we want
Returns:
the timestep that corresponds to the specified date. If no such timestep is found then return Axes.TIME_STEP_NOT_FOUND.