edu.iris.Fissures.model
Class UnitRangeImpl

java.lang.Object
  extended by edu.iris.Fissures.UnitRange
      extended by edu.iris.Fissures.model.UnitRangeImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.Streamable, org.omg.CORBA.portable.StreamableValue, org.omg.CORBA.portable.ValueBase

public class UnitRangeImpl
extends edu.iris.Fissures.UnitRange

UnitRangeImpl.java Created: Mon Sep 6 16:04:23 1999

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.iris.Fissures.UnitRange
max_value, min_value, the_units
 
Constructor Summary
protected UnitRangeImpl()
           
  UnitRangeImpl(double min, double max, edu.iris.Fissures.Unit the_units)
           
 
Method Summary
 UnitRangeImpl convertTo(UnitImpl newUnit)
          converts this UnitRange into the given units.
static java.io.Serializable createEmpty()
           
 boolean equals(java.lang.Object o)
           
 double getMaxValue()
           
 double getMinValue()
           
 UnitImpl getUnit()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.iris.Fissures.UnitRange
_read, _truncatable_ids, _type, _write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnitRangeImpl

protected UnitRangeImpl()

UnitRangeImpl

public UnitRangeImpl(double min,
                     double max,
                     edu.iris.Fissures.Unit the_units)
Method Detail

createEmpty

public static java.io.Serializable createEmpty()

getMinValue

public double getMinValue()

getMaxValue

public double getMaxValue()

getUnit

public UnitImpl getUnit()

convertTo

public UnitRangeImpl convertTo(UnitImpl newUnit)
converts this UnitRange into the given units.

Throws:
java.lang.IllegalArgumentException - if the given units are not compatible.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object