edu.iris.Fissures
Class Unit

java.lang.Object
  extended by edu.iris.Fissures.Unit
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 abstract class Unit
extends java.lang.Object
implements org.omg.CORBA.portable.StreamableValue

A unit of measurement, derived from SI base units by multiplication of other units, prefixing of powers of ten, raising to exponents and multiplication by constants. The only shortcoming is the inability to define offsets for Celsius and Fahrenheit.

See Also:
Serialized Form

Field Summary
 Unit[] elements
          The subunits if COMPOSITE, zero length array if not.
 int exponent
          An exponent for the entire unit, ie Hertz would be SECOND with an exponent of -1.
 double multi_factor
          A constant multiplier.
 java.lang.String name
          A name for the unit, may be empty if the name should be automatically generated.
 int power
          The power of ten to prefix.
 UnitBase the_unit_base
          The base, if a base unit, or COMPOSITE in not.
 
Constructor Summary
Unit()
           
 
Method Summary
 void _read(org.omg.CORBA.portable.InputStream in)
           
 java.lang.String[] _truncatable_ids()
           
 org.omg.CORBA.TypeCode _type()
           
 void _write(org.omg.CORBA.portable.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

the_unit_base

public UnitBase the_unit_base
The base, if a base unit, or COMPOSITE in not.


elements

public Unit[] elements
The subunits if COMPOSITE, zero length array if not.


power

public int power
The power of ten to prefix.


name

public java.lang.String name
A name for the unit, may be empty if the name should be automatically generated.


multi_factor

public double multi_factor
A constant multiplier.


exponent

public int exponent
An exponent for the entire unit, ie Hertz would be SECOND with an exponent of -1.

Constructor Detail

Unit

public Unit()
Method Detail

_truncatable_ids

public java.lang.String[] _truncatable_ids()
Specified by:
_truncatable_ids in interface org.omg.CORBA.portable.ValueBase

_read

public void _read(org.omg.CORBA.portable.InputStream in)
Specified by:
_read in interface org.omg.CORBA.portable.Streamable

_write

public void _write(org.omg.CORBA.portable.OutputStream out)
Specified by:
_write in interface org.omg.CORBA.portable.Streamable

_type

public org.omg.CORBA.TypeCode _type()
Specified by:
_type in interface org.omg.CORBA.portable.Streamable