|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAISCRIPT::COperatorClass Class Reference#include <interpret_object_operator.h>
Inheritance diagram for NLAISCRIPT::COperatorClass:
List of all members.
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...
|
virtual void | getDebugString (std::string &) 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 () |
std::vector< NLAILOGIC::IBaseVar * > & | getVars () |
std::vector< NLAILOGIC::IBaseAssert * > & | getConds () |
std::vector< NLAILOGIC::IBaseAssert * > & | getConcs () |
std::vector< std::vector<
sint32 > > & | getPosVarsConds () |
std::vector< std::vector<
sint32 > > & | getPosVarsConcs () |
std::vector< sint32 > & | getGoalVarPos () |
virtual void | setUpdateEvery (sint32 cycles) |
sint32 | getUpdateEvery () |
void | setPriority (float p) |
float | getPriority () const |
void | RegisterMessage (NLAIAGENT::IMessageBase::TPerformatif, const std::string &, const std::string &) |
virtual sint32 | checkTriggerMsg (const NLAIAGENT::IMessageBase *) |
sint32 | NbMsgTrigger () |
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< sint32 > | _GoalPosVar |
| Name of the goal's vars. More...
|
std::vector< NLAILOGIC::IBaseVar * > | _Vars |
| Pos of the goal's var in the operato's static components. 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...
|
std::vector< NLAIAGENT::IMessageBase::TPerformatif > | _TrigMsgPerf |
| Pos of a postcondition pattern's vars in the operator's vars table. More...
|
std::vector< NLAIC::CIdentType > | _TrigMsgClass |
std::vector< std::string > | _TrigMsgVarname |
std::vector< sint32 > | _TrigMsgPos |
char * | _Comment |
std::vector< NLAILOGIC::CGoal > | _Steps |
| Description of the operator. More...
|
std::vector< sint32 > | _StepsMode |
sint32 | _UpdateCycles |
float | _Priority |
Constructor & Destructor Documentation
NLAISCRIPT::COperatorClass::COperatorClass |
( |
const COperatorClass & |
|
) |
|
|
|
Definition at line 56 of file logic/interpret_object_operator.cpp.
References _Comment, _FactBase, _Goal, _Priority, _UpdateCycles, NLAILOGIC::CFactBase::clone, NLAILOGIC::CGoal::clone, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::COperatorScript::IdOperatorScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance. |
NLAISCRIPT::COperatorClass::COperatorClass |
( |
|
) |
|
|
NLAISCRIPT::COperatorClass::~COperatorClass |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NLAISCRIPT::COperatorClass::addCodeConc |
( |
IOpCode * |
|
) |
|
|
void NLAISCRIPT::COperatorClass::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.
Definition at line 645 of file logic/interpret_object_operator.cpp.
References _CondCode. |
void NLAISCRIPT::COperatorClass::buildLogicTables |
( |
|
) |
|
|
|
Compiles the conds and concs internaly.
Definition at line 657 of file logic/interpret_object_operator.cpp.
References _ClassConcVars, _ClassCondVars, _ConcAsserts, _CondAsserts, _FactBase, NLAILOGIC::CFactBase::addAssert, addPostcondition, addPrecondition, NLAILOGIC::CVarSet::addVar, assert, and size. |
void NLAISCRIPT::COperatorClass::failure |
( |
|
) |
[virtual] |
|
void NLAISCRIPT::COperatorClass::getDebugString |
( |
std::string & |
|
) |
const [virtual] |
|
std::vector<sint32>& NLAISCRIPT::COperatorClass::getGoalVarPos |
( |
|
) |
[inline] |
|
void NLAISCRIPT::COperatorClass::getPosListBackward |
( |
sint32 |
, |
|
|
sint32 |
, |
|
|
std::vector< sint32 > & |
|
|
) |
|
|
void NLAISCRIPT::COperatorClass::getPosListForward |
( |
sint32 |
, |
|
|
sint32 |
, |
|
|
std::vector< sint32 > & |
|
|
) |
|
|
std::vector< std::vector<sint32> >& NLAISCRIPT::COperatorClass::getPosVarsConcs |
( |
|
) |
[inline] |
|
std::vector< std::vector<sint32> >& NLAISCRIPT::COperatorClass::getPosVarsConds |
( |
|
) |
[inline] |
|
float NLAISCRIPT::COperatorClass::getPriority |
( |
|
) |
const [inline] |
|
sint32 NLAISCRIPT::COperatorClass::getUpdateEvery |
( |
|
) |
[inline] |
|
sint32 NLAISCRIPT::COperatorClass::NbMsgTrigger |
( |
|
) |
[inline] |
|
const NLAIC::IBasicType * NLAISCRIPT::COperatorClass::newInstance |
( |
|
) |
const [virtual] |
|
float NLAISCRIPT::COperatorClass::priority |
( |
|
) |
const [virtual] |
|
void NLAISCRIPT::COperatorClass::setComment |
( |
char * |
|
) |
|
|
void NLAISCRIPT::COperatorClass::setPriority |
( |
float |
p |
) |
[inline] |
|
virtual void NLAISCRIPT::COperatorClass::setUpdateEvery |
( |
sint32 |
cycles |
) |
[inline, virtual] |
|
|
Dependencies failure and success notification These functions are called by other operators or goals who failed or succeeded.
Definition at line 463 of file logic/interpret_object_operator.cpp. |
void NLAISCRIPT::COperatorClass::success |
( |
|
) |
[virtual] |
|
|
Own success and failure functions These functions tell other operators and goals that might be waiting for the completion of this one.
Definition at line 455 of file logic/interpret_object_operator.cpp. |
Member Data Documentation
char* NLAISCRIPT::COperatorClass::_Comment [private]
|
|
std::vector< IOpCode *> NLAISCRIPT::COperatorClass::_ConcCode
|
|
std::vector< IOpCode *> NLAISCRIPT::COperatorClass::_CondCode
|
|
std::vector<sint32> NLAISCRIPT::COperatorClass::_GoalPosVar [private]
|
|
std::vector< std::vector<sint32> > NLAISCRIPT::COperatorClass::_PosVarsConc [private]
|
|
std::vector< std::vector<sint32> > NLAISCRIPT::COperatorClass::_PosVarsCond [private]
|
|
float NLAISCRIPT::COperatorClass::_Priority [private]
|
|
std::vector<sint32> NLAISCRIPT::COperatorClass::_StepsMode [private]
|
|
std::vector<sint32> NLAISCRIPT::COperatorClass::_TrigMsgPos [private]
|
|
std::vector<std::string> NLAISCRIPT::COperatorClass::_TrigMsgVarname [private]
|
|
sint32 NLAISCRIPT::COperatorClass::_UpdateCycles [private]
|
|
The documentation for this class was generated from the following files:
|
|