|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--calc.BaseCalc
|
+--calc.NumeralCalc
Represents a Numeral in the Calc-Scheme. Numerals are the leaves in the operation tree, therefore they simply return the argument handed over to them in the Constructor
| Fields inherited from class calc.BaseCalc |
calculated, children, result |
| Constructor Summary | |
NumeralCalc(Complex arg)
|
|
| Method Summary | |
protected void |
doCalculate()
does nothing, since the result is already set in Constructor |
int |
getArgsNr()
overridden by inheriting class, needed for consistency-checks |
java.lang.String |
getArithmeticSymbol()
must be implemented for debugging purposes: returns "+" for AddCalc, etc. |
| Methods inherited from class calc.BaseCalc |
calculate, clear, getChildren, insertChildren, main, result, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NumeralCalc(Complex arg)
| Method Detail |
public int getArgsNr()
BaseCalcgetArgsNr in class BaseCalcpublic java.lang.String getArithmeticSymbol()
BaseCalcgetArithmeticSymbol in class BaseCalcprotected void doCalculate()
doCalculate in class BaseCalc
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||