gov.noaa.pmel.util
Class SoTRange

java.lang.Object
  |
  +--gov.noaa.pmel.util.SoTRange
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
SoTRange.Double, SoTRange.Float, SoTRange.GeoDate, SoTRange.Integer, SoTRange.Short

public abstract class SoTRange
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

SoTRange is an abstract class used to wrap either a double or GeoDate. SoT stands for space or time, but being basically lazy I've abbreviated it. Contains minimum, maximum, and delta SoTRange. The SoTRange object represents the range of all missing data as Double.NaN as the start and end values for data of type Double and return GeoDate(Long.MIN_VALUE) for data of type GeoDate.

Since:
sgt 2.0
Author:
Donald Denbo
See Also:
SGTData, Serialized Form

Inner Class Summary
static class SoTRange.Double
          Inner class for SoTRange for type double.
static class SoTRange.Float
          Inner class for SoTRange for type flaot.
static class SoTRange.GeoDate
          Inner class for SoTRange for type GeoDate.
static class SoTRange.Integer
          Inner class for SoTRange for type integer.
static class SoTRange.Short
          Inner class for SoTRange for type short.
 
Method Summary
abstract  void add(SoTRange range)
           
abstract  SoTRange copy()
           
abstract  boolean equals(SoTRange range)
           
abstract  void flipStartAndEnd()
           
abstract  SoTValue getDelta()
           
abstract  java.lang.Object getDeltaObject()
           
abstract  SoTValue getEnd()
           
abstract  java.lang.Object getEndObject()
           
abstract  SoTValue getStart()
           
abstract  java.lang.Object getStartObject()
           
abstract  boolean isStartOrEndMissing()
           
abstract  boolean isTime()
           
abstract  void setDelta(SoTValue value)
           
abstract  void setEnd(SoTValue value)
           
abstract  void setStart(SoTValue value)
           
abstract  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
 

Method Detail

isTime

public abstract boolean isTime()

toString

public abstract 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 java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.

equals

public abstract boolean equals(SoTRange range)

add

public abstract void add(SoTRange range)

getStart

public abstract SoTValue getStart()

getEnd

public abstract SoTValue getEnd()

getDelta

public abstract SoTValue getDelta()

getStartObject

public abstract java.lang.Object getStartObject()

getEndObject

public abstract java.lang.Object getEndObject()

getDeltaObject

public abstract java.lang.Object getDeltaObject()

setStart

public abstract void setStart(SoTValue value)

setEnd

public abstract void setEnd(SoTValue value)

setDelta

public abstract void setDelta(SoTValue value)

flipStartAndEnd

public abstract void flipStartAndEnd()

isStartOrEndMissing

public abstract boolean isStartOrEndMissing()

copy

public abstract SoTRange copy()


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