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

PsRealTimeController Class Reference

Class defining a controler which keeps track of time and slows the simulation so that simulated time = wall time This is acheived by keeping track of the diffence between theoretical exection time and real execution time. More...

#include <PsRealTimeController.h>

Inheritance diagram for PsRealTimeController:

Inheritance graph
[legend]
Collaboration diagram for PsRealTimeController:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsRealTimeController (PsObjectDescriptor &scenario, const PsDate &initialDate)
 the usual constructor

virtual ~PsRealTimeController ()
virtual void compute ()
 compute : computes a new simulation step for all controlled objects, if the controller is in the running state, otherwise jsut react to system events sent to controlled objects


Detailed Description

Class defining a controler which keeps track of time and slows the simulation so that simulated time = wall time This is acheived by keeping track of the diffence between theoretical exection time and real execution time.

When the cumulated difference is bigger than a time slot (10 ms), the controllers calls usleep.

Author:
David Margery
Version:
1.0 (for Irix)

Definition at line 29 of file PsRealTimeController.h.


Constructor & Destructor Documentation

PsRealTimeController::PsRealTimeController PsObjectDescriptor   scenario,
const PsDate   initialDate
 

the usual constructor

virtual PsRealTimeController::~PsRealTimeController   [virtual]
 


Member Function Documentation

virtual void PsRealTimeController::compute   [virtual]
 

compute : computes a new simulation step for all controlled objects, if the controller is in the running state, otherwise jsut react to system events sent to controlled objects

Reimplemented from PsController.


The documentation for this class was generated from the following file:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:24 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001