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

SPlayerLog Class Reference

#include <SPlayerLog.h>

Inherits SLogger.

Inheritance diagram for SPlayerLog:

Inheritance graph
[legend]
List of all members.

Public Methods

 SPlayerLog (STaskSystem &ts, std::ostream &out=std::cout, bool registerAsObserver=true)
virtual ~SPlayerLog ()
virtual void feedEvent (const SEvent &event)
void setLogStream (std::ostream &out)
virtual void update (const SEvent &event)

Detailed Description

The player logger records all events that are needed to re-play the scheduling procedure with the player module. It writes the events to an output stream that can be loaded again by the player module. Events are enveloped in so called "recording events" which contain the event and some additional information that are neccessary for re-playing, for instance the time when the event was created ("time stamp"). Currently only JOBALLOCATED and JOBDEALLOCATED events are stored, because it registers only as observer of the machines. The player logger can also be used as a "slave logger", then it doesn't register as observer and must be fed via feedEvent().

See also:
SPlayer


Constructor & Destructor Documentation

SPlayerLog::SPlayerLog STaskSystem   ts,
std::ostream &    out = std::cout,
bool    registerAsObserver = true
 

Constructor.

Parameters:
ts  a reference to the tasksystem
out  the output stream (default: console)
registerAsObserver  stand-alone logger (true) or dependent (false)

SPlayerLog::~SPlayerLog   [virtual]
 

Destructor.


Member Function Documentation

void SPlayerLog::feedEvent const SEvent   event [virtual]
 

Here the logger must be fed with events when it is a dependent logger.

Parameters:
event  an event that is sent by another logger

Implements SLogger.

void SPlayerLog::setLogStream std::ostream &    out
 

Set the output stream to which the events are written.

Parameters:
out  output stream

virtual void SLogger::update const SEvent   event [inline, virtual, inherited]
 

Here the logger receives events when it is a stand-alone logger

Parameters:
event  an event created by one of the observed components

Implements SObserver.

Reimplemented in SGanttLog.


The documentation for this class was generated from the following files:
Generated on Thu May 22 16:50:51 2003 for Sketch-it! by doxygen1.2.18