Main Page | Class Hierarchy | Class List | Class Members

WrapVirtualThreads Class Reference

Not accessed by user: This class is a container for the virtual threads. More...

#include <wrapVirtualThreads.h>

List of all members.

Public Member Functions

 WrapVirtualThreads (const int &pSLP_TIME=200)
virtual ~WrapVirtualThreads ()
 destructor.
virtual void Stop ()
 Stop, for stopping the thread.
int addVirtualThread (SubsMod *)
 adds a virtual thread to the wrapVirtualThreads thread, virtual thread vector
void setSlpTime (const int &pSLP_TIME)
 change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run

Protected Member Functions

virtual void run ()


Detailed Description

Not accessed by user: This class is a container for the virtual threads.

It administers them, making sure that each runs pseudo concurrently


Constructor & Destructor Documentation

WrapVirtualThreads::WrapVirtualThreads const int &  pSLP_TIME = 200  )  [inline, explicit]
 

Parameters:
pSLP_TIME the time (ms) that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run. default to 200ms.


Member Function Documentation

int WrapVirtualThreads::addVirtualThread SubsMod sModPtr  ) 
 

adds a virtual thread to the wrapVirtualThreads thread, virtual thread vector

Parameters:
sModPtr a pointer to the subsumption module to be added as a virtual thread
Returns:
the new number of virtual threads

void WrapVirtualThreads::run  )  [protected, virtual]
 

Run function - body of thread. Cycle through each virtual thread, running one 'step' of each, and then sleeping.

void WrapVirtualThreads::setSlpTime const int &  pSLP_TIME  )  [inline]
 

change the sleep time that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run

Parameters:
pSLP_TIME the time (ms) that the master thread (for the virtual modules) will sleep for after running each of them, to give other modules a chance to run


The documentation for this class was generated from the following files:
Generated on Wed Nov 10 17:52:35 2004 for SubsuMe by doxygen 1.3.8