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

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/Simulator/Includes/SimMsgRcvObs.hh

Go to the documentation of this file.
00001 // -*- Mode: c++ -*-
00002 //     File: $Source: /home/cvs/ISG-Repository/IDEA-DEV/Core/Simulator/Includes/SimMsgRcvObs.hh,v $
00003 //      Tag: $Name: DR_01_11_06 $
00004 //      CVS: $Id: SimMsgRcvObs.hh,v 1.5 2005/12/30 22:16:17 rijsman Exp $
00005 //     Info: $CVSROOT/IDEA-DEV/COPYRIGHT
00006 #ifndef SIMULATOR_MESSAGE_RECEIVED_OBSERVER
00007 #define SIMULATOR_MESSAGE_RECEIVED_OBSERVER
00008 
00009 #include "Reactor.hh"
00010 
00011 #include <map>
00012 
00013 namespace IDEA
00014 {
00015   class Simulator;
00024   class SimulatorResponseScheduler:
00025     public Reactor
00026   {
00027   public:
00031     SimulatorResponseScheduler( Simulator* simulator, const std::string& name );
00035     ~SimulatorResponseScheduler();
00036 
00037     StatusType startReacting( const Time& time ) { return OK; }
00038   protected:
00042     void updateStartMessage( const Time& time, const StartMessageData* data );
00049     void updateUserDefinedMessage( const Time& time, const MessageData* data );
00050     void updateObjectMessage( const Time& time, const ObjectMessageData* data ) {};
00051     void updateStopMessage( const Time& time, const StopMessageData* data ) {};
00052     void updateStatusMessage( const Time& time, const StatusMessageData* data ) {};
00053     void updateValueMessage( const Time& time, const ValueMessageData* data ) {};
00054 
00055   private:
00056     void createAndScheduleResponses( const std::string& identifier, const Time& received, const MessageData* data, const Message::Type& type );
00057 
00058     Simulator* m_Simulator;
00059   };
00060 }
00061   
00062 #endif // SIMULATOR_MESSAGE_RECEIVED_OBSERVER

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