Public Member Functions | List of all members
BcpsConstraintPool Class Reference

#include <BcpsObjectPool.h>

Inheritance diagram for BcpsConstraintPool:
Inheritance graph
[legend]
Collaboration diagram for BcpsConstraintPool:
Collaboration graph
[legend]

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...
 
AlpsKnowledgegetConstraint (int k) const
 Get a constraints. More...
 
- Public Member Functions inherited from BcpsObjectPool
 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...
 
AlpsKnowledgegetObject (int k) const
 Get a object. More...
 
- Public Member Functions inherited from AlpsKnowledgePool
 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

- Protected Attributes inherited from BcpsObjectPool
std::vector< AlpsKnowledge * > objects_
 

Detailed Description

Definition at line 104 of file BcpsObjectPool.h.

Constructor & Destructor Documentation

BcpsConstraintPool::BcpsConstraintPool ( )
inline

Definition at line 106 of file BcpsObjectPool.h.

virtual BcpsConstraintPool::~BcpsConstraintPool ( )
inlinevirtual

Definition at line 107 of file BcpsObjectPool.h.

Member Function Documentation

void BcpsConstraintPool::addConstraint ( BcpsConstraint con)
inline

Add a constraint to pool.

Definition at line 110 of file BcpsObjectPool.h.

void BcpsConstraintPool::deleteConstraint ( int  k)
inline

Delete constraint k from pool.

Definition at line 113 of file BcpsObjectPool.h.

int BcpsConstraintPool::getNumConstraints ( ) const
inline

Query how many constraints are in the pool.

Definition at line 116 of file BcpsObjectPool.h.

const std::vector<AlpsKnowledge *>& BcpsConstraintPool::getConstraints ( ) const
inline

Get the vector of constraints.

Definition at line 119 of file BcpsObjectPool.h.

AlpsKnowledge* BcpsConstraintPool::getConstraint ( int  k) const
inline

Get a constraints.

Definition at line 122 of file BcpsObjectPool.h.


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