gov.noaa.pmel.util
Class SoTRange.GeoDate

java.lang.Object
  |
  +--gov.noaa.pmel.util.SoTRange
        |
        +--gov.noaa.pmel.util.SoTRange.GeoDate
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
SoTRange

public static class SoTRange.GeoDate
extends SoTRange

Inner class for SoTRange for type GeoDate.

Since:
sgt 2.0
See Also:
Serialized Form

Inner classes inherited from class gov.noaa.pmel.util.SoTRange
SoTRange.Double, SoTRange.Float, SoTRange.GeoDate, SoTRange.Integer, SoTRange.Short
 
Field Summary
 GeoDate delta
          The range's time increment
 GeoDate end
          The range's last time
 GeoDate start
          The range's first time
 
Constructor Summary
SoTRange.GeoDate()
          the Default constructor
SoTRange.GeoDate(GeoDate tstart, GeoDate tend)
          Constructor
SoTRange.GeoDate(GeoDate tstart, GeoDate tend, GeoDate tdelta)
          Constructor
SoTRange.GeoDate(TimeRange trange)
           
 
Method Summary
 void add(SoTRange tr)
          Adds the TimeRange object to this TimeRange.
 SoTRange copy()
          Make a copy of the SoTRange.
 boolean equals(SoTRange tr)
          Test for equality.
 void flipStartAndEnd()
          Exchange start and end values
 SoTValue getDelta()
          Get delta value
 java.lang.Object getDeltaObject()
           
 SoTValue getEnd()
          Get end value
 java.lang.Object getEndObject()
           
 SoTValue getStart()
          Get start value
 java.lang.Object getStartObject()
           
 boolean isStartOrEndMissing()
          Test if start or end is missing
 boolean isTime()
          Test if SoTRange is temporal.
 void setDelta(SoTValue value)
           
 void setEnd(SoTValue value)
           
 void setStart(SoTValue value)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public GeoDate start
The range's first time

end

public GeoDate end
The range's last time

delta

public GeoDate delta
The range's time increment
Constructor Detail

SoTRange.GeoDate

public SoTRange.GeoDate()
the Default constructor

SoTRange.GeoDate

public SoTRange.GeoDate(GeoDate tstart,
                        GeoDate tend)
Constructor
Parameters:
tstart - first time
tend - last time

SoTRange.GeoDate

public SoTRange.GeoDate(GeoDate tstart,
                        GeoDate tend,
                        GeoDate tdelta)
Constructor
Parameters:
tstart - first time
tend - last time
delta - time increment

SoTRange.GeoDate

public SoTRange.GeoDate(TimeRange trange)
Method Detail

getStart

public SoTValue getStart()
Get start value
Overrides:
getStart in class SoTRange

setStart

public void setStart(SoTValue value)
Overrides:
setStart in class SoTRange

getEnd

public SoTValue getEnd()
Get end value
Overrides:
getEnd in class SoTRange

setEnd

public void setEnd(SoTValue value)
Overrides:
setEnd in class SoTRange

getDelta

public SoTValue getDelta()
Get delta value
Overrides:
getDelta in class SoTRange

setDelta

public void setDelta(SoTValue value)
Overrides:
setDelta in class SoTRange

getStartObject

public java.lang.Object getStartObject()
Overrides:
getStartObject in class SoTRange

getEndObject

public java.lang.Object getEndObject()
Overrides:
getEndObject in class SoTRange

getDeltaObject

public java.lang.Object getDeltaObject()
Overrides:
getDeltaObject in class SoTRange

add

public void add(SoTRange tr)
Adds the TimeRange object to this TimeRange. The resulting TimeRange is the smallest TimeRange that contains both the origial TimeRange and the specified TimeRange.
Overrides:
add in class SoTRange

equals

public boolean equals(SoTRange tr)
Test for equality. For equality start, end, and delta must all be equal.
Overrides:
equals in class SoTRange

isTime

public boolean isTime()
Test if SoTRange is temporal.
Overrides:
isTime in class SoTRange

flipStartAndEnd

public void flipStartAndEnd()
Exchange start and end values
Overrides:
flipStartAndEnd in class SoTRange

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
Overrides:
toString in class SoTRange
Following copied from class: java.lang.Object
Returns:
a string representation of the object.

copy

public SoTRange copy()
Make a copy of the SoTRange.
Overrides:
copy in class SoTRange

isStartOrEndMissing

public boolean isStartOrEndMissing()
Test if start or end is missing
Overrides:
isStartOrEndMissing in class SoTRange


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001