#include <AIKB.h>
|
| KB () |
|
| KB (int maxRecords_, unsigned int reservedRecords_, unsigned int initParamsSizeOfReservedRecords_) |
|
virtual bool | add (const Record &record_, bool disallowIfPremNameExists_=false)=0 |
|
virtual void | remove (const Record &record_, bool all_, int numOfParamsToCheck_=-1)=0 |
|
virtual const std::list< Record > & | find (const Record &record_)=0 |
|
virtual bool | isEmpty () const =0 |
|
virtual void | clear ()=0 |
|
virtual int | size () const =0 |
|
virtual float | calcStateScore (int stateId_) const =0 |
|
KB is the knowledge base (memory) interface for AI::Wrapper objects.
KB::KB |
( |
int |
maxRecords_, |
|
|
unsigned int |
reservedRecords_, |
|
|
unsigned int |
initParamsSizeOfReservedRecords_ |
|
) |
| |
parameterized constructor
- Parameters
-
maxRecords_ | -1 means an unlimited # allowed |
reservedRecords_ | the number of Records in the knowledge base to reserve for quick access |
initParamsSizeOfReservedRecords_ | the # of starting parameters for each reserved Record |
virtual bool OpenSkyNet::AI::KB::add |
( |
const Record & |
record_, |
|
|
bool |
disallowIfPremNameExists_ = false |
|
) |
| |
|
pure virtual |
virtual float OpenSkyNet::AI::KB::calcStateScore |
( |
int |
stateId_ | ) |
const |
|
pure virtual |
virtual void OpenSkyNet::AI::KB::clear |
( |
| ) |
|
|
pure virtual |
virtual const std::list<Record>& OpenSkyNet::AI::KB::find |
( |
const Record & |
record_ | ) |
|
|
pure virtual |
virtual bool OpenSkyNet::AI::KB::isEmpty |
( |
| ) |
const |
|
pure virtual |
virtual void OpenSkyNet::AI::KB::remove |
( |
const Record & |
record_, |
|
|
bool |
all_, |
|
|
int |
numOfParamsToCheck_ = -1 |
|
) |
| |
|
pure virtual |
virtual int OpenSkyNet::AI::KB::size |
( |
| ) |
const |
|
pure virtual |
const int OpenSkyNet::AI::KB::_maxRecords |
|
protected |
std::vector<Record> OpenSkyNet::AI::KB::_reservedRecords |
for constant time (speed-critical) access of Records
const std::list< Record > OpenSkyNet::AI::KB::RECORDS_NOT_FOUND |
|
staticprotected |
The documentation for this class was generated from the following files: