Removed internal (event-)ID stuff (no need for ID's ATM).
git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1445 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
@ -14,10 +14,6 @@ namespace fail {
|
||||
|
||||
class ExperimentFlow;
|
||||
|
||||
typedef unsigned long event_id_t; //!< type of event ids
|
||||
|
||||
//! invalid event id (used as a return indicator)
|
||||
const event_id_t INVALID_EVENT = static_cast<event_id_t>(-1);
|
||||
//! address wildcard (e.g. for BPEvent's)
|
||||
const address_t ANY_ADDR = static_cast<address_t>(-1);
|
||||
//! instruction wildcard
|
||||
@ -32,17 +28,13 @@ const unsigned ANY_INTERRUPT = static_cast<unsigned>(-1);
|
||||
* This is the base class for all event types.
|
||||
*/
|
||||
class BaseEvent {
|
||||
private:
|
||||
//! current class-scoped id counter to provide \a unique id's
|
||||
static event_id_t m_Counter;
|
||||
protected:
|
||||
event_id_t m_Id; //!< unique id of this event
|
||||
time_t m_tStamp; //!< time stamp of event
|
||||
unsigned int m_OccCounter; //!< event fires when 0 is reached
|
||||
unsigned int m_OccCounterInit; //!< initial value for m_OccCounter
|
||||
ExperimentFlow* m_Parent; //!< this event belongs to experiment m_Parent
|
||||
public:
|
||||
BaseEvent() : m_Id(++m_Counter), m_OccCounter(1), m_OccCounterInit(1), m_Parent(NULL)
|
||||
BaseEvent() : m_OccCounter(1), m_OccCounterInit(1), m_Parent(NULL)
|
||||
{ updateTime(); }
|
||||
virtual ~BaseEvent() { }
|
||||
/**
|
||||
@ -69,11 +61,6 @@ public:
|
||||
* corresponding coroutine is toggled.
|
||||
*/
|
||||
virtual void onEventTrigger() { }
|
||||
/**
|
||||
* Retrieves the unique event id for this event.
|
||||
* @return the unique id
|
||||
*/
|
||||
event_id_t getId() const { return (m_Id); }
|
||||
/**
|
||||
* Retrieves the time stamp of this event. The time stamp is set when
|
||||
* the event gets created, id est the constructor is called. The meaning
|
||||
|
||||
Reference in New Issue
Block a user