Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Quantity Class Reference

List of all members.

Public Methods

String toString ()

Static Public Methods

Quantity makeQuantity (Object tree)

Detailed Description

Quantity is a class of objects representing Unicalc quantities. Each quality is a numeric factor times a symbolic numerator divided by a symbolic denominator.

The equivalent rex definitions of various functions have been embedded as comments.

Definition at line 16 of file Quantity.java.


Member Function Documentation

Quantity Quantity::makeQuantity ( Object tree ) [inline, static]
 

Construct a Quantity from a syntax tree represented using OpenList.

Parameters:
tree   An Object representing a syntax tree, as returned by the Unicalc parser
Returns:
a Quantity representing the value of the syntax tree

Definition at line 111 of file Quantity.java.

String Quantity::toString ( ) [inline]
 

Convert this Quantity to String (printable form).

Returns:
String to which this Quantity is converted

Definition at line 435 of file Quantity.java.


The documentation for this class was generated from the following file:
Generated at Wed Oct 9 23:52:15 2002 for Unicalc by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001