gov.noaa.pmel.util
Class SoTRange.Short

java.lang.Object
  extended by gov.noaa.pmel.util.SoTRange
      extended by gov.noaa.pmel.util.SoTRange.Short
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Enclosing class:
SoTRange

public static class SoTRange.Short
extends SoTRange

Inner class for SoTRange for type short.

Since:
sgt 2.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.noaa.pmel.util.SoTRange
SoTRange.Double, SoTRange.Float, SoTRange.GeoDate, SoTRange.Integer, SoTRange.Short, SoTRange.Time
 
Field Summary
 short delta
          The value of the increment
 short end
          The range's last value
 short start
          The range's first value
 
Constructor Summary
SoTRange.Short()
          Default constructor.
SoTRange.Short(short ustart, short uend)
          Construct SoTRange with start and end.
SoTRange.Short(short ustart, short uend, short udel)
          SoTRange constructor.
 
Method Summary
 void add(SoTRange range)
          Adds the SoTRange object to this SoTRange.
 SoTRange copy()
          Make a copy of the SoTRange.
 boolean equals(SoTRange r)
          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 values are missing
 boolean isTime()
          Test if SoTRange is temportal
 void setDelta(SoTValue value)
           
 void setEnd(SoTValue value)
           
 void setStart(SoTValue value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public short start
The range's first value


end

public short end
The range's last value


delta

public short delta
The value of the increment

Constructor Detail

SoTRange.Short

public SoTRange.Short()
Default constructor.


SoTRange.Short

public SoTRange.Short(short ustart,
                      short uend)
Construct SoTRange with start and end. Default for delta is MAX_VALUE

Parameters:
ustart - first value
uend - last value

SoTRange.Short

public SoTRange.Short(short ustart,
                      short uend,
                      short udel)
SoTRange constructor.

Parameters:
ustart - first value
uend - last value
udel - increment value
Method Detail

getStart

public SoTValue getStart()
Get start value

Specified by:
getStart in class SoTRange

setStart

public void setStart(SoTValue value)
Specified by:
setStart in class SoTRange

getEnd

public SoTValue getEnd()
Get end value

Specified by:
getEnd in class SoTRange

setEnd

public void setEnd(SoTValue value)
Specified by:
setEnd in class SoTRange

getDelta

public SoTValue getDelta()
Get delta value

Specified by:
getDelta in class SoTRange

setDelta

public void setDelta(SoTValue value)
Specified by:
setDelta in class SoTRange

getStartObject

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

getEndObject

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

getDeltaObject

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

add

public void add(SoTRange range)
Adds the SoTRange object to this SoTRange. The resulting SoTRange is the smallest SoTRange that contains both the origial SoTRange and the specified SoTRange.

Specified by:
add in class SoTRange

equals

public boolean equals(SoTRange r)
Test for equality. For equality start, end, and delta must all be equal.

Specified by:
equals in class SoTRange

isTime

public boolean isTime()
Test if SoTRange is temportal

Specified by:
isTime in class SoTRange

flipStartAndEnd

public void flipStartAndEnd()
Exchange start and end values

Specified by:
flipStartAndEnd in class SoTRange

toString

public java.lang.String toString()
Specified by:
toString in class SoTRange

copy

public SoTRange copy()
Make a copy of the SoTRange.

Specified by:
copy in class SoTRange

isStartOrEndMissing

public boolean isStartOrEndMissing()
Test if start or end values are missing

Specified by:
isStartOrEndMissing in class SoTRange