jscicalc.pobject.Ans Class Reference

A container for holding a value calculated by the calculator. More...

Inheritance diagram for jscicalc.pobject.Ans:

jscicalc.pobject.Container jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.Ans:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ans ()
 Constructor.
void setValue (double d)
 Set the value of this Container.
void setValue (OObject c)
 Set the value of this Container.
String[] name_array ()
 Array used to construct name() and shortName() String objects.

Static Public Member Functions

static void main (String args[])

Static Private Attributes

static final String[] fname = { "A", "N", "S" }


Detailed Description

A container for holding a value calculated by the calculator.

The value is stored in the PObject and not the calculator. So if you use the history list to go back to an expression with and Ans object in it, the object contains the value it was given at the point of evaluation and not the value of the most recently evaluated expression.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Ans.Ans (  ) 

Constructor.

Sets a tooltip and shortcut.

References jscicalc.pobject.Container.c, and jscicalc.pobject.Container.d.

Referenced by jscicalc.pobject.Ans.main().


Member Function Documentation

void jscicalc.pobject.Ans.setValue ( double  d  ) 

void jscicalc.pobject.Ans.setValue ( OObject  c  ) 

Set the value of this Container.

Parameters:
c The value to store.

String [] jscicalc.pobject.Ans.name_array (  )  [virtual]

Array used to construct name() and shortName() String objects.

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Ans.fname.

static void jscicalc.pobject.Ans.main ( String  args[]  )  [static]


Member Data Documentation

final String [] jscicalc.pobject.Ans.fname = { "A", "N", "S" } [static, private]


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

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