jscicalc.pobject.Add Class Reference

Addition operation. More...

Inheritance diagram for jscicalc.pobject.Add:

jscicalc.pobject.AFunction jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.Add:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Add ()
 Constructor.
double function (double x, double y)
 This function carries out binary addition.
double function (double x)
 This function does nothing (+x == x).
OObject function (OObject x, OObject y)
 This function carries out binary addition.
OObject function (OObject x)
 This function does nothing (+x == x).
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 = { "+" }


Detailed Description

Addition operation.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.pobject.Add.Add (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

double jscicalc.pobject.Add.function ( double  x,
double  y 
) [virtual]

This function carries out binary addition.

Parameters:
x The first value (left of symbol)
y The second value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

double jscicalc.pobject.Add.function ( double  x  )  [virtual]

This function does nothing (+x == x).

Parameters:
x The value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

OObject jscicalc.pobject.Add.function ( OObject  x,
OObject  y 
) [virtual]

This function carries out binary addition.

Parameters:
x The first value (left of symbol)
y The second value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

References jscicalc.OObject.add().

OObject jscicalc.pobject.Add.function ( OObject  x  )  [virtual]

This function does nothing (+x == x).

Parameters:
x The value (right of symbol)
Returns:
The result of the operation

Implements jscicalc.pobject.AFunction.

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

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.Add.fname.

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


Member Data Documentation

final String [] jscicalc.pobject.Add.fname = { "+" } [static, private]


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

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