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

SSimStepLog Class Reference

#include <SSimStepLog.h>

Inherits SLogger.

Inheritance diagram for SSimStepLog:

Inheritance graph
[legend]
List of all members.

Public Methods

 SSimStepLog (int i, STaskSystem &ts, bool registerAsObserver=true)
 SSimStepLog (STaskSystem &ts, bool registerAsObserver=true)
virtual ~SSimStepLog ()
virtual void feedEvent (const SEvent &event)
void clear ()
const SSchedActionListgetActionList ()
virtual void update (const SEvent &event)

Detailed Description

Records events of a simulation step. This class observes all components of the task system apart from the precedence relation to hand these events over to the algorithm. SchedEvents are collected in an action list as a kind of protocol which may be used for text output, statistical evaluation, etc. The sim step logger can also be used as a "dependent logger", then it doesn't register as observer and must be fed via feedEvent(); (currently used to record the events of a simstep in order to hand them over to the scheduling algorithm)


Constructor & Destructor Documentation

SSimStepLog::SSimStepLog int    i,
STaskSystem   ts,
bool    registerAsObserver = true
[inline]
 

Contructor. The logger registers (if wanted) as observer of all parts of the tasksytem that send SCHEDEVENTs (except precedence relation).

Parameters:
ts  a reference to the tasksystem
registerAsObserver  stand-alone logger (true) or dependent (false)

SSimStepLog::SSimStepLog STaskSystem   ts,
bool    registerAsObserver = true
 

SSimStepLog::~SSimStepLog   [virtual]
 


Member Function Documentation

void SSimStepLog::clear  
 

Clear the contents of the action list.

void SSimStepLog::feedEvent const SEvent   event [virtual]
 

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

Parameters:
event  an event that was sent by another logger

Implements SLogger.

const SSchedActionList& SSimStepLog::getActionList   [inline]
 

Return the contents of the action list.

Returns:
action list

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:54 2003 for Sketch-it! by doxygen1.2.18