|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.statcato.calculator.CompUnit
public class CompUnit
A computational unit. Contains the type of the computational object and the value (a double value or a vector of doubles).
Token| Constructor Summary | |
|---|---|
CompUnit(int type,
java.lang.Object value)
Constructor, given the type of the unit and the value. |
|
| Method Summary | |
|---|---|
java.util.Vector<java.lang.Double> |
getColumn()
Returns the column represented by this unit |
double |
getNumber()
Returns the number value represented by this unit. |
int |
getType()
Returns the type of this unit |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompUnit(int type,
java.lang.Object value)
type - type of unit (Token.COLUMN or Token.NUMBER)value - Double for a number or Vector<Double> for a columnToken| Method Detail |
|---|
public double getNumber()
public java.util.Vector<java.lang.Double> getColumn()
public int getType()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||