Public Methods |
void | setComment (char *) |
| Sets the comment for the operator. More...
|
virtual void | setGoal (const NLAIAGENT::CStringVarName &) |
| Sets the goal the operator tries to achieve. More...
|
virtual void | setGoal (const NLAIAGENT::IVarName *, std::list<const NLAIAGENT::IVarName *> &) |
virtual const NLAILOGIC::CGoal* | getGoal () |
virtual bool | isValid (NLAILOGIC::CFactBase *) |
| Verifies if the preconditions are validated<. More...
|
void | compileFactPattern (NLAILOGIC::CFactPattern *, std::vector<NLAILOGIC::IBaseAssert *> &, std::vector<sint32> &) |
| Transforms a CFactPattern in an assert and a list of variable positions in the operator. More...
|
NLAILOGIC::CFact* | buildFromVars (NLAILOGIC::IBaseAssert *, std::vector<sint32> &, NLAILOGIC::CValueSet *) |
sint32 | getVarPos (NLAILOGIC::IBaseVar *) |
| Looks for a variable in the operator's variables vector and returns its position. More...
|
NLAILOGIC::CValueSet* | unifyLiaison ( const NLAILOGIC::CValueSet *, NLAILOGIC::CValueSet *, std::vector<sint32> &) |
| Tries to unify an instaciation of the operator's variables with a new CFact. More...
|
void | getPosListForward (sint32, sint32, std::vector<sint32> &) |
void | getPosListBackward (sint32, sint32, std::vector<sint32> &) |
void | getAssertPos (NLAILOGIC::IBaseAssert *, std::vector<NLAILOGIC::IBaseAssert *> &, std::vector<sint32> &) |
NLAILOGIC::CValueSet* | unifyBackward (std::list<NLAILOGIC::CFact *> &) |
NLAILOGIC::CValueSet* | unifyForward (std::list<NLAILOGIC::CFact *> &) |
virtual std::list<NLAILOGIC::CFact *>* | test (std::list<NLAILOGIC::CFact *> &) |
virtual std::list<NLAILOGIC::CFact *>* | backward (std::list<NLAILOGIC::CFact *> &) |
virtual std::list<NLAILOGIC::CFact *>* | forward (std::list<NLAILOGIC::CFact *> &) |
virtual std::list<NLAILOGIC::CFact *>* | propagate (std::list<NLAILOGIC::CFact *> &) |
virtual float | priority () const |
| Priority of the operator. More...
|
virtual void | success () |
| Own success and failure functions These functions tell other operators and goals that might be waiting for the completion of this one. More...
|
virtual void | failure () |
virtual void | success ( NLAILOGIC::IBaseOperator *) |
| Dependencies failure and success notification These functions are called by other operators or goals who failed or succeeded. More...
|
virtual void | failure ( NLAILOGIC::IBaseOperator *) |
| COperatorClass (const NLAIAGENT::IVarName &) |
| COperatorClass (const NLAIC::CIdentType &) |
| COperatorClass (const NLAIAGENT::IVarName &, const NLAIAGENT::IVarName &) |
| COperatorClass (const COperatorClass &) |
| COperatorClass () |
virtual | ~COperatorClass () |
const NLAIC::IBasicType* | clone () const |
| This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...
|
const NLAIC::IBasicType* | newInstance () const |
| This function allow a new instance, that mean that the class is a class factory. More...
|
void | getDebugString (char *t) const |
| This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...
|
virtual NLAIAGENT::IObjectIA* | buildNewInstance () const |
| Instanciates an object of the class. More...
|
void | addPrecondition (NLAILOGIC::CFactPattern *) |
void | addPostcondition (NLAILOGIC::CFactPattern *) |
void | addFirstOrderCond (const NLAIAGENT::IVarName *, std::list<const NLAIAGENT::IVarName *> &) |
| Add first order patterns as preconditions or postconditions. More...
|
void | addFirstOrderConc (const NLAIAGENT::IVarName *, std::list<const NLAIAGENT::IVarName *> &) |
void | addBoolCond (const NLAIAGENT::IVarName *) |
| Add first order patterns as preconditions or postconditions. More...
|
void | addBoolConc (const NLAIAGENT::IVarName *) |
void | addCodeCond (IOpCode *) |
| Add first order patterns as preconditions or postconditions PreConditions code must be any piece of code that returns an object that is true or false using the isTrue() function. More...
|
void | addCodeConc (IOpCode *) |
| PostConditions code is code that will be executed upon completion of the execution of the operator. More...
|
void | addFuzzyCond (NLAIAGENT::IVarName *, NLAIAGENT::IVarName *) |
void | buildLogicTables () |
| Compiles the conds and concs internaly. More...
|
bool | isValidFonc (NLAIAGENT::IObjectIA *) |
void | activatePostConditions (NLAIAGENT::IObjectIA *) |
void | initialiseFactBase (NLAILOGIC::CFactBase *) |
std::vector<NLAIAGENT::IVarName *>& | getFuzzyVars () |
std::vector<NLAIAGENT::IVarName *>& | getFuzzySets () |
Public Attributes |
std::list<const NLAIAGENT::IVarName *> | _BooleanConds |
| Initialisation from the grammar. More...
|
std::list<const NLAIAGENT::IVarName *> | _BooleanConcs |
std::vector<const NLAIAGENT::IVarName *> | _CondAsserts |
std::vector<const NLAIAGENT::IVarName *> | _ConcAsserts |
std::vector< std::list<const
NLAIAGENT::IVarName *> *> | _ClassCondVars |
std::vector< std::list<const
NLAIAGENT::IVarName *> *> | _ClassConcVars |
std::vector< IOpCode *> | _CondCode |
std::vector< IOpCode *> | _ConcCode |
NLAILOGIC::CFactBase* | _FactBase |
std::vector<NLAIAGENT::IVarName *> | _FuzzyVars |
std::vector<NLAIAGENT::IVarName *> | _FuzzySets |
Static Public Attributes |
const NLAIC::CIdentType | IdOperatorClass |
Private Attributes |
NLAILOGIC::CGoal* | _Goal |
const NLAIAGENT::IVarName* | _GoalAssert |
| Goal the operator tris to validate. More...
|
std::list<const NLAIAGENT::IVarName *> | _GoalVars |
| Name of the goal's assert. More...
|
std::vector<NLAILOGIC::IBaseVar *> | _Vars |
| Name of the goal's vars. More...
|
std::vector< NLAILOGIC::IBaseAssert *> | _Conds |
| Variables of the operator. More...
|
std::vector< std::vector<sint32> > | _PosVarsCond |
| Preconditions asserts. More...
|
std::vector<NLAILOGIC::IBaseAssert *> | _Concs |
| Pos of a precondition pattern's vars in the operator's vars table. More...
|
std::vector< std::vector<sint32> > | _PosVarsConc |
| Postconditions asserts. More...
|
char* | _Comment |
| Pos of a postcondition pattern's vars in the operator's vars table. More...
|
std::vector<NLAILOGIC::CGoal> | _Steps |
| Description of the operator. More...
|
std::vector<sint32> | _StepsMode |