Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::AcceptorPolicy Class Reference
[Agent handle classes]

This class is used to determine if a MessageHandle comming into a MessageObserver should be accepted or not. More...

#include <AcceptorPolicy.hh>

List of all members.

Public Methods

 AcceptorPolicy (long acceptMessageTypes)
 Constructor, creates an instance of AcceptorPolicy accepting messages of types in acceptMessageTypes.

virtual ~AcceptorPolicy ()
 Destructor.

bool isAcceptable (const Message::Type &type) const
 Returns true if the invoking class accepts messages of type type.


Private Methods

virtual bool accept (const MessageHandle &message)
 Virtual method to enhance the filter of acceptance of messages. This criterium will be used by the MessageObserverBase on top of the type-criterium. By default this method always returns true if not specialized.

bool acceptInternal (const MessageHandle &message)
 Returns true if the message should be accepted, combination of the type of the message and the implementation of accept. Used by MessageObserverBase.


Private Attributes

long m_AcceptTypes

Friends

class MessageObserver


Detailed Description

This class is used to determine if a MessageHandle comming into a MessageObserver should be accepted or not.

class AcceptorPolicy


Constructor & Destructor Documentation

IDEA::AcceptorPolicy::AcceptorPolicy long    acceptMessageTypes
 

Constructor, creates an instance of AcceptorPolicy accepting messages of types in acceptMessageTypes.

One can add or remove messages to be accepted by using the bitwise OR ( | ) operator on the following flags(enumeration):

IDEA::AcceptorPolicy::~AcceptorPolicy   [virtual]
 

Destructor.


Member Function Documentation

bool IDEA::AcceptorPolicy::accept const MessageHandle   message [private, virtual]
 

Virtual method to enhance the filter of acceptance of messages. This criterium will be used by the MessageObserverBase on top of the type-criterium. By default this method always returns true if not specialized.

bool IDEA::AcceptorPolicy::acceptInternal const MessageHandle   message [private]
 

Returns true if the message should be accepted, combination of the type of the message and the implementation of accept. Used by MessageObserverBase.

bool IDEA::AcceptorPolicy::isAcceptable const Message::Type   type const
 

Returns true if the invoking class accepts messages of type type.


Friends And Related Function Documentation

friend class MessageObserver [friend]
 


Member Data Documentation

long IDEA::AcceptorPolicy::m_AcceptTypes [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:44 2006 for IDEA.