MOOS 0.2375
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CMOOSScheduler Class Reference

#include <MOOSScheduler.h>

Inheritance diagram for CMOOSScheduler:
Inheritance graph
[legend]
Collaboration diagram for CMOOSScheduler:
Collaboration graph
[legend]

List of all members.

Classes

class  CEvent
class  CResponseMsg

Public Types

typedef std::list< CEventEVENT_LIST
typedef std::list< CResponseMsgRESPONSE_LIST
typedef std::map< std::string,
RESPONSE_LIST
RESPONSE_LIST_MAP

Public Member Functions

 CMOOSScheduler ()
virtual ~CMOOSScheduler ()
bool Iterate ()
bool OnConnectToServer ()
bool OnStartUp ()
bool OnNewMail (MOOSMSG_LIST &NewMail)
bool Schedule ()

Protected Member Functions

bool RegisterResponses ()
bool HandleResponses (MOOSMSG_LIST &NewMail)
bool OnControl (std::string sControl)
bool Initialise ()
bool Clean ()
bool OnRestart ()
bool StartThreads ()
bool StopThreads ()
bool AddResponses ()
bool AddTimers ()
bool AddSequences ()

Protected Attributes

bool m_bQuit
bool m_bActive
unsigned long m_nScheduleThreadID
EVENT_LIST m_Events
RESPONSE_LIST_MAP m_Responses
int m_nTicks

Detailed Description

Definition at line 43 of file MOOSScheduler.h.


Member Typedef Documentation

typedef std::list<CEvent> CMOOSScheduler::EVENT_LIST

Definition at line 75 of file MOOSScheduler.h.

Definition at line 84 of file MOOSScheduler.h.

typedef std::map<std::string,RESPONSE_LIST> CMOOSScheduler::RESPONSE_LIST_MAP

Definition at line 85 of file MOOSScheduler.h.


Constructor & Destructor Documentation

CMOOSScheduler::CMOOSScheduler ( )

Definition at line 113 of file MOOSScheduler.cpp.

CMOOSScheduler::~CMOOSScheduler ( ) [virtual]

Definition at line 119 of file MOOSScheduler.cpp.


Member Function Documentation

bool CMOOSScheduler::AddResponses ( ) [protected]

Definition at line 288 of file MOOSScheduler.cpp.

bool CMOOSScheduler::AddSequences ( ) [protected]

Definition at line 181 of file MOOSScheduler.cpp.

bool CMOOSScheduler::AddTimers ( ) [protected]

Definition at line 236 of file MOOSScheduler.cpp.

bool CMOOSScheduler::Clean ( ) [protected]

Definition at line 459 of file MOOSScheduler.cpp.

bool CMOOSScheduler::HandleResponses ( MOOSMSG_LIST NewMail) [protected]

Definition at line 508 of file MOOSScheduler.cpp.

bool CMOOSScheduler::Initialise ( ) [protected]

Definition at line 467 of file MOOSScheduler.cpp.

bool CMOOSScheduler::Iterate ( ) [virtual]

virtual overide of base class CMOOSApp member. Here we do all the processing and IO

Reimplemented from CMOOSApp.

Definition at line 125 of file MOOSScheduler.cpp.

bool CMOOSScheduler::OnConnectToServer ( ) [virtual]

virtual overide of base class CMOOSApp member. Here we register for data we wish be informed about

Reimplemented from CMOOSApp.

Definition at line 131 of file MOOSScheduler.cpp.

bool CMOOSScheduler::OnControl ( std::string  sControl) [protected]

Definition at line 492 of file MOOSScheduler.cpp.

bool CMOOSScheduler::OnNewMail ( MOOSMSG_LIST NewMail) [virtual]

Called when ever mail comes in

Reimplemented from CMOOSApp.

Definition at line 147 of file MOOSScheduler.cpp.

bool CMOOSScheduler::OnRestart ( ) [protected]

Definition at line 452 of file MOOSScheduler.cpp.

bool CMOOSScheduler::OnStartUp ( ) [virtual]

called before we start main application loop

Reimplemented from CMOOSApp.

Definition at line 141 of file MOOSScheduler.cpp.

bool CMOOSScheduler::RegisterResponses ( ) [protected]

Definition at line 550 of file MOOSScheduler.cpp.

bool CMOOSScheduler::Schedule ( )

the whole point

Definition at line 417 of file MOOSScheduler.cpp.

bool CMOOSScheduler::StartThreads ( ) [protected]

Definition at line 83 of file MOOSScheduler.cpp.

bool CMOOSScheduler::StopThreads ( ) [protected]

Definition at line 69 of file MOOSScheduler.cpp.


Member Data Documentation

Definition at line 118 of file MOOSScheduler.h.

Definition at line 117 of file MOOSScheduler.h.

Definition at line 134 of file MOOSScheduler.h.

unsigned long CMOOSScheduler::m_nScheduleThreadID [protected]

Win32 handle to thread ID of thread

Definition at line 126 of file MOOSScheduler.h.

int CMOOSScheduler::m_nTicks [protected]

Definition at line 136 of file MOOSScheduler.h.

Definition at line 135 of file MOOSScheduler.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines