Public Member Functions | Protected Attributes

jscicalc.pobject.Container Class Reference

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

Collaboration diagram for jscicalc.pobject.Container:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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.

Author:
J. D. Lamb
Version:
Revision:
1.5

Constructor & Destructor Documentation

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().


Member Function Documentation

double jscicalc.pobject.Container.dvalue (  ) 

We need to can extract the double.

Returns:
stored value

References jscicalc.pobject.Container.d.

If we can’t store a sensible double, we set flag to say so and can read it here.

Returns:
true if the value stored is not sensible.

References jscicalc.pobject.Container.error.

Referenced by jscicalc.pobject.Container.Container().

OObject jscicalc.pobject.Container.value (  ) 

We need to can extract the value.

Returns:
stored value

References jscicalc.pobject.Container.c.

Referenced by jscicalc.CalculatorApplet.statSumSquares().


Member Data Documentation

double jscicalc.pobject.Container.d [protected]
boolean jscicalc.pobject.Container.error [protected]

The documentation for this class was generated from the following file: