gridripper::math::expr::StkConst Class Reference

Constant function. More...

Inheritance diagram for gridripper::math::expr::StkConst:

gridripper::math::expr::StkFunc gridripper::math::expr::StkOp

List of all members.

Public Member Functions

 StkConst (String name, double v)
 Constructs a stack constant.
 StkConst (StkConst other)
 Copy constructor.
double getValue ()
 Gets the value of the constant.
boolean equals (StkConst other)
 Tests equality.
boolean equals (double otherValue)
 Tests equality.
void evalStack (StkPointer p)
 Evaluates the stack.
String getClassName ()
 Gets the class name.
void writeExternal (ObjectOutput out) throws java.io.IOException
 Saves object state.
void readExternal (ObjectInput in) throws java.io.IOException
 Restores object state.


Detailed Description

Constant function.

Version:
GridRipper 0.5, 11/16/2008
Since:
GROMIT 0.2 (2001)
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::math::expr::StkConst::StkConst ( String  name,
double  v 
) [inline]

Constructs a stack constant.

Parameters:
name the constant name
value the value

gridripper::math::expr::StkConst::StkConst ( StkConst  other  )  [inline]

Copy constructor.

Parameters:
other the object to copy


Member Function Documentation

double gridripper::math::expr::StkConst::getValue (  )  [inline]

Gets the value of the constant.

Returns:
the value

boolean gridripper::math::expr::StkConst::equals ( StkConst  other  )  [inline]

Tests equality.

Returns:
true if the constants are equal, false otherwise

boolean gridripper::math::expr::StkConst::equals ( double  otherValue  )  [inline]

Tests equality.

Returns:
true if the values are equal, false otherwise

void gridripper::math::expr::StkConst::evalStack ( StkPointer  p  )  [inline, virtual]

Evaluates the stack.

Parameters:
p the stack pointer

Implements gridripper::math::expr::StkFunc.

String gridripper::math::expr::StkConst::getClassName (  )  [inline, virtual]

Gets the class name.

Returns:
the class name

Reimplemented from gridripper::math::expr::StkFunc.

void gridripper::math::expr::StkConst::writeExternal ( ObjectOutput  out  )  throws java.io.IOException [inline]

Saves object state.

Parameters:
out the stream to write the object to
Exceptions:
IOException Includes any I/O exceptions that may occur

Reimplemented from gridripper::math::expr::StkFunc.

void gridripper::math::expr::StkConst::readExternal ( ObjectInput  in  )  throws java.io.IOException [inline]

Restores object state.

Parameters:
in the stream to read data from in order to restore the object
Exceptions:
IOException if I/O errors occur

Reimplemented from gridripper::math::expr::StkFunc.


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

Generated on Wed Jun 17 18:47:29 2009 for GridRipper by  doxygen 1.5.6