jscicalc.pobject.And Class Reference

Bitwise AND operation. More...

Inheritance diagram for jscicalc.pobject.And:

jscicalc.pobject.BoolFunction jscicalc.pobject.PObject jscicalc.GObject
Collaboration diagram for jscicalc.pobject.And:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 And ()
 Constructor.
double function (double x, double y)
 Calculates x AND y.
OObject function (OObject x, OObject y)
 Calculates x AND y.
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", "d", " " }


Detailed Description

Bitwise AND operation.

For this operation the sign is not particularly meaningful. numbers are stored as IEEE 754 doubles which use a bit for sign and this operation carries out a logical AND on that bit.

Author:
J. D. Lamb
Version:
Revision
1.5

Constructor & Destructor Documentation

jscicalc.pobject.And.And (  ) 

Constructor.

Sets a tooltip and shortcut.

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

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


Member Function Documentation

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

Calculates x AND y.

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

Implements jscicalc.pobject.BoolFunction.

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

Calculates x AND y.

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

Implements jscicalc.pobject.BoolFunction.

References jscicalc.OObject.and().

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

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

Returns:
an array

Implements jscicalc.pobject.PObject.

References jscicalc.pobject.And.fname.

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


Member Data Documentation

final String [] jscicalc.pobject.And.fname = { " ", "a", "n", "d", " " } [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