Alps
2.0.2
|
This is an abstract base class, fixing an API for pool types of Alps, AlpsNodePool, AlpsSolutionPool, AlpsSubTreePool. More...
#include <AlpsKnowledgePool.h>
Public Member Functions | |
Constructor and Destructor. | |
AlpsKnowledgePool (AlpsKnowledgePoolType type) | |
Default constructor. More... | |
virtual | ~AlpsKnowledgePool () |
Destructor. More... | |
Querry methods | |
virtual int | getNumKnowledges () const =0 |
Return size of the pool. More... | |
virtual std::pair< AlpsKnowledge *, double > | getKnowledge () const =0 |
Check the first item in the pool. More... | |
virtual bool | hasKnowledge () const =0 |
Check whether the pool is empty. More... | |
virtual int | getMaxNumKnowledges () const =0 |
Query the quantity limit of knowledges. More... | |
virtual std::pair< AlpsKnowledge *, double > | getBestKnowledge () const =0 |
Query the best knowledge in the pool. More... | |
virtual void | getAllKnowledges (std::vector< std::pair< AlpsKnowledge *, double > > &kls) const =0 |
Get a reference to all the knowledges in the pool.*/. More... | |
Knowledge manipulation | |
virtual void | addKnowledge (AlpsKnowledge *nk, double priority)=0 |
Add a knowledge to pool. More... | |
virtual void | popKnowledge ()=0 |
Pop the first knowledge from the pool. More... | |
Private Attributes | |
AlpsKnowledgePoolType | type_ |
Other functions | |
virtual void | setMaxNumKnowledges (int num)=0 |
Set the quantity limit of knowledges that can be stored in the pool. More... | |
AlpsKnowledgePool (AlpsKnowledgePool const &) | |
Disable copy constructor. More... | |
AlpsKnowledgePool & | operator= (AlpsKnowledgePool const &) |
Disable copy assignment operator. More... | |
This is an abstract base class, fixing an API for pool types of Alps, AlpsNodePool, AlpsSolutionPool, AlpsSubTreePool.
Definition at line 47 of file AlpsKnowledgePool.h.
|
inline |
Default constructor.
Definition at line 54 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Destructor.
Definition at line 56 of file AlpsKnowledgePool.h.
|
private |
Disable copy constructor.
|
pure virtual |
Return size of the pool.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Check the first item in the pool.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Check whether the pool is empty.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Query the quantity limit of knowledges.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Query the best knowledge in the pool.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Get a reference to all the knowledges in the pool.*/.
Implemented in AlpsSolutionPool, AlpsNodePool, and AlpsSubTreePool.
|
pure virtual |
Add a knowledge to pool.
Implemented in AlpsSubTreePool, AlpsSolutionPool, and AlpsNodePool.
|
pure virtual |
Pop the first knowledge from the pool.
Implemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
|
pure virtual |
Set the quantity limit of knowledges that can be stored in the pool.
Implemented in AlpsNodePool, AlpsSubTreePool, and AlpsSolutionPool.
|
private |
Disable copy assignment operator.
|
private |
Definition at line 48 of file AlpsKnowledgePool.h.