#include <BcpsObjectPool.h>
Public Member Functions | |
BcpsConstraintPool () | |
virtual | ~BcpsConstraintPool () |
void | addConstraint (BcpsConstraint *con) |
Add a constraint to pool. More... | |
void | deleteConstraint (int k) |
Delete constraint k from pool. More... | |
int | getNumConstraints () const |
Query how many constraints are in the pool. More... | |
const std::vector < AlpsKnowledge * > & | getConstraints () const |
Get the vector of constraints. More... | |
AlpsKnowledge * | getConstraint (int k) const |
Get a constraints. More... | |
![]() | |
BcpsObjectPool () | |
Default construct. More... | |
virtual | ~BcpsObjectPool () |
void | freeGuts () |
Free object pointers. More... | |
void | clear () |
Reset to empty. More... | |
virtual void | addKnowledge (AlpsKnowledge *nk, double priority) |
Add a knowledge to pool. More... | |
virtual int | getNumKnowledges () const |
Query how many knowledges are in the pool. More... | |
virtual std::pair < AlpsKnowledge *, double > | getKnowledge () const |
Query a knowledge, but doesn't remove it from the pool. More... | |
virtual bool | hasKnowledge () const |
Check whether the pool has knowledge. More... | |
void | deleteObject (int k) |
Delete object k from pool. More... | |
const std::vector < AlpsKnowledge * > & | getObjects () const |
Get all objects. More... | |
AlpsKnowledge * | getObject (int k) const |
Get a object. More... | |
![]() | |
AlpsKnowledgePool () | |
virtual | ~AlpsKnowledgePool () |
virtual void | popKnowledge () |
Remove the queried knowledge from the pool. 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... | |
Additional Inherited Members | |
![]() | |
std::vector< AlpsKnowledge * > | objects_ |
Definition at line 104 of file BcpsObjectPool.h.
|
inline |
Definition at line 106 of file BcpsObjectPool.h.
|
inlinevirtual |
Definition at line 107 of file BcpsObjectPool.h.
|
inline |
Add a constraint to pool.
Definition at line 110 of file BcpsObjectPool.h.
|
inline |
Delete constraint k from pool.
Definition at line 113 of file BcpsObjectPool.h.
|
inline |
Query how many constraints are in the pool.
Definition at line 116 of file BcpsObjectPool.h.
|
inline |
Get the vector of constraints.
Definition at line 119 of file BcpsObjectPool.h.
|
inline |
Get a constraints.
Definition at line 122 of file BcpsObjectPool.h.