|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rubecula.util.Item
com.rubecula.units.BaseUnit
com.rubecula.units.UnitsFoundation
The public abstract class UnitsFoundation is the base class from which the other Units (Measurable) classes are derived.
| Field Summary | |
protected UnitsName |
_Name
The name by which this UnitsFoundation will be identified. |
private static boolean |
debug
|
(package private) static java.lang.String |
UNITS_TEST
|
| Fields inherited from class com.rubecula.util.Item |
JQUANTITY_TEST |
| Constructor Summary | |
(package private) |
UnitsFoundation()
|
(package private) |
UnitsFoundation(UnitsFoundation that)
|
(package private) |
UnitsFoundation(UnitsName name)
|
| Method Summary | |
java.lang.String |
audit()
Method to return a detailed (unlabeled) string from an Auditable object for debugging purposes. |
void |
audit(java.io.PrintStream out,
java.lang.String label)
Method to output detailed string from an object for debugging purposes. |
java.lang.String |
audit(java.lang.String label)
Method to return a detailed string from an arithmetical object for debugging purposes. |
java.lang.String |
getIdentifier()
Method to get the specific identifier for an object. |
boolean |
isNumber()
Method to determine if this is dimensionless (i.e. unitless). |
(package private) void |
monitor(java.lang.String method,
java.lang.String[] args,
java.lang.String result)
|
(package private) int |
normalize()
|
void |
setIdentifier(java.lang.String identifier)
Method to set a specific identifier to an object. |
void |
setName(java.lang.String name)
|
void |
setName(java.lang.String nameAbbrev,
boolean force)
|
void |
setName(java.lang.String nameAbbrev,
int exponent,
boolean force)
|
void |
setName(UnitsName name)
|
void |
setName(UnitsName name,
boolean force)
|
void |
setName(UnitsName name,
boolean force,
int sysIndex)
|
java.lang.String |
toString()
This is the default toString method for all Items. |
abstract java.lang.String |
toString(int sysIndex)
|
| Methods inherited from class com.rubecula.units.BaseUnit |
isEqual, isInSystem, isParallel, isParallelInSystem |
| Methods inherited from class com.rubecula.util.Item |
compareTo, Debug, getClassNameShort, getType, IsDebug, present, SetDebug, test, test, Wrap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rubecula.units.Measurable |
flatten, getDimensions, getOffset, getScale, getSystem |
| Methods inherited from interface com.rubecula.util.Presentable |
makePresentableInstance, present |
| Field Detail |
static final java.lang.String UNITS_TEST
protected UnitsName _Name
private static boolean debug
| Constructor Detail |
UnitsFoundation()
UnitsFoundation(UnitsName name)
UnitsFoundation(UnitsFoundation that)
| Method Detail |
public void setIdentifier(java.lang.String identifier)
setIdentifier in interface Nameableidentifier - String: the identifier to associate with the objectpublic java.lang.String getIdentifier()
getIdentifier in interface Identifiablepublic java.lang.String audit(java.lang.String label)
audit in interface Auditablelabel - String: the label to associate with the data
public java.lang.String audit()
audit in interface Auditableaudit in class ItemAuditable.audit(String)
public void audit(java.io.PrintStream out,
java.lang.String label)
Auditable
audit in interface Auditableaudit in class Itemout - the output stream.label - the label to attach to the output (may be null).Auditable.audit(String),
Item.getClassNameShort(),
PrintStream.println(String)public boolean isNumber()
isNumber in interface MeasurableisNumber in class BaseUnitfinal int normalize()
public abstract java.lang.String toString(int sysIndex)
public java.lang.String toString()
Item
toString in class ItemItem.present(),
Presentation.toString()
public final void setName(UnitsName name,
boolean force,
int sysIndex)
public final void setName(UnitsName name,
boolean force)
public final void setName(java.lang.String nameAbbrev,
int exponent,
boolean force)
public final void setName(java.lang.String nameAbbrev,
boolean force)
public final void setName(UnitsName name)
public final void setName(java.lang.String name)
void monitor(java.lang.String method,
java.lang.String[] args,
java.lang.String result)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||