Generated on Tue May 22 09:41:40 2018 for Gecode by doxygen 1.6.3

Gecode::Search::Par::Slave< Collect > Class Template Reference

Runnable slave of a portfolio master. More...

#include <pbs.hh>

List of all members.

Public Member Functions

 Slave (PBS< Collect > *m, Engine *s, Stop *so)
 Initialize with master m, slave s, and its stop object so.
Statistics statistics (void) const
 Return statistics of slave.
bool stopped (void) const
 Check whether slave has been stopped.
void constrain (const Space &b)
 Constrain with better solution b.
virtual void run (void)
 Perform one run.
virtual ~Slave (void)
 Delete slave.

Protected Attributes

PBS< Collect > * master
 The master engine.
Engineslave
 The slave engine.
Stopstop
 Stop object.

Detailed Description

template<class Collect>
class Gecode::Search::Par::Slave< Collect >

Runnable slave of a portfolio master.

Definition at line 67 of file pbs.hh.


Constructor & Destructor Documentation

template<class Collect>
Gecode::Search::Par::Slave< Collect >::Slave ( PBS< Collect > *  m,
Engine s,
Stop so 
) [inline]

Initialize with master m, slave s, and its stop object so.

Definition at line 128 of file pbs.hpp.

template<class Collect >
Gecode::Search::Par::Slave< Collect >::~Slave ( void   )  [inline, virtual]

Delete slave.

Definition at line 146 of file pbs.hpp.


Member Function Documentation

template<class Collect >
Statistics Gecode::Search::Par::Slave< Collect >::statistics ( void   )  const [inline]

Return statistics of slave.

Definition at line 132 of file pbs.hpp.

template<class Collect >
bool Gecode::Search::Par::Slave< Collect >::stopped ( void   )  const [inline]

Check whether slave has been stopped.

Definition at line 137 of file pbs.hpp.

template<class Collect >
void Gecode::Search::Par::Slave< Collect >::constrain ( const Space b  )  [inline]

Constrain with better solution b.

Definition at line 142 of file pbs.hpp.

template<class Collect >
void Gecode::Search::Par::Slave< Collect >::run ( void   )  [inline, virtual]

Perform one run.

Implements Gecode::Support::Runnable.

Definition at line 201 of file pbs.hpp.


Member Data Documentation

template<class Collect>
PBS<Collect>* Gecode::Search::Par::Slave< Collect >::master [protected]

The master engine.

Definition at line 70 of file pbs.hh.

template<class Collect>
Engine* Gecode::Search::Par::Slave< Collect >::slave [protected]

The slave engine.

Definition at line 72 of file pbs.hh.

template<class Collect>
Stop* Gecode::Search::Par::Slave< Collect >::stop [protected]

Stop object.

Definition at line 74 of file pbs.hh.


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