FConst Class Reference

Ephemeral Constant. More...

#include <FConst.hpp>

Inheritance diagram for FConst:

Function Grammar List of all members.

Public Member Functions

 FConst (double dConst=HUGE_VAL)
Resultexecute (Context &context)
Grammarclone ()

Detailed Description

Ephemeral Constant.

Author:
Stephen E. Baker
Date:
2006-2007
Version:
1.0
Acts as a constant or literal in the program. This constant may be specified in GrammarRules or left to be randomly generated when the object is instantiated.


Constructor & Destructor Documentation

FConst::FConst ( double  dConst = HUGE_VAL  ) 

Creates a new function constant with the specified value. If none is given a random value between 0 and 100 is used.

Parameters:
[in] dConst The constant value this function should have.


Member Function Documentation

Grammar * FConst::clone (  )  [virtual]

See also:
Grammar::clone

Implements Grammar.

Result * FConst::execute ( Context context  )  [virtual]

Returns the value of this constant.

Parameters:
[in] context Unused by this function but left for consistancy.
See also:
Result

Grammar::execute

Implements Grammar.


The documentation for this class was generated from the following files:
Generated on Mon Jan 15 01:21:04 2007 for Creatively Named Grammar Guided Genetic Programming System by  doxygen 1.4.7