NLAISCRIPT::IConstraint Class Reference

#include <constraint.h>

Inheritance diagram for NLAISCRIPT::IConstraint:

NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAISCRIPT::CConstraintChkMethodeType NLAISCRIPT::CConstraintDebug NLAISCRIPT::CConstraintMethode NLAISCRIPT::IOpType NLAISCRIPT::CConstraintFindRun NLAISCRIPT::CConstraintStackComp NLAISCRIPT::COperandAnyObject NLAISCRIPT::COperandListType NLAISCRIPT::COperandSimple NLAISCRIPT::COperandSimpleListOr NLAISCRIPT::COperandUnknown NLAISCRIPT::COperandVoid NLAISCRIPT::COperationType NLAISCRIPT::COperationTypeGD

Detailed Description

Class IConstraint.

This class is a abstract class used for all back prossing work needed for the compiler. Earlier than do multy passing parssing, we chose to push all expression needed to be clarify in a list of IConstraint where its can auto-call them self.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 129 of file constraint.h.

NLMISC::IStreamable method.

virtual std::string getClassName ()
virtual void serial (NLMISC::IStream &) throw (NLMISC::EStream)

Public Types

enum  ConstraintTypeEnum {
  constraintMethode, constraintChkMethodeType, operandSimple, operandSimpleListOr,
  operandAnyObject, operandVoid, operandUnknown, operationType,
  operationTypeGD, operandListType, constraintStackComp, constraintDebug,
  constraintFindRun
}

Public Member Functions

void addConstraint (IConstraint *c)
 Add a constraint dependency. We add a constraint dependency when a given constraint want the result of an other constraint.

virtual void addIndex (int n, CCodeBrancheRun *opcodePtr)=0
virtual const IConstraintclone () const=0
 Get a clone pointer memory.

sint32 decRef ()
 Decrement the reference of an object.

virtual bool dependOn (const IConstraint *) const=0
 If this constraint depond on other constraint.

virtual int getColone () const=0
 get the colone of the expression that it have to be resolve by constraint in the code source.

virtual const NLAIC::CIdentTypegetConstraintTypeOf ()=0
 Type of the expression that it have to be resolve by constraint.

virtual void getDebugString (std::string &t) const
virtual void getError (char *) const=0
 get an error string when the constraint is'nt stisfied.

virtual const char * getInfo ()=0
 Get a string info.

virtual int getLine () const=0
 get the line of the expression that it have to be resolve by constraint in the code source.

const sint32getRef () const
 get the refence count.

virtual ConstraintTypeEnum getTypeOfClass () const=0
 get the type of class. the type must be in the ConstraintTypeEnum enumeration.

 IConstraint ()
void incRef ()
 Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list.

virtual bool operator== (const IConstraint &) const=0
void popConstraint (IConstraint *c)
 pop the last constaint dependency.

virtual void release ()
 Release allow to release the pointer. The last release when the _Ref is nul delete the object.

virtual void run (IConstraint *)=0
 Run with a IConstraint dependency.

virtual void run (CCompilateur &)=0
 Run with a CCompilateur dependency.

void runConnexcion ()
 When a constraint is resoved,we call all dependency.

virtual bool satisfied ()=0
 If the constraint is resolved.

virtual ~IConstraint ()

Private Attributes

std::list< IConstraint * > _ConstraintList
 List of constraint dependency. When constraint is resolve it call all constraint contain in this list and run its.


Member Enumeration Documentation

enum NLAISCRIPT::IConstraint::ConstraintTypeEnum
 

This enum define all IConstraint class type defined. That is'nt very clean because it is'nt very objects way to do jobs but that make easy to make job with out make heavy the hisarchy class. Because the best way is to derive class form NLAIC::IBasicInterface but we have to register class in class factory, define a save an load ..., in short make a lot of work for an internal work. If later peopole need this kind of class we'll clean it.

Enumeration values:
constraintMethode  Class CConstraintMethode.
constraintChkMethodeType  Class CConstraintChkMethodeType.
operandSimple  Class COperandSimple.
operandSimpleListOr  class COperandSimpleListOr
operandAnyObject  Any class!!!!
operandVoid  Class COperandVoid.
operandUnknown  Class COperandUnknown.
operationType  Class COperationType.
operationTypeGD  Class COperationTypeGD.
operandListType  Class COperandListType.
constraintStackComp  Class CConstraintStackComp.
constraintDebug  Class CConstraintDebug.
constraintFindRun  Class CConstraintFindRun.

Definition at line 138 of file constraint.h.


Constructor & Destructor Documentation

NLAISCRIPT::IConstraint::IConstraint  )  [inline]
 

Definition at line 173 of file constraint.h.

00173 {}

virtual NLAISCRIPT::IConstraint::~IConstraint  )  [inline, virtual]
 

Definition at line 224 of file constraint.h.

00225                 {
00226                 }


Member Function Documentation

void NLAISCRIPT::IConstraint::addConstraint IConstraint c  )  [inline]
 

Add a constraint dependency. We add a constraint dependency when a given constraint want the result of an other constraint.

Definition at line 207 of file constraint.h.

References _ConstraintList.

Referenced by NLAISCRIPT::COperandUnknown::COperandUnknown().

00208                 {
00209                         _ConstraintList.push_back(c);
00210                 }

virtual void NLAISCRIPT::IConstraint::addIndex int  n,
CCodeBrancheRun opcodePtr
[pure virtual]
 

Add a op-code dependency. the integer n is the index of the opcode in in the opcodePtr pointer.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintChkMethodeType, and NLAISCRIPT::IOpType.

virtual const IConstraint* NLAISCRIPT::IConstraint::clone  )  const [pure virtual]
 

Get a clone pointer memory.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintFindRun, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::CFindRunMsg::CFindRunMsg(), NLAISCRIPT::COperandUnknown::clone(), NLAISCRIPT::CMethodeName::CMethodeName(), and NLAISCRIPT::CParam::push().

sint32 NLAIC::IPointerGestion::decRef  )  [inline, inherited]
 

Decrement the reference of an object.

Definition at line 93 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref, and sint32.

Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().

00094                 {
00095                         return --_Ref;
00096                 }

virtual bool NLAISCRIPT::IConstraint::dependOn const IConstraint  )  const [pure virtual]
 

If this constraint depond on other constraint.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::COperandListType::dependOn(), NLAISCRIPT::COperationTypeGD::dependOn(), NLAISCRIPT::COperationType::dependOn(), NLAISCRIPT::COperandUnknown::dependOn(), and NLAISCRIPT::CConstraintChkMethodeType::dependOn().

virtual std::string NLAIC::IPointerGestion::getClassName  )  [inline, virtual, inherited]
 

Implements NLMISC::IClassable.

Reimplemented in NLAIC::CIdentType.

Definition at line 116 of file abstract_interface.h.

Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().

00117                 {
00118                         return std::string("<unnamed>");
00119                 }

virtual int NLAISCRIPT::IConstraint::getColone  )  const [pure virtual]
 

get the colone of the expression that it have to be resolve by constraint in the code source.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, and NLAISCRIPT::IOpType.

Referenced by NLAISCRIPT::CCompilateur::errorMethodConstraint().

virtual const NLAIC::CIdentType* NLAISCRIPT::IConstraint::getConstraintTypeOf  )  [pure virtual]
 

Type of the expression that it have to be resolve by constraint.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::CCompilateur::affectation(), NLAISCRIPT::IOpType::eval(), NLAISCRIPT::IOpType::evalParam(), NLAISCRIPT::COperationTypeGD::getConstraintTypeOf(), NLAISCRIPT::COperationType::getConstraintTypeOf(), NLAISCRIPT::COperandUnknown::getConstraintTypeOf(), NLAISCRIPT::CConstraintMethode::getConstraintTypeOf(), NLAISCRIPT::CObjectUnknown::getDebugString(), NLAISCRIPT::CObjectUnknown::getType(), NLAISCRIPT::CAgentClass::isMessageFunc(), NLAISCRIPT::CParam::operator==(), NLAISCRIPT::CCompilateur::processingVar(), NLAISCRIPT::COperandListType::run(), NLAISCRIPT::COperandUnknown::run(), NLAISCRIPT::CConstraintStackComp::run(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), and NLAISCRIPT::COperationTypeGD::satisfied().

virtual void NLAIC::IPointerGestion::getDebugString std::string &  t  )  const [inline, virtual, inherited]
 

Reimplemented in NLAILINK::IOTrace, NLAIAGENT::CActor, NLAIAGENT::CActorScript, NLAIAGENT::IAgent, NLAIAGENT::VectorType, NLAIAGENT::DigitalType, NLAIAGENT::BorneDigitalType, NLAIAGENT::DDigitalType, NLAIAGENT::BorneDDigitalType, NLAIAGENT::IntegerType, NLAIAGENT::ShortIntegerType, NLAIAGENT::CharType, NLAIAGENT::UInt8Type, NLAIAGENT::UInt16Type, NLAIAGENT::UInt32Type, NLAIAGENT::UInt64Type, NLAIAGENT::CLocalAgentMail, NLAIAGENT::CStringType, NLAIAGENT::CPairType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::CProxyAgentMail, NLAIAGENT::CAgentScript, NLAIAGENT::CStringVarName, NLAIAGENT::CIndexedVarName, NLAIAGENT::CAgentManagerTimer, NLAIAGENT::CLibTimerManager, NLAIAGENT::CAgentWatchTimer, NLAIAGENT::CAgentTimerHandle, NLAILOGIC::CGoalStack, NLAIAGENT::CLocWordNumRef, NLAIAGENT::IListBasicManager, NLAIAGENT::CLocalMailBox, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGetValueMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::CMessageGroup, NLAIAGENT::CNotifyParentScript, NLAIAGENT::COnChangeMsg, NLAIAGENT::CSetValueMsg, NLAIAGENT::CObjectIdent, NLAIAGENT::CObjectType, NLAIAGENT::CAgentOperation, NLAIAGENT::CHashTimerManager, NLAIAGENT::CVolatilMemmory, NLAIC::IBasicType, NLAIC::CSelfClassFactory, NLAIC::CBinaryType, NLAICHARACTER::CCharacterChild, NLAIFUZZY::CSimpleFuzzyCond, NLAIFUZZY::CFuzzyFact, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::CFuzzyRuleSet, NLAIFUZZY::CFuzzyInterval, NLAIFUZZY::CRightFuzzySet, NLAIFUZZY::CTriangleFuzzySet, NLAIFUZZY::CTrapezeFuzzySet, NLAIFUZZY::CLeftFuzzySet, NLAIFUZZY::FuzzyType, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CBoolAssert, NLAILOGIC::CBoolOperator, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CFact, NLAILOGIC::CFactBase, NLAILOGIC::CFirstOrderAssert, NLAILOGIC::CFirstOrderOperator, NLAIAGENT::CFsmScript, NLAIAGENT::CSeqFsmScript, NLAILOGIC::CGoal, NLAILOGIC::CInternalGoal, NLAILOGIC::CGoalStack, NLAISCRIPT::COperatorClass, NLAIAGENT::COperatorScript, NLAILOGIC::CRule, NLAILOGIC::CValueSet, NLAILOGIC::CVar, NLAILOGIC::CVarSet, NLAILOGIC::CFactPattern, NLAISCRIPT::CCodeContext, NLAISCRIPT::CCodeBrancheRun, NLAISCRIPT::CContextDebug, NLAISCRIPT::CActorClass, NLAISCRIPT::CFsmClass, NLAISCRIPT::CParam, NLAISCRIPT::CMethodeName, NLAISCRIPT::CClassInterpretFactory, NLAISCRIPT::CAgentClass, NLAISCRIPT::CManagerClass, NLAISCRIPT::CMessageClass, NLAISCRIPT::CCallPrint, NLAISCRIPT::IBlock, NLAISCRIPT::ILoadObject, NLAISCRIPT::CObjectUnknown, NLAISCRIPT::CTellOpCode, NLAISCRIPT::CLdbOpCode, NLAISCRIPT::CLdbMemberOpCode, NLAISCRIPT::CLdbMemberiOpCode, NLAISCRIPT::CLdbStackMemberiOpCode, NLAISCRIPT::CLdbHeapMemberiOpCode, NLAISCRIPT::CScriptDebugSourceFile, NLAISCRIPT::CScriptDebugSourceMemory, NLAISCRIPT::CLibTest, NLAISCRIPT::CVarPStack, NLAISCRIPT::CVarPStackParam, and NLAISCRIPT::IOpRunCode.

Definition at line 104 of file abstract_interface.h.

References t.

00105                 {
00106                         t += "None";
00107                 }

virtual void NLAISCRIPT::IConstraint::getError char *   )  const [pure virtual]
 

get an error string when the constraint is'nt stisfied.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, and NLAISCRIPT::IOpType.

Referenced by NLAISCRIPT::CCompilateur::errorMethodConstraint().

virtual const char* NLAISCRIPT::IConstraint::getInfo  )  [pure virtual]
 

Get a string info.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::COperandUnknown::COperandUnknown(), NLAISCRIPT::COperationType::COperationType(), NLAISCRIPT::COperationTypeGD::COperationTypeGD(), and NLAISCRIPT::COperationTypeGD::getInfo().

virtual int NLAISCRIPT::IConstraint::getLine  )  const [pure virtual]
 

get the line of the expression that it have to be resolve by constraint in the code source.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, and NLAISCRIPT::IOpType.

Referenced by NLAISCRIPT::CCompilateur::errorMethodConstraint().

const sint32& NLAIC::IPointerGestion::getRef  )  const [inline, inherited]
 

get the refence count.

Definition at line 99 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref, and sint32.

Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().

00100                 {
00101                         return _Ref;
00102                 }

virtual ConstraintTypeEnum NLAISCRIPT::IConstraint::getTypeOfClass  )  const [pure virtual]
 

get the type of class. the type must be in the ConstraintTypeEnum enumeration.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintFindRun, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::IOpType::eval(), NLAISCRIPT::COperandListType::operator==(), NLAISCRIPT::COperationTypeGD::operator==(), NLAISCRIPT::COperationType::operator==(), NLAISCRIPT::COperandUnknown::operator==(), NLAISCRIPT::COperandSimpleListOr::operator==(), NLAISCRIPT::COperandSimple::operator==(), NLAISCRIPT::COperandVoid::operator==(), NLAISCRIPT::CConstraintChkMethodeType::operator==(), NLAISCRIPT::CConstraintStackComp::operator==(), NLAISCRIPT::CConstraintMethode::operator==(), and NLAISCRIPT::CCompilateur::typeOfMethod().

void NLAIC::IPointerGestion::incRef  )  [inline, inherited]
 

Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list.

Definition at line 80 of file abstract_interface.h.

References NLAIC::IPointerGestion::_Ref.

Referenced by NLAIAGENT::CSeqFsmScript::activate(), NLAILOGIC::CFactBase::addAssert(), NLAIAGENT::IAgentComposite::addChild(), NLAILOGIC::IBaseAssert::addInput(), NLAILOGIC::CBoolOperator::addPostcondition(), NLAILOGIC::CBoolOperator::addPrecondition(), NLAILOGIC::CInternalGoal::addPredecessor(), NLAILOGIC::CGoal::addPredecessor(), NLAIFUZZY::CFuzzyVar::addSet(), NLAISCRIPT::CCompilateur::affectation(), NLAILOGIC::CFact::asValueSet(), NLAIAGENT::CAgentWatchTimer::attach(), NLAISCRIPT::CCompilateur::buildObject(), NLAISCRIPT::CAgentClass::buildVMethode(), NLAIAGENT::CAgentOperation::CAgentOperation(), NLAIAGENT::CAgentTimerHandle::CAgentTimerHandle(), NLAISCRIPT::CCompilateur::callFunction(), NLAISCRIPT::CClassInterpretFactory::CClassInterpretFactory(), NLAISCRIPT::CCodeBrancheRunDebug::CCodeBrancheRunDebug(), NLAISCRIPT::CCompilateur::CCompilateur(), NLAISCRIPT::CFactorType::CFactorType(), NLAISCRIPT::CFunctionTag::CFunctionTag(), NLAIAGENT::COperatorScript::checkTrigMsg(), NLAIC::CIdentType::CIdentType(), NLAIAGENT::CIdMethod::CIdMethod(), NLAIAGENT::CKeyObject::CKeyObject(), NLAISCRIPT::CFindRunMsg::clone(), NLAISCRIPT::CObjectUnknown::clone(), NLAISCRIPT::CConstraintStackComp::clone(), NLAISCRIPT::CConstraintFindRun::clone(), NLAISCRIPT::CConstraintMethode::clone(), NLAILINK::IOTrace::clone(), NLAISCRIPT::CMethodeName::CMethodeName(), NLAISCRIPT::CAgentClass::CMethodType::CMethodType(), NLAISCRIPT::CObjectUnknown::CObjectUnknown(), NLAIAGENT::CPairType::CPairType(), NLAISCRIPT::CAgentClass::createComponents(), NLAILOGIC::CValueSet::CValueSet(), NLAILOGIC::CVar::CVar(), NLAILOGIC::CValueSet::forward(), NLAIAGENT::IMessageBase::IMessageBase(), NLAIAGENT::CAgentScript::initAgentScript(), NLAISCRIPT::CCompilateur::initMessageManager(), NLAISCRIPT::COperatorClass::isValidFonc(), NLAILOGIC::CValueSet::load(), NLAILOGIC::IBaseOperator::load(), NLAISCRIPT::CAgentClass::load(), NLAISCRIPT::CComponent::load(), NLAISCRIPT::CMethodeName::load(), NLAIAGENT::CVectorGroupType::operator+(), NLAIAGENT::CGroupType::operator+(), NLAISCRIPT::CPramContainer::operator+=(), NLAIAGENT::IMessageBase::operator=(), NLAIAGENT::CKeyObject::operator=(), NLAISCRIPT::CAgentClass::CMethodType::operator=(), NLAISCRIPT::CFunctionTag::operator=(), NLAIAGENT::CIdMethod::operator=(), NLAISCRIPT::CCompilateur::processingVar(), NLAIAGENT::CAgentScript::processMessages(), NLAISCRIPT::CCompilateur::pushParamExpression(), NLAISCRIPT::CConstraintFindRun::run(), NLAIAGENT::IBasicAgent::run(), NLAIAGENT::CAgentScript::runAskGetValue(), NLAIAGENT::IAgent::runChildren(), NLAIAGENT::CMainAgentScript::runExec(), NLAIAGENT::CAgentScript::runInitComponent(), NLAIAGENT::CAgentOperation::runMethodBase(), NLAIAGENT::CAgentWatchTimer::runMethodBase(), NLAIAGENT::CAgentScript::runMethodBase(), NLAIAGENT::CActorScript::runMethodBase(), NLAIAGENT::IMessageBase::runMethodeMember(), NLAIAGENT::IBaseGroupType::runMethodeMember(), NLAIAGENT::IBasicAgent::runMethodeMember(), NLAISCRIPT::CLdbRefOpCode::runOpCode(), NLAISCRIPT::CLdbMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode(), NLAISCRIPT::CCallStackMethodi::runOpCode(), NLAISCRIPT::CCallStackNewMethodi::runOpCode(), NLAISCRIPT::CLibStackNewMemberMethod::runOpCode(), NLAISCRIPT::CLibStackMemberMethod::runOpCode(), NLAISCRIPT::CAffOpCode::runOpCode(), NLAISCRIPT::CAddParamNameDebug::runOpCode(), NLAISCRIPT::CAffOpCodeDebug::runOpCode(), NLAISCRIPT::CAffHeapMemberiOpCode::runOpCode(), NLAISCRIPT::CAffMemberOpCode::runOpCode(), NLAISCRIPT::CAffMemberiOpCode::runOpCode(), NLAIAGENT::CAgentScript::runTellComponent(), NLAIAGENT::CAgentScript::runTellSetValue(), NLAISCRIPT::CMethodContextDebug::saveContext(), NLAISCRIPT::CMethodContext::saveContext(), NLAIAGENT::CAgentScript::sendBroadCast(), NLAIAGENT::IListManager::sendMessage(), NLAIAGENT::CAgentScript::sendMethodCompoment(), NLAIAGENT::CVolatilMemmory::sendUpdateMessage(), NLAISCRIPT::CFactorType::set(), NLAILOGIC::IBaseOperator::setGoal(), NLAISCRIPT::CCompilateur::setImediateVarNill(), NLAISCRIPT::CCompilateur::setMethodVar(), NLAISCRIPT::CCompilateur::setParamVarName(), NLAISCRIPT::CFunctionTag::setTypeObject(), NLAILOGIC::CVar::setValue(), NLAILOGIC::CValueSet::setValue(), NLAIAGENT::CAgentWatchTimer::tellBroker(), NLAISCRIPT::CCompilateur::typeOfMethod(), NLAILOGIC::CVar::unify(), NLAILOGIC::CValueSet::unify(), and NLAIAGENT::CAgentOperation::update().

00081                 {
00082                         _Ref ++;
00083                 }

virtual bool NLAISCRIPT::IConstraint::operator== const IConstraint  )  const [pure virtual]
 

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

void NLAISCRIPT::IConstraint::popConstraint IConstraint c  ) 
 

pop the last constaint dependency.

Definition at line 32 of file constraint.cpp.

References _ConstraintList.

Referenced by NLAISCRIPT::COperandUnknown::~COperandUnknown().

00033         {
00034                 std::list<IConstraint *>::iterator it = _ConstraintList.begin();
00035                 while(it != _ConstraintList.end())
00036                 {                       
00037                         if(*it == c)
00038                         {
00039                                 _ConstraintList.erase(it);
00040                                 break;
00041                         }
00042                         it ++ ;
00043                 }               
00044         }

virtual void NLAIC::IPointerGestion::release void   )  [inline, virtual, inherited]
 

Release allow to release the pointer. The last release when the _Ref is nul delete the object.

Definition at line 86 of file abstract_interface.h.

References NLAIC::IPointerGestion::decRef().

Referenced by NLAIAGENT::CSeqFsmScript::activate(), NLAISCRIPT::CAgentClass::addBrancheCode(), NLAISCRIPT::CConstraintDebug::addIndex(), NLAISCRIPT::CCompilateur::affectation(), NLAISCRIPT::CCompilateur::affectationMember(), NLAISCRIPT::COperatorClass::backward(), NLAILOGIC::CFirstOrderOperator::backward(), NLAILOGIC::CFirstOrderAssert::backward(), NLAISCRIPT::CCompilateur::buildObject(), NLAILINK::buildScript(), NLAISCRIPT::CCompilateur::callFunction(), NLAIC::CIdentType::CIdentType(), NLAISCRIPT::CCompilateur::clean(), NLAISCRIPT::CParam::clear(), NLAIAGENT::CVectorGroupType::clear(), NLAIAGENT::CGroupType::clear(), NLAIAGENT::CVolatilMemmory::CVolatilMemmory(), NLAISCRIPT::CFactorType::del(), NLAIAGENT::IAgentComposite::deleteListe(), NLAIPYSERVER::endPythonInterface(), NLAIAGENT::CVectorGroupType::erase(), NLAIAGENT::CGroupType::erase(), NLAIAGENT::CVectorGroupType::eraseAll(), NLAIAGENT::CGroupType::eraseAll(), NLAISCRIPT::CCompilateur::errorMethodConstraint(), NLAISCRIPT::CCompilateur::errorTypeConstraint(), NLAISCRIPT::CCompilateur::findMethode(), NLAISCRIPT::COperatorClass::forward(), NLAILOGIC::CFirstOrderOperator::forward(), NLAIAGENT::CComponentHandle::getComponent(), NLAIAGENT::COperatorScript::getDebugString(), NLAIAGENT::CAgentScript::getDebugString(), NLAILOGIC::IBaseOperator::IBaseOperator(), NLAISCRIPT::CCompilateur::ifInterrogation(), NLAISCRIPT::CCompilateur::ifInterrogationEnd(), NLAILOGIC::CFactPattern::init(), NLAILOGIC::CRule::init(), NLAIFUZZY::CTrapezeFuzzySet::init(), NLAIFUZZY::CLeftFuzzySet::init(), NLAIFUZZY::CTriangleFuzzySet::init(), NLAIFUZZY::CRightFuzzySet::init(), NLAIFUZZY::CFuzzyInterval::init(), NLAIFUZZY::CFuzzyRule::init(), NLAIFUZZY::CSimpleFuzzyCond::init(), NLAISCRIPT::CCompilateur::interrogationEnd(), NLAISCRIPT::COperatorClass::isValidFonc(), NLAIAGENT::IAgent::Kill(), NLAILOGIC::CVar::load(), NLAILOGIC::CValueSet::load(), NLAISCRIPT::CLdbOpCode::load(), NLAISCRIPT::CLibCallMethodi::load(), NLAISCRIPT::CLibCallInheritedMethod::load(), NLAISCRIPT::CLibCallMethod::load(), NLAISCRIPT::CLdbNewOpCode::load(), NLAISCRIPT::CAddParamNameDebug::load(), NLAISCRIPT::CFindRunMsg::load(), NLAIAGENT::IListBasicManager::load(), NLAIAGENT::CVectorGroupType::load(), NLAIAGENT::CGroupType::load(), NLAIAGENT::CAgentScript::load(), NLAIAGENT::CStringType::load(), NLAIAGENT::CLocalAgentMail::load(), NLAISCRIPT::CMethodContextDebug::loadContext(), NLAISCRIPT::CCompilateur::onEndClass(), NLAIAGENT::CLocalMailBox::onKill(), NLAIAGENT::IAgent::onKill(), NLAIAGENT::CLocalAgentMail::onKill(), NLAIAGENT::CVectorGroupType::operator-(), NLAIAGENT::CGroupType::operator-(), NLAIAGENT::CKeyObject::operator=(), NLAISCRIPT::CFunctionTag::operator=(), NLAIAGENT::CIdMethod::operator=(), NLAISCRIPT::CCompilateur::PrivateError(), NLAISCRIPT::CCompilateur::processingVar(), NLAIAGENT::CAgentScript::processMessages(), NLAIAGENT::IRefrence::refLoadStream(), NLAISCRIPT::CCompilateur::registerMethod(), NLAIAGENT::IAgentComposite::removeChild(), NLAILOGIC::CFirstOrderAssert::removeFact(), NLAISCRIPT::CConstraintStackComp::run(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), NLAIAGENT::IBasicAgent::run(), NLAIAGENT::CAgentScript::runInitComponent(), NLAIAGENT::CVolatilMemmory::runMessage(), NLAIAGENT::CAgentOperation::runMethodBase(), NLAISCRIPT::CCompilateur::runMethodConstraint(), NLAILOGIC::CInternalGoal::runMethodeMember(), NLAILOGIC::CGoal::runMethodeMember(), NLAILOGIC::CFact::runMethodeMember(), NLAIAGENT::IObjectIA::runMethodeMember(), NLAISCRIPT::CLdbStackMemberiOpCode::runOpCode(), NLAISCRIPT::CCallStackMethodi::runOpCode(), NLAISCRIPT::CLibHeapMemberMethod::runOpCode(), NLAISCRIPT::CAffOpCode::runOpCode(), NLAISCRIPT::CJFalseOpCode::runOpCode(), NLAISCRIPT::CAffOpCodeDebug::runOpCode(), NLAISCRIPT::CDiffOpCode::runOpCode(), NLAISCRIPT::CInfEqOpCode::runOpCode(), NLAISCRIPT::CSupEqOpCode::runOpCode(), NLAISCRIPT::CEqOpCode::runOpCode(), NLAISCRIPT::CInfOpCode::runOpCode(), NLAISCRIPT::CSupOpCode::runOpCode(), NLAISCRIPT::CMulOpCode::runOpCode(), NLAISCRIPT::CDivOpCode::runOpCode(), NLAISCRIPT::CSubOpCode::runOpCode(), NLAISCRIPT::CAddOpCode::runOpCode(), NLAISCRIPT::CNegOpCode::runOpCode(), NLAIAGENT::CAgentScript::runTellParentNotify(), NLAISCRIPT::CCompilateur::runTypeConstraint(), NLAIAGENT::CHashTimerManager::sendMessage(), NLAIAGENT::CVolatilMemmory::sendMessage(), NLAIAGENT::CLocalMailBox::sendMessage(), NLAIAGENT::IListManager::sendMessage(), NLAIAGENT::CAgentTimerHandle::sendMessage(), NLAIAGENT::CAgentScript::sendMessage(), NLAIAGENT::CAgentScript::sendMethod(), NLAISCRIPT::COperandSimple::serial(), NLAISCRIPT::CObjectUnknown::setBaseType(), NLAISCRIPT::CCompilateur::setChaineVar(), NLAISCRIPT::CClassInterpretFactory::setClass(), NLAIC::CSelfClassFactory::setClass(), NLAISCRIPT::IClassInterpret::setClassName(), NLAISCRIPT::CObjectUnknown::setClassType(), NLAIAGENT::IMessageBase::setContinuation(), NLAILOGIC::IBaseOperator::setGoal(), NLAISCRIPT::COperatorClass::setGoal(), NLAISCRIPT::CCompilateur::setImediateVar(), NLAISCRIPT::CCompilateur::setImediateVarNill(), NLAISCRIPT::CParam::setInfo(), NLAISCRIPT::CAgentClass::setInheritanceName(), NLAISCRIPT::CCompilateur::setListVar(), NLAIAGENT::IMessageBase::setMessageGroup(), NLAISCRIPT::CCompilateur::setMethodVar(), NLAILOGIC::IBaseVar::setName(), NLAIAGENT::CAgentOperation::setName(), NLAISCRIPT::CMethodeName::setName(), NLAIAGENT::IRefrence::setNumRef(), NLAISCRIPT::CConstraintFindRun::setOpCode(), NLAISCRIPT::CConstraintMethode::setOpCode(), NLAISCRIPT::CCompilateur::setPerformative(), NLAILOGIC::CInternalGoal::setProperty(), NLAIAGENT::IMessageBase::setReceiver(), NLAIAGENT::IMessageBase::setSender(), NLAILOGIC::CValueSet::setSize(), NLAISCRIPT::CCompilateur::setStackVar(), NLAIAGENT::CMessageScript::setStaticMember(), NLAIAGENT::CAgentScript::setStaticMember(), NLAISCRIPT::IClassInterpret::setType(), NLAISCRIPT::CFunctionTag::setTypeObject(), NLAISCRIPT::CMethodeName::setTypeOfMethode(), NLAILOGIC::CVar::setValue(), NLAIAGENT::CAgentOperation::setValue(), NLAIAGENT::IAgentInput::setValue(), NLAILOGIC::CValueSet::unify(), NLAISCRIPT::COperatorClass::unifyBackward(), NLAILOGIC::CFirstOrderOperator::unifyBackward(), NLAISCRIPT::COperatorClass::unifyForward(), NLAILOGIC::CFirstOrderOperator::unifyForward(), NLAILOGIC::CRule::unifyLiaisonBack(), NLAISCRIPT::CAddParamNameDebug::~CAddParamNameDebug(), NLAISCRIPT::CAgentClass::~CAgentClass(), NLAIAGENT::CAgentOperation::~CAgentOperation(), NLAIAGENT::CAgentScript::~CAgentScript(), NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle(), NLAIAGENT::CAgentWatchTimer::~CAgentWatchTimer(), NLAISCRIPT::CClassInterpretFactory::~CClassInterpretFactory(), NLAISCRIPT::CCodeBrancheRunDebug::~CCodeBrancheRunDebug(), NLAISCRIPT::CCompilateur::~CCompilateur(), NLAIAGENT::CComponentHandle::~CComponentHandle(), NLAISCRIPT::CConstraintChkMethodeType::~CConstraintChkMethodeType(), NLAISCRIPT::CConstraintMethode::~CConstraintMethode(), NLAISCRIPT::CConstraintStackComp::~CConstraintStackComp(), NLAILOGIC::CFact::~CFact(), NLAISCRIPT::CFindRunMsg::~CFindRunMsg(), NLAILOGIC::CFirstOrderAssert::~CFirstOrderAssert(), NLAISCRIPT::CFunctionTag::~CFunctionTag(), NLAIC::CIdentType::~CIdentType(), NLAIAGENT::CIdMethod::~CIdMethod(), NLAILOGIC::CInternalGoal::~CInternalGoal(), NLAIAGENT::CKeyObject::~CKeyObject(), NLAISCRIPT::CLdbNewOpCode::~CLdbNewOpCode(), NLAISCRIPT::CLdbOpCode::~CLdbOpCode(), NLAISCRIPT::CLibCallInheritedMethod::~CLibCallInheritedMethod(), NLAISCRIPT::CLibCallMethod::~CLibCallMethod(), NLAISCRIPT::CLibCallMethodi::~CLibCallMethodi(), NLAIAGENT::CLocalMailBox::~CLocalMailBox(), NLAIAGENT::CMainAgentScript::~CMainAgentScript(), NLAISCRIPT::CLibTest::CMethodCall::~CMethodCall(), NLAIAGENT::CAgentScript::CMethodCall::~CMethodCall(), NLAISCRIPT::CMethodeName::~CMethodeName(), NLAISCRIPT::CAgentClass::CMethodType::~CMethodType(), NLAISCRIPT::CObjectUnknown::~CObjectUnknown(), NLAISCRIPT::COperandSimple::~COperandSimple(), NLAISCRIPT::COperandUnknown::~COperandUnknown(), NLAISCRIPT::COperationType::~COperationType(), NLAISCRIPT::COperationTypeGD::~COperationTypeGD(), NLAISCRIPT::COperatorClass::~COperatorClass(), NLAIAGENT::CPairType::~CPairType(), NLAIC::CSelfClassFactory::~CSelfClassFactory(), NLAIAGENT::CStringType::~CStringType(), NLAILOGIC::CValueSet::~CValueSet(), NLAILOGIC::CVar::~CVar(), NLAIAGENT::CVolatilMemmory::~CVolatilMemmory(), NLAIAGENT::IAgentInput::~IAgentInput(), NLAILOGIC::IBaseAssert::~IBaseAssert(), NLAILOGIC::IBaseOperator::~IBaseOperator(), NLAILOGIC::IBaseVar::~IBaseVar(), NLAIAGENT::IBasicAgent::~IBasicAgent(), NLAISCRIPT::IBlock::~IBlock(), NLAISCRIPT::IClassInterpret::~IClassInterpret(), NLAILOGIC::IGoal::~IGoal(), NLAIAGENT::IListBasicManager::~IListBasicManager(), NLAIAGENT::IMessageBase::~IMessageBase(), NLAIAGENT::IRefrence::~IRefrence(), and NLAICHARACTER::IZone::~IZone().

00087                 {
00088                         if(decRef() == 0) 
00089                                         delete this;
00090                 }

virtual void NLAISCRIPT::IConstraint::run IConstraint  )  [pure virtual]
 

Run with a IConstraint dependency.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::IOpType, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, and NLAISCRIPT::COperationTypeGD.

virtual void NLAISCRIPT::IConstraint::run CCompilateur  )  [pure virtual]
 

Run with a CCompilateur dependency.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintFindRun, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::IOpType, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::COperandUnknown::run(), NLAISCRIPT::CConstraintChkMethodeType::run(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), runConnexcion(), NLAISCRIPT::CCompilateur::runMethodConstraint(), NLAISCRIPT::CCompilateur::runTypeConstraint(), NLAISCRIPT::CConstraintFindRun::setOpCode(), and NLAISCRIPT::CConstraintMethode::setOpCode().

void NLAISCRIPT::IConstraint::runConnexcion  )  [inline]
 

When a constraint is resoved,we call all dependency.

Definition at line 214 of file constraint.h.

References _ConstraintList, and run().

Referenced by NLAISCRIPT::CConstraintChkMethodeType::run(), NLAISCRIPT::CConstraintFindRun::setOpCode(), and NLAISCRIPT::CConstraintMethode::setOpCode().

00215                 {
00216                         while(_ConstraintList.size())
00217                         {
00218                                 IConstraint *a = _ConstraintList.back();
00219                                 _ConstraintList.pop_back();
00220                                 a->run(this);
00221                         }               
00222                 }

virtual bool NLAISCRIPT::IConstraint::satisfied  )  [pure virtual]
 

If the constraint is resolved.

Implemented in NLAISCRIPT::CConstraintMethode, NLAISCRIPT::CConstraintDebug, NLAISCRIPT::CConstraintStackComp, NLAISCRIPT::CConstraintChkMethodeType, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Referenced by NLAISCRIPT::CCompilateur::affectation(), NLAISCRIPT::CCompilateur::errorTypeConstraint(), NLAISCRIPT::CCompilateur::processingVar(), NLAISCRIPT::CCompilateur::pushParamExpression(), NLAISCRIPT::COperandListType::run(), NLAISCRIPT::CConstraintStackComp::run(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), NLAISCRIPT::CCompilateur::runMethodConstraint(), NLAISCRIPT::CCompilateur::runTypeConstraint(), NLAISCRIPT::COperationTypeGD::satisfied(), and NLAISCRIPT::CCompilateur::typeOfMethod().

virtual void NLAIC::IPointerGestion::serial NLMISC::IStream  )  throw (NLMISC::EStream) [inline, virtual, inherited]
 

Implements NLMISC::IStreamable.

Reimplemented in NLAIC::CIdentType, NLAIC::IBasicInterface, NLAISCRIPT::COperandVoid, NLAISCRIPT::COperandAnyObject, NLAISCRIPT::COperandSimple, NLAISCRIPT::COperandSimpleListOr, NLAISCRIPT::COperandUnknown, NLAISCRIPT::COperationType, NLAISCRIPT::COperationTypeGD, and NLAISCRIPT::COperandListType.

Definition at line 120 of file abstract_interface.h.

Referenced by NLAISCRIPT::CFindRunMsg::save().

00121                 {
00122                 }


Field Documentation

std::list<IConstraint *> NLAISCRIPT::IConstraint::_ConstraintList [private]
 

List of constraint dependency. When constraint is resolve it call all constraint contain in this list and run its.

Definition at line 170 of file constraint.h.

Referenced by addConstraint(), popConstraint(), and runConnexcion().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 12:36:20 2004 for NeL by doxygen 1.3.6