ell::SA_E_LeEq Class Reference
#include <StateAcceptor.hh>
Inheritance diagram for ell::SA_E_LeEq:
Detailed Description
This subclass of StateAcceptor accepts a given State as successor if it has smaller or equal energy than the last accepted State in the StateCollector.
Definition at line 185 of file StateAcceptor.hh.
Public Member Functions | |
virtual bool | accept (const StateCollector *const sc, const State &succ) const |
virtual | ~SA_E_LeEq () |
Constructor & Destructor Documentation
virtual ell::SA_E_LeEq::~SA_E_LeEq | ( | ) | [inline, virtual] |
Definition at line 189 of file StateAcceptor.hh.
Member Function Documentation
bool ell::SA_E_LeEq::accept | ( | const StateCollector *const | sc, | |
const State & | succ | |||
) | const [virtual] |
Tests if energy of State succ is less or equal to energy of last accepted State of StateCollector sc.
- Parameters:
-
sc the StateCollector to test against succ the successor State to test
- Returns:
- true if valid successor
Implements ell::StateAcceptor.
Definition at line 46 of file StateAcceptor.cc.
The documentation for this class was generated from the following files:
- src/ell/StateAcceptor.hh
- src/ell/StateAcceptor.cc