net.agmodel.metsoap
Class TimeInterval

java.lang.Object
  |
  +--net.agmodel.metsoap.TimeInterval

public class TimeInterval
extends Object

Represents time intervals.
Null values are used to represent "endless" periods Conforms to the JavaBean pattern to ensure easy SOAP serialization
Copyright (c)2002 National Agricultural Research Center


Constructor Summary
TimeInterval()
           
 
Method Summary
 Date getEnding()
          Retrieve the ending date/time of the time interval.
 Date getStarting()
          Retrieve the starting date/time of the time interval.
 void setEnding(Date anEnd)
          Set the ending date/time of the time interval.
 void setStarting(Date aStart)
          Set the starting date/time of the time interval.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeInterval

public TimeInterval()
Method Detail

setStarting

public void setStarting(Date aStart)
Set the starting date/time of the time interval.
Parameters:
aStart - the start time

getStarting

public Date getStarting()
Retrieve the starting date/time of the time interval.
A null value indicates that the period of time has no beginning. This could occur if, for example, MetBroker couldn't access complete metadata about a station and can't know when it began operating.
Returns:
the start time

setEnding

public void setEnding(Date anEnd)
Set the ending date/time of the time interval.
To indicate an endless period, use null.
Parameters:
anEnd - the end time

getEnding

public Date getEnding()
Retrieve the ending date/time of the time interval.
A null value indicates that the period of time has no end. For example, a currently operating weather station would have a defined starting data but no ending date defined for its period of operation.
Parameters:
anEnd - the end time