Generated on Mon Jun 23 17:18:24 2008 for ell-2.3.0 by doxygen 1.5.1

ell::SA_EC_Le Class Reference

#include <StateAcceptor.hh>

Inheritance diagram for ell::SA_EC_Le:

Inheritance graph
[legend]

Detailed Description

This subclass of StateAcceptor implements a criterium to determine if a given State is valid to be accepted as successor in a walk.

To be accepted the new state has to have a lesser energy or if the energy is equal the compressed representation has to be lexicographically smaller.

Author:
Martin Mann

Definition at line 192 of file StateAcceptor.hh.

Public Member Functions

virtual bool accept (const StateCollector *const sc, const State &succ) const
virtual ~SA_EC_Le ()


Constructor & Destructor Documentation

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

Definition at line 196 of file StateAcceptor.hh.


Member Function Documentation

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

Returns true, if energy of State succ is less than energy of last accepted State in StateCollector sc or if their energies are equal and the succ State has a lexicographically smaller compressed representation.

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

Implements ell::StateAcceptor.

Definition at line 60 of file StateAcceptor.cc.


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