EDU.ksu.cis.calculator
Interface Calculator

All Known Implementing Classes:
CalculatorImpl, CalculatorImpl

public interface Calculator

An interface abstracting a calculator.

Author:
Rod Howell (howell@cis.ksu.edu)

Method Summary
 void changeSettings(Object change, String input)
          This method may be implemented to change any settings of the calculator.
 void doOperation(Operation op, String input)
          Performs operation op, using input as a possible source of operand(s).
 

Method Detail

doOperation

public void doOperation(Operation op,
                        String input)
                 throws Exception
Performs operation op, using input as a possible source of operand(s).

Throws:
Exception - May throw any Exception.

changeSettings

public void changeSettings(Object change,
                           String input)
                    throws Exception
This method may be implemented to change any settings of the calculator.

Parameters:
change - Encodes the change to the settings.
input - May contain input affected by the change.
Throws:
Exception - May throw any Exception.