Class infixModel.PointState
- class PointState
- extends infixModel.ACalcState
State where a decimal point has been entered.
Decorating AccumState! Delegates to an accumulating state object for
operations that are identical.

AccState
- Reference to accumulating state for delegation purposes
Singleton
- Singleton instance

PointState
()
- Hidden constructor

enterDigit
(InfixCalc, char)
- Keeps on accumulating c
enterEqual
(InfixCalc)
- Computes the pending operation
enterOp
(InfixCalc, IBinOp)
- Performs the pending operation, and set op as the next pending operation
enterPoint
(InfixCalc)
- Does nothing because a decimal point has already been entered

AccState
static final AccumState AccState = AccumState.Singleton
- Reference to accumulating state for delegation purposes.
Singleton
static final PointState Singleton = new PointState()
- Singleton instance

PointState
private PointState()
- Hidden constructor

enterDigit
public void enterDigit(InfixCalc calc, char c)
- Keeps on accumulating c. Same as accumlating state.
- 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.
Same as accumulating state.
- Parameters:
- calc - The calculator model (context)
- op -
enterEqual
public void enterEqual(InfixCalc calc)
- Computes the pending operation.
Same as accumulating state.
- Parameters:
- calc - The calculator model (context)
enterPoint
public void enterPoint(InfixCalc calc)
- Does nothing because a decimal point has already been entered.
- Parameters:
- calc - The calculator model (context)