16 #ifndef __OMNETPP_CEVENT_H 17 #define __OMNETPP_CEVENT_H 19 #include "cownedobject.h" 58 eventnumber_t getPreviousEventNumber()
const {
return previousEventNumber;}
61 void setPreviousEventNumber(
eventnumber_t num) {previousEventNumber = num;}
68 void setArrivalTime(
simtime_t t) {arrivalTime = t;}
71 virtual int getSrcProcId()
const {
return -1;}
74 static int compareBySchedulingOrder(
const cEvent *a,
const cEvent *b);
88 explicit cEvent(
const char *name);
107 virtual cEvent *dup()
const override = 0;
113 virtual std::string str()
const override;
119 virtual void forEachChild(
cVisitor *v)
override;
126 virtual void parsimPack(
cCommBuffer *buffer)
const override;
133 virtual void parsimUnpack(
cCommBuffer *buffer)
override;
175 virtual cObject *getTargetObject()
const = 0;
200 bool shouldPrecede(
const cEvent *event)
const;
209 virtual void execute() = 0;
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
Root of the OMNeT++ class hierarchy. cObject is a lightweight class without any data members...
Definition: cobject.h:58
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Represents an event in the discrete event simulator.
Definition: cevent.h:43
void setSchedulingPriority(short p)
Definition: cevent.h:144
virtual bool isStale()
Definition: cevent.h:191
The default, binary heap based implementation of the future event set.
Definition: ceventheap.h:35
short getSchedulingPriority() const
Definition: cevent.h:149
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:104
int64_t eventnumber_t
Sequence number of events during the simulation. Events are numbered from one. (Event number zero is ...
Definition: simkerneldefs.h:78
Enables traversing the tree of (cObject-rooted) simulation objects.
Definition: cvisitor.h:56
bool isScheduled() const
Definition: cevent.h:158
virtual bool isMessage() const
Definition: cevent.h:184
simtime_t_cref getArrivalTime() const
Definition: cevent.h:165
Definition: cabstracthistogram.h:21