Runnable slave of a portfolio master. More...
#include <pbs.hh>
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. | |
![]() | |
Runnable (bool d=true) | |
Initialize, d defines whether object is deleted when terminated. | |
void | todelete (bool d) |
Set whether to delete upon termination. | |
bool | todelete (void) const |
Return whether to be deleted upon termination. | |
virtual Terminator * | terminator (void) const |
Return terminator object. | |
virtual | ~Runnable (void) |
Destructor. | |
Protected Attributes | |
PBS< Collect > * | master |
The master engine. | |
Engine * | slave |
The slave engine. | |
Stop * | stop |
Stop object. | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t s) |
Allocate memory from heap. | |
static void | operator delete (void *p) |
Free memory allocated from heap. | |
Runnable slave of a portfolio master.
|
inline |
|
inline |
|
virtual |
|
protected |
|
protected |