ell::SA_Max_E Class Reference
#include <StateAcceptor.hh>
Inheritance diagram for ell::SA_Max_E:
Detailed Description
This subclass of StateAcceptor accepts a given State as successor if it has smaller or equal energy than the given maximal value.
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 documentation for this class was generated from the following files:
- src/ell/StateAcceptor.hh
- src/ell/StateAcceptor.cc