Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Member Functions | Private Attributes

SgCombinedSearchControl Class Reference

Abort when either time or node limit is reached. More...

#include <SgSearchControl.h>

Inheritance diagram for SgCombinedSearchControl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 SgCombinedSearchControl (double maxTime, int maxNumNodes)
virtual ~SgCombinedSearchControl ()
virtual bool Abort (double elapsedTime, int numNodes)
 Check if search should be aborted.
virtual bool StartNextIteration (int depth, double elapsedTime, int numNodes)
 Check if next iteration should be started.

Private Member Functions

 SgCombinedSearchControl (const SgCombinedSearchControl &)
 Not implemented.
SgCombinedSearchControloperator= (const SgCombinedSearchControl &)
 Not implemented.

Private Attributes

double m_maxTime
int m_maxNumNodes

Detailed Description

Abort when either time or node limit is reached.

Definition at line 119 of file SgSearchControl.h.


Constructor & Destructor Documentation

SgCombinedSearchControl::SgCombinedSearchControl ( double  maxTime,
int  maxNumNodes 
)

Definition at line 141 of file SgSearchControl.h.

SgCombinedSearchControl::~SgCombinedSearchControl (  )  [virtual]

Definition at line 59 of file SgSearchControl.cpp.

SgCombinedSearchControl::SgCombinedSearchControl ( const SgCombinedSearchControl  )  [private]

Not implemented.


Member Function Documentation

bool SgCombinedSearchControl::Abort ( double  elapsedTime,
int  numNodes 
) [virtual]

Check if search should be aborted.

Called at each node.

Implements SgSearchControl.

Definition at line 63 of file SgSearchControl.cpp.

References m_maxNumNodes, and m_maxTime.

SgCombinedSearchControl& SgCombinedSearchControl::operator= ( const SgCombinedSearchControl  )  [private]

Not implemented.

bool SgSearchControl::StartNextIteration ( int  depth,
double  elapsedTime,
int  numNodes 
) [virtual, inherited]

Check if next iteration should be started.

Called before each iteration. The default implementation always returns true.

Parameters:
depth The depth of the next iteration.
elapsedTime The elapsed time in seconds.
numNodes The number of nodes visited.

Definition at line 15 of file SgSearchControl.cpp.

References SG_UNUSED().

Referenced by SgSearch::IteratedSearch().


Member Data Documentation

Definition at line 132 of file SgSearchControl.h.

Referenced by Abort().

Definition at line 130 of file SgSearchControl.h.

Referenced by Abort().


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


Sun Mar 13 2011 Doxygen 1.7.1