# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
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:

NLAISCRIPT::CAgentClass NLAISCRIPT::IAgentMultiClass NLAISCRIPT::IClassInterpret NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable 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::CGoalgetGoal ()
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::CFactbuildFromVars (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::CValueSetunifyLiaison (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::CValueSetunifyBackward (std::list< NLAILOGIC::CFact * > &)
NLAILOGIC::CValueSetunifyForward (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::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

const NLAIC::IBasicTypenewInstance () 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::IObjectIAbuildNewInstance () 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 NLAIAGENT::IVarName  
 

Definition at line 23 of file logic/interpret_object_operator.cpp.

References _Comment, _FactBase, _Goal, _Priority, _UpdateCycles, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::COperatorScript::IdOperatorScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance.

Referenced by buildNewInstance.

NLAISCRIPT::COperatorClass::COperatorClass const NLAIC::CIdentType  
 

Definition at line 34 of file logic/interpret_object_operator.cpp.

References _Comment, _FactBase, _Goal, _Priority, _UpdateCycles, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, id, NLAIAGENT::COperatorScript::IdOperatorScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance.

NLAISCRIPT::COperatorClass::COperatorClass const NLAIAGENT::IVarName  ,
const NLAIAGENT::IVarName  
 

Definition at line 45 of file logic/interpret_object_operator.cpp.

References _Comment, _FactBase, _Goal, _Priority, _UpdateCycles, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::COperatorScript::IdOperatorScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance.

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  
 

Definition at line 83 of file logic/interpret_object_operator.cpp.

References _Comment, _FactBase, _Goal, _Priority, _UpdateCycles, NLAISCRIPT::IAgentMultiClass::getBaseMethodCount, NLAIAGENT::COperatorScript::IdOperatorScript, NLAISCRIPT::IAgentMultiClass::setBaseMethodCount, and NLAISCRIPT::IAgentMultiClass::setBaseObjectInstance.

Referenced by clone, and newInstance.

NLAISCRIPT::COperatorClass::~COperatorClass   [virtual]
 

Definition at line 94 of file logic/interpret_object_operator.cpp.

References _Comment, _ConcCode, _CondCode, _FactBase, _FuzzySets, _FuzzyVars, _Goal, and NLAIC::IPointerGestion::release.


Member Function Documentation

void NLAISCRIPT::COperatorClass::activatePostConditions NLAIAGENT::IObjectIA  
 

Definition at line 801 of file logic/interpret_object_operator.cpp.

References _ConcCode, NLAISCRIPT::CCodeContext::Code, NLAISCRIPT::CCodeContext::ContextDebug, and r.

void NLAISCRIPT::COperatorClass::addBoolConc const NLAIAGENT::IVarName  
 

Definition at line 638 of file logic/interpret_object_operator.cpp.

References _BooleanConcs.

void NLAISCRIPT::COperatorClass::addBoolCond const NLAIAGENT::IVarName  
 

Add first order patterns as preconditions or postconditions.

Definition at line 633 of file logic/interpret_object_operator.cpp.

References _BooleanConds.

void NLAISCRIPT::COperatorClass::addCodeConc IOpCode  
 

PostConditions code is code that will be executed upon completion of the execution of the operator.

Definition at line 651 of file logic/interpret_object_operator.cpp.

References _ConcCode.

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::addFirstOrderConc const NLAIAGENT::IVarName  ,
std::list< const NLAIAGENT::IVarName * > &   
 

Definition at line 620 of file logic/interpret_object_operator.cpp.

References _ClassConcVars, and _ConcAsserts.

void NLAISCRIPT::COperatorClass::addFirstOrderCond const NLAIAGENT::IVarName  ,
std::list< const NLAIAGENT::IVarName * > &   
 

Add first order patterns as preconditions or postconditions.

Definition at line 594 of file logic/interpret_object_operator.cpp.

References _FactBase, NLAILOGIC::CFactBase::addAssert, addPrecondition, NLAILOGIC::CVarSet::addVar, assert, and NLAIC::IBasicType::clone.

void NLAISCRIPT::COperatorClass::addFuzzyCond NLAIAGENT::IVarName  ,
NLAIAGENT::IVarName  
 

Definition at line 875 of file logic/interpret_object_operator.cpp.

References _FuzzySets, and _FuzzyVars.

void NLAISCRIPT::COperatorClass::addPostcondition NLAILOGIC::CFactPattern  
 

Definition at line 490 of file logic/interpret_object_operator.cpp.

References _Concs, _Conds, _PosVarsConc, compileFactPattern, and NLAILOGIC::CFactPattern::getAssert.

Referenced by buildLogicTables, and initialiseFactBase.

void NLAISCRIPT::COperatorClass::addPrecondition NLAILOGIC::CFactPattern  
 

Definition at line 476 of file logic/interpret_object_operator.cpp.

References _Conds, _PosVarsCond, compileFactPattern, and NLAILOGIC::CFactPattern::getAssert.

Referenced by addFirstOrderCond, buildLogicTables, and initialiseFactBase.

std::list< NLAILOGIC::CFact * > * NLAISCRIPT::COperatorClass::backward std::list< NLAILOGIC::CFact * > &    [virtual]
 

Definition at line 334 of file logic/interpret_object_operator.cpp.

References _Conds, _PosVarsCond, buildFromVars, NLAIC::IPointerGestion::release, and unifyBackward.

NLAILOGIC::CFact * NLAISCRIPT::COperatorClass::buildFromVars NLAILOGIC::IBaseAssert  ,
std::vector< sint32 > &   ,
NLAILOGIC::CValueSet  
 

Definition at line 324 of file logic/interpret_object_operator.cpp.

References assert, and NLAILOGIC::CValueSet::setValue.

Referenced by backward, and forward.

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.

NLAIAGENT::IObjectIA * NLAISCRIPT::COperatorClass::buildNewInstance   const [virtual]
 

Instanciates an object of the class.

Reimplemented from NLAISCRIPT::CAgentClass.

Definition at line 197 of file logic/interpret_object_operator.cpp.

References components, COperatorClass, NLAISCRIPT::CAgentClass::createBaseClassComponents, getPriority, and NLAIAGENT::COperatorScript::setPriority.

sint32 NLAISCRIPT::COperatorClass::checkTriggerMsg const NLAIAGENT::IMessageBase   [virtual]
 

Definition at line 930 of file logic/interpret_object_operator.cpp.

References _TrigMsgClass, _TrigMsgPerf, _TrigMsgPos, NLAIAGENT::IMessageBase::getPerformatif, and NLAIC::IBasicType::getType.

const NLAIC::IBasicType * NLAISCRIPT::COperatorClass::clone   const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Reimplemented from NLAISCRIPT::CAgentClass.

Definition at line 172 of file logic/interpret_object_operator.cpp.

References clone, and COperatorClass.

Referenced by clone.

void NLAISCRIPT::COperatorClass::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.

Definition at line 537 of file logic/interpret_object_operator.cpp.

References _Vars, NLAISCRIPT::CAgentClass::getComponentIndex, NLAILOGIC::CVarSet::getVars, and NLAISCRIPT::CAgentClass::registerComponent.

Referenced by addPostcondition, and addPrecondition.

void NLAISCRIPT::COperatorClass::failure NLAILOGIC::IBaseOperator   [virtual]
 

Definition at line 467 of file logic/interpret_object_operator.cpp.

void NLAISCRIPT::COperatorClass::failure   [virtual]
 

Definition at line 459 of file logic/interpret_object_operator.cpp.

std::list< NLAILOGIC::CFact * > * NLAISCRIPT::COperatorClass::forward std::list< NLAILOGIC::CFact * > &    [virtual]
 

Definition at line 350 of file logic/interpret_object_operator.cpp.

References _Concs, _PosVarsConc, buildFromVars, NLAIC::IPointerGestion::release, and unifyForward.

void NLAISCRIPT::COperatorClass::getAssertPos NLAILOGIC::IBaseAssert  ,
std::vector< NLAILOGIC::IBaseAssert * > &   ,
std::vector< sint32 > &   
 

Definition at line 441 of file logic/interpret_object_operator.cpp.

References NLAISCRIPT::l.

Referenced by NLAIAGENT::COperatorScript::propagate, propagate, unifyBackward, and unifyForward.

std::vector< NLAILOGIC::IBaseAssert *>& NLAISCRIPT::COperatorClass::getConcs   [inline]
 

Definition at line 213 of file interpret_object_operator.h.

References _Concs.

Referenced by NLAIAGENT::COperatorScript::propagate.

std::vector< NLAILOGIC::IBaseAssert *>& NLAISCRIPT::COperatorClass::getConds   [inline]
 

Definition at line 208 of file interpret_object_operator.h.

References _Conds.

Referenced by NLAIAGENT::COperatorScript::propagate.

void NLAISCRIPT::COperatorClass::getDebugString std::string &    const [virtual]
 

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.

Reimplemented from NLAISCRIPT::CAgentClass.

Definition at line 184 of file logic/interpret_object_operator.cpp.

References _Vars, and t.

Referenced by RegisterMessage.

std::vector<NLAIAGENT::IVarName *>& NLAISCRIPT::COperatorClass::getFuzzySets   [inline]
 

Definition at line 198 of file interpret_object_operator.h.

References _FuzzySets.

std::vector<NLAIAGENT::IVarName *>& NLAISCRIPT::COperatorClass::getFuzzyVars   [inline]
 

Definition at line 193 of file interpret_object_operator.h.

References _FuzzyVars.

const NLAILOGIC::CGoal * NLAISCRIPT::COperatorClass::getGoal   [virtual]
 

Definition at line 471 of file logic/interpret_object_operator.cpp.

References _Goal.

std::vector<sint32>& NLAISCRIPT::COperatorClass::getGoalVarPos   [inline]
 

Definition at line 228 of file interpret_object_operator.h.

References _GoalPosVar.

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]
 

Definition at line 223 of file interpret_object_operator.h.

References _PosVarsConc.

Referenced by NLAIAGENT::COperatorScript::propagate.

std::vector< std::vector<sint32> >& NLAISCRIPT::COperatorClass::getPosVarsConds   [inline]
 

Definition at line 218 of file interpret_object_operator.h.

References _PosVarsCond.

Referenced by NLAIAGENT::COperatorScript::propagate.

float NLAISCRIPT::COperatorClass::getPriority   const [inline]
 

Definition at line 248 of file interpret_object_operator.h.

References _Priority.

Referenced by buildNewInstance.

sint32 NLAISCRIPT::COperatorClass::getUpdateEvery   [inline]
 

Definition at line 238 of file interpret_object_operator.h.

References _UpdateCycles.

sint32 NLAISCRIPT::COperatorClass::getVarPos NLAILOGIC::IBaseVar  
 

Looks for a variable in the operator's variables vector and returns its position.

Definition at line 578 of file logic/interpret_object_operator.cpp.

References _Vars, and NLAILOGIC::IBaseVar::getName.

std::vector<NLAILOGIC::IBaseVar *>& NLAISCRIPT::COperatorClass::getVars   [inline]
 

Definition at line 203 of file interpret_object_operator.h.

References _Vars.

void NLAISCRIPT::COperatorClass::initialiseFactBase NLAILOGIC::CFactBase  
 

Definition at line 830 of file logic/interpret_object_operator.cpp.

References _ClassConcVars, _ClassCondVars, _ConcAsserts, _CondAsserts, NLAILOGIC::CFactBase::addAssert, addPostcondition, addPrecondition, NLAILOGIC::CVarSet::addVar, assert, and size.

bool NLAISCRIPT::COperatorClass::isValid NLAILOGIC::CFactBase   [virtual]
 

Verifies if the preconditions are validated.

Definition at line 211 of file logic/interpret_object_operator.cpp.

References _Conds, NLAILOGIC::CFactBase::getAssertFacts, propagate, and res.

bool NLAISCRIPT::COperatorClass::isValidFonc NLAIAGENT::IObjectIA  
 

Definition at line 743 of file logic/interpret_object_operator.cpp.

References _CondCode, NLAISCRIPT::CCodeContext::Code, NLAIC::IBasicType::getType, NLAIC::IPointerGestion::incRef, NLAIAGENT::IObjetOp::isTrue, r, NLAIC::IPointerGestion::release, and NLAISCRIPT::CCodeContext::Stack.

sint32 NLAISCRIPT::COperatorClass::NbMsgTrigger   [inline]
 

Definition at line 255 of file interpret_object_operator.h.

References _TrigMsgPerf.

const NLAIC::IBasicType * NLAISCRIPT::COperatorClass::newInstance   const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Reimplemented from NLAISCRIPT::CAgentClass.

Definition at line 178 of file logic/interpret_object_operator.cpp.

References COperatorClass.

float NLAISCRIPT::COperatorClass::priority   const [virtual]
 

Priority of the operator.

Definition at line 450 of file logic/interpret_object_operator.cpp.

std::list< NLAILOGIC::CFact * > * NLAISCRIPT::COperatorClass::propagate std::list< NLAILOGIC::CFact * > &    [virtual]
 

Definition at line 370 of file logic/interpret_object_operator.cpp.

References _Conds, _Vars, and getAssertPos.

Referenced by isValid.

void NLAISCRIPT::COperatorClass::RegisterMessage NLAIAGENT::IMessageBase::TPerformatif   ,
const std::string &   ,
const std::string &   
 

Definition at line 881 of file logic/interpret_object_operator.cpp.

References _TrigMsgClass, _TrigMsgPerf, _TrigMsgPos, _TrigMsgVarname, getDebugString, NLAISCRIPT::CAgentClass::getInheritedStaticMemberIndex, NLAISCRIPT::CAgentClass::registerComponent, NLAIC::stringGetBuild, and NLAIAGENT::IMessageBase::TPerformatif.

void NLAISCRIPT::COperatorClass::setComment char *   
 

Sets the comment for the operator.

Definition at line 865 of file logic/interpret_object_operator.cpp.

References _Comment.

void NLAISCRIPT::COperatorClass::setGoal const NLAIAGENT::IVarName  ,
std::list< const NLAIAGENT::IVarName * > &   
[virtual]
 

Definition at line 698 of file logic/interpret_object_operator.cpp.

References _Goal, _GoalAssert, _GoalPosVar, _GoalVars, assert, NLAIC::IBasicType::clone, NLAISCRIPT::CAgentClass::getComponentIndex, NLAISCRIPT::CAgentClass::registerComponent, NLAIC::IPointerGestion::release, and NLAILOGIC::CGoal::setArgs.

void NLAISCRIPT::COperatorClass::setGoal const NLAIAGENT::CStringVarName   [virtual]
 

Sets the goal the operator tries to achieve.

Definition at line 692 of file logic/interpret_object_operator.cpp.

References _Goal, and NLAIAGENT::CStringVarName::clone.

void NLAISCRIPT::COperatorClass::setPriority float    p [inline]
 

Definition at line 243 of file interpret_object_operator.h.

References _Priority.

virtual void NLAISCRIPT::COperatorClass::setUpdateEvery sint32    cycles [inline, virtual]
 

Definition at line 233 of file interpret_object_operator.h.

References _UpdateCycles.

void NLAISCRIPT::COperatorClass::success NLAILOGIC::IBaseOperator   [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.

virtual std::list<NLAILOGIC::CFact *>* NLAISCRIPT::COperatorClass::test std::list< NLAILOGIC::CFact * > &    [inline, virtual]
 

Definition at line 101 of file interpret_object_operator.h.

NLAILOGIC::CValueSet * NLAISCRIPT::COperatorClass::unifyBackward std::list< NLAILOGIC::CFact * > &   
 

Definition at line 246 of file logic/interpret_object_operator.cpp.

References _Concs, _PosVarsConc, _Vars, getAssertPos, and NLAIC::IPointerGestion::release.

Referenced by backward.

NLAILOGIC::CValueSet * NLAISCRIPT::COperatorClass::unifyForward std::list< NLAILOGIC::CFact * > &   
 

Definition at line 285 of file logic/interpret_object_operator.cpp.

References _Conds, _PosVarsCond, _Vars, getAssertPos, and NLAIC::IPointerGestion::release.

Referenced by forward.

NLAILOGIC::CValueSet * NLAISCRIPT::COperatorClass::unifyLiaison const NLAILOGIC::CValueSet  ,
NLAILOGIC::CValueSet  ,
std::vector< sint32 > &   
 

Tries to unify an instaciation of the operator's variables with a new CFact.

Definition at line 428 of file logic/interpret_object_operator.cpp.

References NLAILOGIC::CValueSet::unify.


Member Data Documentation

std::list<const NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_BooleanConcs
 

Definition at line 144 of file interpret_object_operator.h.

Referenced by addBoolConc.

std::list<const NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_BooleanConds
 

Initialisation from the grammar.

Definition at line 143 of file interpret_object_operator.h.

Referenced by addBoolCond.

std::vector< std::list<const NLAIAGENT::IVarName *> *> NLAISCRIPT::COperatorClass::_ClassConcVars
 

Definition at line 148 of file interpret_object_operator.h.

Referenced by addFirstOrderConc, buildLogicTables, and initialiseFactBase.

std::vector< std::list<const NLAIAGENT::IVarName *> *> NLAISCRIPT::COperatorClass::_ClassCondVars
 

Definition at line 147 of file interpret_object_operator.h.

Referenced by buildLogicTables, and initialiseFactBase.

char* NLAISCRIPT::COperatorClass::_Comment [private]
 

Definition at line 59 of file interpret_object_operator.h.

Referenced by COperatorClass, setComment, and ~COperatorClass.

std::vector<const NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_ConcAsserts
 

Definition at line 146 of file interpret_object_operator.h.

Referenced by addFirstOrderConc, buildLogicTables, and initialiseFactBase.

std::vector< IOpCode *> NLAISCRIPT::COperatorClass::_ConcCode
 

Definition at line 150 of file interpret_object_operator.h.

Referenced by activatePostConditions, addCodeConc, and ~COperatorClass.

std::vector<NLAILOGIC::IBaseAssert *> NLAISCRIPT::COperatorClass::_Concs [private]
 

Pos of a precondition pattern's vars in the operator's vars table.

Definition at line 51 of file interpret_object_operator.h.

Referenced by addPostcondition, forward, getConcs, and unifyBackward.

std::vector<const NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_CondAsserts
 

Definition at line 145 of file interpret_object_operator.h.

Referenced by buildLogicTables, and initialiseFactBase.

std::vector< IOpCode *> NLAISCRIPT::COperatorClass::_CondCode
 

Definition at line 149 of file interpret_object_operator.h.

Referenced by addCodeCond, isValidFonc, and ~COperatorClass.

std::vector< NLAILOGIC::IBaseAssert *> NLAISCRIPT::COperatorClass::_Conds [private]
 

Variables of the operator.

Definition at line 48 of file interpret_object_operator.h.

Referenced by addPostcondition, addPrecondition, backward, getConds, isValid, propagate, and unifyForward.

NLAILOGIC::CFactBase* NLAISCRIPT::COperatorClass::_FactBase
 

Definition at line 152 of file interpret_object_operator.h.

Referenced by addFirstOrderCond, buildLogicTables, COperatorClass, and ~COperatorClass.

std::vector<NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_FuzzySets
 

Definition at line 155 of file interpret_object_operator.h.

Referenced by addFuzzyCond, getFuzzySets, and ~COperatorClass.

std::vector<NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_FuzzyVars
 

Definition at line 154 of file interpret_object_operator.h.

Referenced by addFuzzyCond, getFuzzyVars, and ~COperatorClass.

NLAILOGIC::CGoal* NLAISCRIPT::COperatorClass::_Goal [private]
 

Definition at line 40 of file interpret_object_operator.h.

Referenced by COperatorClass, getGoal, setGoal, and ~COperatorClass.

const NLAIAGENT::IVarName* NLAISCRIPT::COperatorClass::_GoalAssert [private]
 

Goal the operator tris to validate.

Definition at line 42 of file interpret_object_operator.h.

Referenced by setGoal.

std::vector<sint32> NLAISCRIPT::COperatorClass::_GoalPosVar [private]
 

Name of the goal's vars.

Definition at line 44 of file interpret_object_operator.h.

Referenced by getGoalVarPos, and setGoal.

std::list<const NLAIAGENT::IVarName *> NLAISCRIPT::COperatorClass::_GoalVars [private]
 

Name of the goal's assert.

Definition at line 43 of file interpret_object_operator.h.

Referenced by setGoal.

std::vector< std::vector<sint32> > NLAISCRIPT::COperatorClass::_PosVarsConc [private]
 

Postconditions asserts.

Definition at line 52 of file interpret_object_operator.h.

Referenced by addPostcondition, forward, getPosVarsConcs, and unifyBackward.

std::vector< std::vector<sint32> > NLAISCRIPT::COperatorClass::_PosVarsCond [private]
 

Preconditions asserts.

Definition at line 49 of file interpret_object_operator.h.

Referenced by addPrecondition, backward, getPosVarsConds, and unifyForward.

float NLAISCRIPT::COperatorClass::_Priority [private]
 

Definition at line 66 of file interpret_object_operator.h.

Referenced by COperatorClass, getPriority, and setPriority.

std::vector<NLAILOGIC::CGoal> NLAISCRIPT::COperatorClass::_Steps [private]
 

Description of the operator.

Definition at line 61 of file interpret_object_operator.h.

std::vector<sint32> NLAISCRIPT::COperatorClass::_StepsMode [private]
 

Definition at line 62 of file interpret_object_operator.h.

std::vector<NLAIC::CIdentType> NLAISCRIPT::COperatorClass::_TrigMsgClass [private]
 

Definition at line 55 of file interpret_object_operator.h.

Referenced by checkTriggerMsg, and RegisterMessage.

std::vector<NLAIAGENT::IMessageBase::TPerformatif> NLAISCRIPT::COperatorClass::_TrigMsgPerf [private]
 

Pos of a postcondition pattern's vars in the operator's vars table.

Definition at line 54 of file interpret_object_operator.h.

Referenced by checkTriggerMsg, NbMsgTrigger, and RegisterMessage.

std::vector<sint32> NLAISCRIPT::COperatorClass::_TrigMsgPos [private]
 

Definition at line 57 of file interpret_object_operator.h.

Referenced by checkTriggerMsg, and RegisterMessage.

std::vector<std::string> NLAISCRIPT::COperatorClass::_TrigMsgVarname [private]
 

Definition at line 56 of file interpret_object_operator.h.

Referenced by RegisterMessage.

sint32 NLAISCRIPT::COperatorClass::_UpdateCycles [private]
 

Definition at line 64 of file interpret_object_operator.h.

Referenced by COperatorClass, getUpdateEvery, and setUpdateEvery.

std::vector<NLAILOGIC::IBaseVar *> NLAISCRIPT::COperatorClass::_Vars [private]
 

Pos of the goal's var in the operato's static components.

Definition at line 46 of file interpret_object_operator.h.

Referenced by compileFactPattern, getDebugString, getVarPos, getVars, propagate, unifyBackward, and unifyForward.

const NLAIC::CIdentType NLAISCRIPT::COperatorClass::IdOperatorClass [static]
 


The documentation for this class was generated from the following files: