edu.iris.Fissures.model
Class UnitRangeImpl
java.lang.Object
edu.iris.Fissures.UnitRange
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
Fields inherited from class edu.iris.Fissures.UnitRange |
max_value, min_value, the_units |
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 |
UnitRangeImpl
protected UnitRangeImpl()
UnitRangeImpl
public UnitRangeImpl(double min,
double max,
edu.iris.Fissures.Unit the_units)
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