#include <AIBase.h>
Inheritance diagram for AIPremise:
Public Member Functions | |
AIPremise (std::vector< int > params_=std::vector< int >()) | |
virtual bool | operator== (const AIPremise &rhs) const |
virtual bool | equals (const AIPremise &rhs, int numparamstocheck_) const |
AIPremise & | operator= (int param_) |
AIPremise & | operator+= (int param_) |
virtual int | serialize (std::ofstream &fout_) const |
virtual int | assemble (std::ifstream &fin_) |
virtual | ~AIPremise () |
empty destructor | |
Public Attributes | |
std::vector< int > | params |
params[0] must be the premise ID | |
float | entrytime |
# of secs elapsed from time program started to time entered in an AIKB | |
bool | negated |
look for absence of this premise in an AIKB |
|
constructor
|
|
assigns this object to one read from a binary file and returns the number of bytes read
|
|
use equals rather than operator== to check a certain # of parameters
|
|
adds a parameter
Reimplemented in AIAction, and AIException. |
|
clears all parameters, resets other vars, and sets the first parameter (the ID) to param_
Reimplemented in AIAction, and AIException. |
|
must have same number and all equal parameters to return true
|
|
writes this object to a binary file and returns the number of bytes written
|