00001 /* #start# *********************************************************** 00002 00003 Scheduling Simulator 00004 Lehrstuhl f"ur Effiziente Algorithmen 00005 Technische Universit"at M"unchen 00006 00007 File : $Id: SSimStepLog.h,v 1.2 2002/11/10 20:32:20 taeubig Exp $ 00008 00009 Purpose : this class observes all components of the task system apart 00010 from the precedence relation. SchedEvents are collected in 00011 a list as a kind of protocol which may be used for text 00012 output, statistical evaluation, ... 00013 00014 RCS-Log: 00015 $Log: SSimStepLog.h,v $ 00016 Revision 1.2 2002/11/10 20:32:20 taeubig 00017 namespace and header include changes 00018 00019 Revision 1.1 2002/08/29 12:59:58 taeubig 00020 Added the sources 00021 00022 Revision 1.2 2000/01/17 10:17:20 zoidl 00023 little changes in javadocs 00024 00025 Revision 1.1 2000/01/09 21:05:36 zoidl 00026 replaces old SLogger in STaskSystem::doSimStep() 00027 00028 00029 * #end# ************************************************************* */ 00030 00031 #ifndef SSIMSTEPLOG_H 00032 #define SSIMSTEPLOG_H 00033 00034 // system header files 00035 00036 // project header files 00037 #include "SLogger.h" 00038 #include "SSchedActionList.h" 00039 #include "../model/STaskSystem.h" 00040 00051 class SSimStepLog : public virtual SLogger 00052 { 00053 public: 00060 SSimStepLog(int i, STaskSystem& ts, bool registerAsObserver=true) : _rTaskSys(ts) {}; 00061 SSimStepLog(STaskSystem& ts, bool registerAsObserver=true); 00062 virtual ~SSimStepLog(); 00063 00068 virtual void feedEvent(const SEvent& event); 00069 00072 void clear(); 00073 00078 const SSchedActionList& getActionList() { return _actions; }; 00079 00080 private: 00081 STaskSystem& _rTaskSys; 00082 SSchedActionList _actions; 00083 bool _regAsObs; 00084 }; 00085 00086 #endif