EasyLocal++ Documentation


 
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

easylocal::MoveTester Class Template Reference

#include <EasyLocal.h>

Inheritance diagram for easylocal::MoveTester

Inheritance graph
[legend]
Collaboration diagram for easylocal::MoveTester:

Collaboration graph
[legend]
List of all members.

Public Methods

Protected Methods

Protected Attributes


Detailed Description

template<class Input, class Output, class State, class Move> class easylocal::MoveTester

A Move Tester allows to test the behavior of a given neighborhood explorer.

Definition at line 990 of file EasyLocal.h.


Constructor & Destructor Documentation

template<class Input, class Output, class State, class Move>
easylocal::MoveTester< Input, Output, State, Move >::MoveTester<Input, Output, State, Move> ( StateManager< Input, State > * sm,
OutputManager< Input, Output, State > * om,
NeighborhoodExplorer< Input, State, Move > * ne,
std::string nm,
Input * in = NULL )
 

Constructs a move tester by providing it links to a state manager, an output manager, a neighborhood explorer, a name and an input object.

Parameters:
sm   a pointer to a compatible state manager
om   a pointer to a compatible output manager
ne   a pointer to a compatible neighborhood explorer
nm   the name of the move tester
in   a pointer to an input object

Definition at line 2037 of file EasyLocalTemplates.cpp.


Member Function Documentation

template<class Input, class Output, class State, class Move>
void easylocal::MoveTester< Input, Output, State, Move >::ExecuteChoice ( State & st ) [protected]
 

Execute the menu choice on the given state.

Parameters:
st   the current state

Definition at line 2111 of file EasyLocalTemplates.cpp.

Referenced by RunTestMenu().

template<class Input, class Output, class State, class Move>
void easylocal::MoveTester< Input, Output, State, Move >::RunTestMenu ( State & st ) [virtual]
 

Manages the move tester menu for the given state.

Parameters:
st   the state to test

Reimplemented from easylocal::AbstractMoveTester.

Definition at line 2067 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State, class Move>
void easylocal::MoveTester< Input, Output, State, Move >::SetInput ( Input * in ) [virtual]
 

Sets the internal input pointer to the new value passed as parameter.

Parameters:
in   the new input.

Reimplemented from easylocal::AbstractMoveTester.

Definition at line 2054 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State, class Move>
void easylocal::MoveTester< Input, Output, State, Move >::ShowMenu ( ) [protected]
 

Outputs the menu options.

Definition at line 2092 of file EasyLocalTemplates.cpp.

Referenced by RunTestMenu().


Member Data Documentation

template<class Input, class Output, class State, class Move>
int easylocal::MoveTester<Input, Output, State, Move>::choice [protected]
 

The option currently chosen from the menu.

Definition at line 1008 of file EasyLocal.h.

template<class Input, class Output, class State, class Move>
Output easylocal::MoveTester<Input, Output, State, Move>::out [protected]
 

The output object.

Definition at line 1007 of file EasyLocal.h.

template<class Input, class Output, class State, class Move>
Input * easylocal::MoveTester<Input, Output, State, Move>::p_in [protected]
 

A pointer to the input object.

Definition at line 1006 of file EasyLocal.h.

template<class Input, class Output, class State, class Move>
NeighborhoodExplorer< Input, State, Move > * easylocal::MoveTester<Input, Output, State, Move>::p_nhe [protected]
 

A pointer to the attached neighborhood explorer.

Definition at line 1001 of file EasyLocal.h.

template<class Input, class Output, class State, class Move>
OutputManager< Input, Output, State > * easylocal::MoveTester<Input, Output, State, Move>::p_om [protected]
 

A pointer to the attached output manager.

Definition at line 1004 of file EasyLocal.h.

template<class Input, class Output, class State, class Move>
StateManager< Input, State > * easylocal::MoveTester<Input, Output, State, Move>::p_sm [protected]
 

A pointer to the attached state manager.

Definition at line 999 of file EasyLocal.h.


The documentation for this class was generated from the following files:
 
Go to: the Main Page of the documentation.