# 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::IAgentInput Class Reference

An interface giving a direct value from an agent component or telling when the value changed. More...

#include <agent_input.h>

Inheritance diagram for NLAIAGENT::IAgentInput

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

Collaboration graph
[legend]
List of all members.

Public Methods

 IAgentInput ()
 Constructor. More...

 IAgentInput (const IAgentInput &)
 IAgentInput (IObjectIA *)
 Constructor with an value. More...

virtual ~IAgentInput ()
 Destructor. More...

virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual const CProcessResult& getState () const
virtual void setState (TProcessStatement s, IObjectIA *result)
void addInputConnection (IConnectIA* obj)
 Add an obj to the list of IconnectIA interested by the value change. More...

void releaseInputConnexion (IConnectIA* obj)
 Remove an obj to the list of IconnectIA interested by the value change. More...

virtual const IObjectIAgetValue () const
 Return the value managed by this IAgentInput. Must be Reimplemented. More...

virtual void setValue (IObjectIA *)
virtual const CProcessResult runMsg (COnChangeMsg &msg)
IObjectIA member method.
virtual const CProcessResult& run ()
 Some where Run method define the process of the agen. More...

IConnectIA member method.
virtual void onKill (IConnectIA* c)
 When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects. More...

IBasicInterface member method.
virtual void save (NLMISC::IStream &)
 Save the class in a stream. More...

virtual void load (NLMISC::IStream &)
 Load the class from a stream. More...


Protected Attributes

bool _ActiveInput
IObjectIA_LocalValue
CListGroupManager _ConnexionList

Detailed Description

An interface giving a direct value from an agent component or telling when the value changed.

Author(s):
Gabriel ROBERT , Nevrax France
Date:
2001

Definition at line 42 of file agent_input.h.


Constructor & Destructor Documentation

NLAIAGENT::IAgentInput::IAgentInput ( )
 

Constructor.

Definition at line 31 of file agent_input.cpp.

NLAIAGENT::IAgentInput::IAgentInput ( const IAgentInput & c )
 

Definition at line 39 of file agent_input.cpp.

NLAIAGENT::IAgentInput::IAgentInput ( IObjectIA * o )
 

Constructor with an value.

Definition at line 35 of file agent_input.cpp.

NLAIAGENT::IAgentInput::~IAgentInput ( ) [virtual]
 

Destructor.

Definition at line 43 of file agent_input.cpp.


Member Function Documentation

void NLAIAGENT::IAgentInput::addInputConnection ( IConnectIA * obj )
 

Add an obj to the list of IconnectIA interested by the value change.

Definition at line 48 of file agent_input.cpp.

const CProcessResult & NLAIAGENT::IAgentInput::getState ( ) const [inline, virtual]
 

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 63 of file agent_input.h.

const IObjectIA * NLAIAGENT::IAgentInput::getValue ( ) const [inline, virtual]
 

Return the value managed by this IAgentInput. Must be Reimplemented.

Definition at line 76 of file agent_input.h.

bool NLAIAGENT::IAgentInput::isEqual ( const IBasicObjectIA & a ) const [virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Reimplemented from NLAIAGENT::IBasicObjectIA.

Definition at line 112 of file agent_input.cpp.

void NLAIAGENT::IAgentInput::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 104 of file agent_input.cpp.

void NLAIAGENT::IAgentInput::onKill ( IConnectIA * c ) [virtual]
 

When agent die and when he is in the Connectioned lis, he call this method to inform this state to the objects.

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 65 of file agent_input.cpp.

void NLAIAGENT::IAgentInput::releaseInputConnexion ( IConnectIA * obj )
 

Remove an obj to the list of IconnectIA interested by the value change.

Definition at line 55 of file agent_input.cpp.

const IObjectIA::CProcessResult & NLAIAGENT::IAgentInput::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 81 of file agent_input.cpp.

const IObjectIA::CProcessResult NLAIAGENT::IAgentInput::runMsg ( COnChangeMsg & msg ) [virtual]
 

Definition at line 70 of file agent_input.cpp.

void NLAIAGENT::IAgentInput::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 97 of file agent_input.cpp.

void NLAIAGENT::IAgentInput::setState ( TProcessStatement s,
IObjectIA * result ) [inline, virtual]
 

Reimplemented from NLAIAGENT::IConnectIA.

Definition at line 67 of file agent_input.h.

void NLAIAGENT::IAgentInput::setValue ( IObjectIA * o ) [virtual]
 

Definition at line 75 of file agent_input.cpp.


Member Data Documentation

bool NLAIAGENT::IAgentInput::_ActiveInput [protected]
 

Definition at line 45 of file agent_input.h.

CListGroupManager NLAIAGENT::IAgentInput::_ConnexionList [protected]
 

Definition at line 47 of file agent_input.h.

IObjectIA * NLAIAGENT::IAgentInput::_LocalValue [protected]
 

Definition at line 46 of file agent_input.h.


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