Bcps 0.94.5
Public Member Functions | List of all members
BcpsConstraintPool Class Reference

#include <BcpsObjectPool.h>

+ Inheritance diagram for BcpsConstraintPool:
+ Collaboration diagram for BcpsConstraintPool:

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 addKnowledge (AlpsKnowledge *nk, double priority)=0
 
virtual int getNumKnowledges () const=0
 
virtual std::pair< AlpsKnowledge *, double > getKnowledge () const=0
 
virtual void popKnowledge ()
 
virtual bool hasKnowledge () const
 
virtual void setMaxNumKnowledges (int num)
 
virtual int getMaxNumKnowledges () const
 
virtual std::pair< AlpsKnowledge *, double > getBestKnowledge () const
 
virtual void getAllKnowledges (std::vector< std::pair< AlpsKnowledge *, double > > &kls) const
 

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::BcpsConstraintPool ( )
inline

Definition at line 106 of file BcpsObjectPool.h.

◆ ~BcpsConstraintPool()

virtual BcpsConstraintPool::~BcpsConstraintPool ( )
inlinevirtual

Definition at line 107 of file BcpsObjectPool.h.

Member Function Documentation

◆ addConstraint()

void BcpsConstraintPool::addConstraint ( BcpsConstraint con)
inline

Add a constraint to pool.

Definition at line 110 of file BcpsObjectPool.h.

◆ deleteConstraint()

void BcpsConstraintPool::deleteConstraint ( int  k)
inline

Delete constraint k from pool.

Definition at line 113 of file BcpsObjectPool.h.

◆ getNumConstraints()

int BcpsConstraintPool::getNumConstraints ( ) const
inline

Query how many constraints are in the pool.

Definition at line 116 of file BcpsObjectPool.h.

◆ getConstraints()

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

Get the vector of constraints.

Definition at line 119 of file BcpsObjectPool.h.

◆ getConstraint()

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: