This class is used for various PObjects like Ans and Mean that contain a specific double value. More...

Public Member Functions | |
| Container () | |
| Constructor: initialises the contained value to zero. | |
| double | dvalue () |
| We need to can extract the double. | |
| OObject | value () |
| We need to can extract the value. | |
| boolean | error () |
| If we can’t store a sensible double, we set flag to say so and can read it here. | |
Protected Attributes | |
| double | d |
| Storage for the double. | |
| OObject | c |
| Storage for the OObject result. | |
| boolean | error |
| error flag. | |
This class is used for various PObjects like Ans and Mean that contain a specific double value.
For example, when you press the Mean or Ans button on the calculator you get an expression that should be replaced with a double when the expression is evaluated. This class holds the code to handle this.
| jscicalc.pobject.Container.Container | ( | ) |
Constructor: initialises the contained value to zero.
References jscicalc.pobject.Container.c, jscicalc.pobject.Container.d, and jscicalc.pobject.Container.error().
| double jscicalc.pobject.Container.dvalue | ( | ) |
| boolean jscicalc.pobject.Container.error | ( | ) |
If we can’t store a sensible double, we set flag to say so and can read it here.
References jscicalc.pobject.Container.error.
Referenced by jscicalc.pobject.Container.Container().
| OObject jscicalc.pobject.Container.value | ( | ) |
We need to can extract the value.
References jscicalc.pobject.Container.c.
Referenced by jscicalc.CalculatorApplet.statSumSquares().
OObject jscicalc.pobject.Container.c [protected] |
Storage for the OObject result.
Referenced by jscicalc.pobject.Ans.Ans(), jscicalc.pobject.Container.Container(), jscicalc.pobject.Pi.Pi(), and jscicalc.pobject.Container.value().
double jscicalc.pobject.Container.d [protected] |
Storage for the double.
Referenced by jscicalc.pobject.Ans.Ans(), jscicalc.pobject.Container.Container(), jscicalc.pobject.Container.dvalue(), and jscicalc.pobject.Pi.Pi().
boolean jscicalc.pobject.Container.error [protected] |
error flag.
Referenced by jscicalc.pobject.Container.error(), and jscicalc.CalculatorApplet.statSumSquares().
1.7.1