Generated on Tue Dec 16 13:34:59 2008 for ell-3.0.0 by doxygen 1.5.1

ell::SA_Max_E Class Reference

#include <StateAcceptor.hh>

Inheritance diagram for ell::SA_Max_E:

Inheritance graph
[legend]

Detailed Description

This subclass of StateAcceptor accepts a given State as successor if it has smaller or equal energy than the given maximal value.

Author:
Daniel Maticzka

Definition at line 210 of file StateAcceptor.hh.

Public Member Functions

virtual bool accept (const StateCollector *const sc, const State &succ) const
 SA_Max_E (const double MAX_ENERGY)
virtual ~SA_Max_E ()

Protected Attributes

const double MAX_ENERGY


Constructor & Destructor Documentation

ell::SA_Max_E::SA_Max_E ( const double  MAX_ENERGY  ) 

construction

Parameters:
MAX_ENERGY the maximal energy allowed for accepted states

Definition at line 51 of file StateAcceptor.cc.

virtual ell::SA_Max_E::~SA_Max_E (  )  [inline, virtual]

Definition at line 218 of file StateAcceptor.hh.


Member Function Documentation

bool ell::SA_Max_E::accept ( const StateCollector *const   sc,
const State succ 
) const [virtual]

Tests if energy of State succ is less or equal to MAX_ENERGY.

Parameters:
sc the StateCollector to test against
succ the successor State to test
Returns:
true if valid successor

Implements ell::StateAcceptor.

Definition at line 53 of file StateAcceptor.cc.


Field Documentation

const double ell::SA_Max_E::MAX_ENERGY [protected]

the maximal energy allowed for accepted states.

Definition at line 233 of file StateAcceptor.hh.


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