calc
Class SubtractCalc

java.lang.Object
  |
  +--calc.BaseCalc
        |
        +--calc.SubtractCalc

public class SubtractCalc
extends BaseCalc

Represents the Object for Multiplication in the Calc-Scheme


Fields inherited from class calc.BaseCalc
calculated, children, result
 
Constructor Summary
SubtractCalc()
           
 
Method Summary
protected  void doCalculate()
          simply calls Complex.add in conjunction with Complex.negate() with children as arguments
 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

SubtractCalc

public SubtractCalc()
Method Detail

getArgsNr

public int getArgsNr()
Description copied from class: BaseCalc
overridden by inheriting class, needed for consistency-checks
Overrides:
getArgsNr in class BaseCalc

getArithmeticSymbol

public java.lang.String getArithmeticSymbol()
Description copied from class: BaseCalc
must be implemented for debugging purposes: returns "+" for AddCalc, etc.
Overrides:
getArithmeticSymbol in class BaseCalc

doCalculate

protected void doCalculate()
simply calls Complex.add in conjunction with Complex.negate() with children as arguments
Overrides:
doCalculate in class BaseCalc