Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set
// doxy/ or-tools/ src/ constraint_solver/

operations_research::DecisionBuilder Class Reference

A DecisionBuilder is responsible for creating the search tree. More...

#include <constraint_solver.h>

Inheritance diagram for operations_research::DecisionBuilder:

operations_research::BaseObject operations_research::AllUnperformed operations_research::FastOnePathBuilder operations_research::FindOneNeighbor

List of all members.

Public Member Functions

 DecisionBuilder ()
virtual ~DecisionBuilder ()
virtual DecisionNext (Solver *const s)=0
 This is the main method of the decision builder class.
virtual string DebugString () const
 Decision Builder.
virtual void AppendMonitors (Solver *const solver, std::vector< SearchMonitor * > *const extras)
 This method will be called at the start of the search.
virtual void Accept (ModelVisitor *const visitor) const


Detailed Description

A DecisionBuilder is responsible for creating the search tree.

The important method is Next() that returns the next decision to execute.

Definition at line 3120 of file constraint_solver.h.


Constructor & Destructor Documentation

operations_research::DecisionBuilder::DecisionBuilder (  )  [inline]

Definition at line 3122 of file constraint_solver.h.

virtual operations_research::DecisionBuilder::~DecisionBuilder (  )  [inline, virtual]

Definition at line 3123 of file constraint_solver.h.


Member Function Documentation

virtual Decision* operations_research::DecisionBuilder::Next ( Solver *const   s  )  [pure virtual]

This is the main method of the decision builder class.

It must return a decision (an instance of the class Decision). If it returns NULL, this means that the decision builder has finished its work.

Implemented in operations_research::FindOneNeighbor, operations_research::FastOnePathBuilder, and operations_research::AllUnperformed.

string operations_research::DecisionBuilder::DebugString (  )  const [virtual]

Decision Builder.

Reimplemented from operations_research::BaseObject.

Reimplemented in operations_research::FindOneNeighbor.

Definition at line 2558 of file constraint_solver.cc.

void operations_research::DecisionBuilder::AppendMonitors ( Solver *const   solver,
std::vector< SearchMonitor * > *const   extras 
) [virtual]

This method will be called at the start of the search.

It asks the decision builder if it wants to append search monitors to the list of active monitors for this search. Please note there are no checks at this point for duplication.

Definition at line 2562 of file constraint_solver.cc.

void operations_research::DecisionBuilder::Accept ( ModelVisitor *const   visitor  )  const [virtual]

Definition at line 2565 of file constraint_solver.cc.


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