jscicalc.pobject.Container Class Reference

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

Inheritance diagram for jscicalc.pobject.Container:

jscicalc.pobject.PObject jscicalc.GObject jscicalc.pobject.Ans jscicalc.pobject.Mean jscicalc.pobject.Pi jscicalc.pobject.PopStDev jscicalc.pobject.RCL jscicalc.pobject.StDev
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.

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

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.

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


Member Data Documentation

double jscicalc.pobject.Container.d [protected]

boolean jscicalc.pobject.Container.error [protected]

error flag.

Referenced by jscicalc.CalculatorApplet.statSumSquares().


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

Generated on Sun Jun 1 08:58:23 2008 for Java Scientific Calculator by  doxygen 1.5.5