|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iris.Fissures.Unit
public abstract class Unit
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.
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 |
---|
public UnitBase the_unit_base
public Unit[] elements
public int power
public java.lang.String name
public double multi_factor
public int exponent
Constructor Detail |
---|
public Unit()
Method Detail |
---|
public java.lang.String[] _truncatable_ids()
_truncatable_ids
in interface org.omg.CORBA.portable.ValueBase
public void _read(org.omg.CORBA.portable.InputStream in)
_read
in interface org.omg.CORBA.portable.Streamable
public void _write(org.omg.CORBA.portable.OutputStream out)
_write
in interface org.omg.CORBA.portable.Streamable
public org.omg.CORBA.TypeCode _type()
_type
in interface org.omg.CORBA.portable.Streamable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |