# 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  

NLAIAGENT::IObjetOp Class Reference

This is an abstract class to put on the defintion of an operator. More...

#include <agent_operator.h>

Inheritance diagram for NLAIAGENT::IObjetOp

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::IObjetOp:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TOpId {
  op_add,
  op_sub,
  op_mul,
  op_div,
  op_eq,
  op_inf,
  op_sup,
  op_inf_eq,
  op_sup_eq,
  op_not,
  op_diff,
  op_neg,
  op_last
}

Public Methods

 IObjetOp ()
 IObjetOp (const IObjetOp &a)
virtual IObjetOp& operator+= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp& operator-= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp& neg ()
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp& operator *= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp& operator/= (const IObjetOp &)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator+ (const IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator- (const IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual const IObjetOp* operator * (const IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual const IObjetOp* operator/ (const IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator< (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator> (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator<= (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator>= (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator!= (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOp* operator== (IObjetOp &) const
 throw (NLAIE::CExceptionNotImplemented). More...

virtual bool isTrue () const = 0
 throw (NLAIE::CExceptionNotImplemented). More...

virtual ~IObjetOp ()
 throw (NLAIE::CExceptionNotImplemented) = 0. More...

IObjectIA base class method;
tQueue isMember (const IVarName *,const IVarName *,const IObjectIA &) const
 The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...

CProcessResult runMethodeMember (sint32 index, IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of external method. More...


Detailed Description

This is an abstract class to put on the defintion of an operator.

Not that an operator here is an object where we can add, sub, mul, dive it with an ather, and also the object assum all binary operation.

Author(s):
Chafik sameh , Portier Pierre , Nevrax France
Date:
2000

Definition at line 43 of file agent_operator.h.


Member Enumeration Documentation

enum NLAIAGENT::IObjetOp::TOpId
 

Enumeration values:
op_add  
op_sub  
op_mul  
op_div  
op_eq  
op_inf  
op_sup  
op_inf_eq  
op_sup_eq  
op_not  
op_diff  
op_neg  
op_last  

Definition at line 46 of file agent_operator.h.


Constructor & Destructor Documentation

NLAIAGENT::IObjetOp::IObjetOp ( ) [inline]
 

Definition at line 71 of file agent_operator.h.

NLAIAGENT::IObjetOp::IObjetOp ( const IObjetOp & a ) [inline]
 

Definition at line 75 of file agent_operator.h.

NLAIAGENT::IObjetOp::~IObjetOp ( ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented) = 0.

Definition at line 208 of file agent_operator.h.


Member Function Documentation

sint32 NLAIAGENT::IObjetOp::getMethodIndexSize ( ) const [virtual]
 

getMethodIndexSize define the nomber of external method.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombreDefine, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CGoal, and NLAILOGIC::IBaseVar.

Definition at line 93 of file agent_operator.cpp.

tQueue NLAIAGENT::IObjetOp::isMember ( const IVarName * className,
const IVarName * name,
const IObjectIA & param ) const [virtual]
 

The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.

remember we use the overloadind method.

NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.

methodName: is the name of the class.

param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombreDefine, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::COnChangeMsg.

Definition at line 32 of file agent_operator.cpp.

bool NLAIAGENT::IObjetOp::isTrue ( ) const [inline, pure virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIAGENT::IBaseGroupType, NLAIAGENT::IListBasicManager, NLAIFUZZY::CFuzzyFact, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::FuzzyType, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CBoolAssert, NLAILOGIC::CBoolOperator, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CFactBase, NLAILOGIC::CFirstOrderAssert, NLAILOGIC::CFirstOrderOperator, NLAILOGIC::CGoal, NLAILOGIC::CValueSet, NLAILOGIC::CVar, NLAILOGIC::CVarSet, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 213 of file agent_operator.h.

Referenced by NLAISCRIPT::CJFalseOpCode::runOpCode().

IObjetOp & NLAIAGENT::IObjetOp::neg ( ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 96 of file agent_operator.h.

const IObjetOp * NLAIAGENT::IObjetOp::operator * ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre.

Definition at line 135 of file agent_operator.h.

IObjetOp & NLAIAGENT::IObjetOp::operator *= ( const IObjetOp & a ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre.

Definition at line 104 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator! ( ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::IBaseGroupType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CValueSet, NLAILOGIC::CVarSet, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 183 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator!= ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CValueSet, NLAILOGIC::CVarSet, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 190 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator+ ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, and NLAIAGENT::IBaseGroupType.

Definition at line 119 of file agent_operator.h.

IObjetOp & NLAIAGENT::IObjetOp::operator+= ( const IObjetOp & a ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIAGENT::IBaseGroupType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Definition at line 80 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator- ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, and NLAIAGENT::IBaseGroupType.

Definition at line 127 of file agent_operator.h.

IObjetOp & NLAIAGENT::IObjetOp::operator-= ( const IObjetOp & a ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIAGENT::IBaseGroupType, NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Definition at line 88 of file agent_operator.h.

const IObjetOp * NLAIAGENT::IObjetOp::operator/ ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre.

Definition at line 143 of file agent_operator.h.

IObjetOp & NLAIAGENT::IObjetOp::operator/= ( const IObjetOp & a ) [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre.

Definition at line 111 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator< ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 152 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator<= ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 167 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator== ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIFUZZY::CFuzzyRule, NLAIFUZZY::FuzzyType, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CBoolType, NLAILOGIC::CClause, NLAILOGIC::CValueSet, NLAILOGIC::CVar, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 198 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator> ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 159 of file agent_operator.h.

IObjetOp * NLAIAGENT::IObjetOp::operator>= ( IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented in NLAIAGENT::INombre, NLAIAGENT::CStringType, NLAIFUZZY::FuzzyType, NLAILOGIC::CBoolType, NLAISCRIPT::CVarPStack, and NLAISCRIPT::CVarPStackParam.

Definition at line 175 of file agent_operator.h.

IObjectIA::CProcessResult NLAIAGENT::IObjetOp::runMethodeMember ( sint32 index,
IObjectIA * param ) [virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::IVector, NLAIAGENT::INombre, NLAIAGENT::IBaseGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, NLAIAGENT::COnChangeMsg, NLAIFUZZY::CFuzzyVar, NLAILOGIC::CGoal, and NLAILOGIC::IBaseVar.

Definition at line 99 of file agent_operator.cpp.


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