jscicalc.pobject.Variable Class Reference

This class represents anything that might be a variable. More...

Inheritance diagram for jscicalc.pobject.Variable:

jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.Variable:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Variable (char c)
 Each variable is represented by a character.
char get ()
 Useful to create a representation.
String name ()
 Useful to create a representation.
String[] name_array ()
 Useful to create a representation.

Private Attributes

final char c
 Each numeral is represented by a character.


Detailed Description

This class represents anything that might be a variable.

Typically a variable is represented by a single letter. This is more unusual amongst PObject classes because its constructor takes and argument. The argument is used as the symbol and shortcut for the numeral.

Author:
J. D. Lamb
Version:
Revision
1.2

Constructor & Destructor Documentation

jscicalc.pobject.Variable.Variable ( char  c  ) 

Each variable is represented by a character.

Parameters:
c The character reprenting this Variable

References jscicalc.pobject.PObject.fshortcut, and jscicalc.pobject.PObject.ftooltip.


Member Function Documentation

char jscicalc.pobject.Variable.get (  ) 

Useful to create a representation.

Returns:
The character reprenting this Variable

References jscicalc.pobject.Variable.c.

String jscicalc.pobject.Variable.name (  ) 

Useful to create a representation.

Returns:
A String reprenting this Variable

Reimplemented from jscicalc.pobject.PObject.

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

Useful to create a representation.

Returns:
An array of String objects reprenting this Variable

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Variable.c.


Member Data Documentation

final char jscicalc.pobject.Variable.c [private]

Each numeral is represented by a character.

Referenced by jscicalc.pobject.Variable.get(), and jscicalc.pobject.Variable.name_array().


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

Generated on Sun Jun 1 08:59:03 2008 for Java Scientific Calculator by  doxygen 1.5.5