Class infixModel.AccumState
- class AccumState
- extends infixModel.ACalcState
State where the calculator has accumulated digits of a number into the display.

Singleton
- Singleton instance

AccumState
()
- Hidden constructor

enterDigit
(InfixCalc, char)
- Appends c to the string of digit collected so far
enterEqual
(InfixCalc)
- Computes the pending operation
enterOp
(InfixCalc, IBinOp)
- Performs the pending operation, and set op as the next pending operation
enterPoint
(InfixCalc)
- Enter a decimal point

Singleton
static final AccumState Singleton = new AccumState()
- Singleton instance

AccumState
private AccumState()
- Hidden constructor

enterDigit
public void enterDigit(InfixCalc calc, char c)
- Appends c to the string of digit collected so far.
- Parameters:
- calc - The calculator model (context)
- c - The digit being entered
enterOp
public void enterOp(InfixCalc calc, IBinOp op)
- Performs the pending operation, and set op as the next pending operation
on whatever is computed so far to the operand that will be entered next.
Go to error if the number in the display does not parse properly into a floating point number.
- Parameters:
- calc - The calculator model (context)
- op - The new pending operation
enterEqual
public void enterEqual(InfixCalc calc)
- Computes the pending operation.
- Parameters:
- calc - The calculator model (context)
enterPoint
public void enterPoint(InfixCalc calc)
- Enter a decimal point. Go to point state.
- Parameters:
- calc - The calculator model (context)