#include <AlpsKnowledgePool.h>
Public Member Functions | |
AlpsKnowledgePool () | |
virtual | ~AlpsKnowledgePool () |
virtual void | addKnowledge (AlpsKnowledge *nk, double priority)=0 |
Add a knowledge to pool. More... | |
virtual int | getNumKnowledges () const =0 |
Query how many knowledges are in the pool. More... | |
virtual std::pair < AlpsKnowledge *, double > | getKnowledge () const =0 |
Query a knowledge, but doesn't remove it from the pool. More... | |
virtual void | popKnowledge () |
Remove the queried knowledge from the pool. More... | |
virtual bool | hasKnowledge () const |
Check whether the pool has knowledge. More... | |
virtual void | setMaxNumKnowledges (int num) |
Set the quantity limit of knowledges that can be stored in the pool. More... | |
virtual int | getMaxNumKnowledges () const |
Query the quantity limit of knowledges. More... | |
virtual std::pair < AlpsKnowledge *, double > | getBestKnowledge () const |
Query the best knowledge in the pool. More... | |
virtual void | getAllKnowledges (std::vector< std::pair< AlpsKnowledge *, double > > &kls) const |
Get a reference to all the knowledges in the pool. More... | |
Private Member Functions | |
AlpsKnowledgePool (const AlpsKnowledgePool &) | |
AlpsKnowledgePool & | operator= (const AlpsKnowledgePool &) |
Definition at line 36 of file AlpsKnowledgePool.h.
|
private |
|
inline |
Definition at line 42 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Definition at line 43 of file AlpsKnowledgePool.h.
|
private |
|
pure virtual |
Add a knowledge to pool.
Implemented in AlpsNodePool, AlpsSolutionPool, AlpsSubTreePool, and BcpsObjectPool.
|
pure virtual |
Query how many knowledges are in the pool.
Implemented in BcpsObjectPool, AlpsSolutionPool, AlpsNodePool, and AlpsSubTreePool.
|
pure virtual |
Query a knowledge, but doesn't remove it from the pool.
Implemented in AlpsNodePool, AlpsSolutionPool, BcpsObjectPool, and AlpsSubTreePool.
|
inlinevirtual |
Remove the queried knowledge from the pool.
Reimplemented in AlpsNodePool, AlpsSolutionPool, and AlpsSubTreePool.
Definition at line 55 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Check whether the pool has knowledge.
Reimplemented in AlpsNodePool, BcpsObjectPool, AlpsSolutionPool, and AlpsSubTreePool.
Definition at line 61 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Set the quantity limit of knowledges that can be stored in the pool.
Reimplemented in AlpsSolutionPool.
Definition at line 67 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Query the quantity limit of knowledges.
Reimplemented in AlpsSolutionPool.
Definition at line 75 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Query the best knowledge in the pool.
Reimplemented in AlpsSolutionPool.
Definition at line 83 of file AlpsKnowledgePool.h.
|
inlinevirtual |
Get a reference to all the knowledges in the pool.
Reimplemented in AlpsSolutionPool.
Definition at line 89 of file AlpsKnowledgePool.h.