OMNeT++ Simulation Library
6.0.3
|
16 #ifndef __OMNETPP_CEVENT_H
17 #define __OMNETPP_CEVENT_H
19 #include "cownedobject.h"
62 eventnumber_t getPreviousEventNumber()
const {
return previousEventNumber;}
65 void setPreviousEventNumber(
eventnumber_t num) {previousEventNumber = num;}
73 void setArrivalTime(
simtime_t t) {ASSERT(!isScheduled()); arrivalTime = t;}
76 virtual int getSrcProcId()
const {
return -1;}
79 static int compareBySchedulingOrder(
const cEvent *a,
const cEvent *b);
112 virtual cEvent *dup()
const override = 0;
118 virtual std::string str()
const override;
124 virtual void forEachChild(
cVisitor *v)
override;
131 virtual void parsimPack(
cCommBuffer *buffer)
const override;
138 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
152 void setSchedulingPriority(
short p);
183 virtual cObject *getTargetObject()
const = 0;
212 bool shouldPrecede(
const cEvent *event)
const;
221 virtual void execute() = 0;
const typedef simtime_t & simtime_t_cref
Constant reference to a simtime_t.
Definition: simtime_t.h:48
simtime_t_cref getArrivalTime() const
Definition: cevent.h:173
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
virtual bool isPacket() const
Definition: cevent.h:196
Represents an event in the discrete event simulator.
Definition: cevent.h:46
virtual ~cEvent()
Definition: cevent.h:98
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
bool isScheduled() const
Definition: cevent.h:166
int64_t eventnumber_t
Sequence number of events during the simulation. Events are numbered from one. (Event number zero is ...
Definition: simkerneldefs.h:78
virtual bool isStale()
Definition: cevent.h:203
short getSchedulingPriority() const
Definition: cevent.h:157
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
The default, binary heap based implementation of the future event set.
Definition: ceventheap.h:35
cEvent(const cEvent &event)
Definition: cevent.h:88
virtual bool isMessage() const
Definition: cevent.h:191
cEvent(const char *name)
Definition: cevent.h:93
Buffer for the communications layer of parallel simulation.
Definition: ccommbuffer.h:41
A cObject that keeps track of its owner. It serves as base class for many classes in the OMNeT++ libr...
Definition: cownedobject.h:105