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

IDEA::ResponseMessageFactory Class Reference
[Simulator]

#include <SimRespFactory.hh>

List of all members.

Public Methods

 ResponseMessageFactory (const std::string &identifier)
virtual ~ResponseMessageFactory ()
void getResponseMessages (const Time &received, const MessageData *data, const Message::Type &type, MessageHandleList &messages)
const std::string & getIdentifier () const
 Returns the identifier.

void setDefaultResponse (const ResponseBaseList &response)
 Sets response as the default response.

void addResponse (int index, const ResponseBaseList &response)
 Sets response as the response for the index message coming in.

int getNumberOfScheduledResponses () const
 Returns the counter of how many responses we have already created.


Private Types

typedef std::map< int, ResponseBaseListInt2ResponseBaseList
 A container to store non-default messages, the key (integer) is the counter of message coming in for this token. If no non-default has been s.


Private Methods

virtual ResponseBaseListgetNextResponseBaseList ()
 Returns the ResponseBaseList corresponding with the next invocation (the first, seconde etc).


Private Attributes

std::string m_Identifier
 Identifier ...

int m_ResponseCounter
 Counter of how many responses we have already created.

ResponseBaseList m_DefaultResponse
 Default response message, will be used to create a message if no non-default has been stored in m_Responses.

Int2ResponseBaseList m_Responses


Detailed Description

class ResponseMessageFactory


Member Typedef Documentation

typedef std::map< int, ResponseBaseList > IDEA::ResponseMessageFactory::Int2ResponseBaseList [private]
 

A container to store non-default messages, the key (integer) is the counter of message coming in for this token. If no non-default has been s.


Constructor & Destructor Documentation

IDEA::ResponseMessageFactory::ResponseMessageFactory const std::string &    identifier
 

IDEA::ResponseMessageFactory::~ResponseMessageFactory   [virtual]
 


Member Function Documentation

void IDEA::ResponseMessageFactory::addResponse int    index,
const ResponseBaseList   response
 

Sets response as the response for the index message coming in.

const std::string & IDEA::ResponseMessageFactory::getIdentifier  
 

Returns the identifier.

ResponseBaseList * IDEA::ResponseMessageFactory::getNextResponseBaseList   [private, virtual]
 

Returns the ResponseBaseList corresponding with the next invocation (the first, seconde etc).

If not specifically defined with addResponse the default-response-list will be returned which if not explicitly set is an empty list.Increments the response-counter with one!

int IDEA::ResponseMessageFactory::getNumberOfScheduledResponses   const [inline]
 

Returns the counter of how many responses we have already created.

void IDEA::ResponseMessageFactory::getResponseMessages const Time   received,
const MessageData   data,
const Message::Type   type,
MessageHandleList   messages
 

void IDEA::ResponseMessageFactory::setDefaultResponse const ResponseBaseList   response
 

Sets response as the default response.


Member Data Documentation

ResponseBaseList IDEA::ResponseMessageFactory::m_DefaultResponse [private]
 

Default response message, will be used to create a message if no non-default has been stored in m_Responses.

std::string IDEA::ResponseMessageFactory::m_Identifier [private]
 

Identifier ...

int IDEA::ResponseMessageFactory::m_ResponseCounter [private]
 

Counter of how many responses we have already created.

Int2ResponseBaseList IDEA::ResponseMessageFactory::m_Responses [private]
 


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