16 #ifndef __OMNETPP_ENVIREXT_H 17 #define __OMNETPP_ENVIREXT_H 20 #include "simkerneldefs.h" 21 #include "opp_string.h" 22 #include "simtime_t.h" 24 #include "simtime_t.h" 25 #include "opp_string.h" 26 #include "clifecyclelistener.h" 87 virtual void startRun() = 0;
92 virtual void endRun() = 0;
104 virtual void *registerVector(
const char *modulename,
const char *vectorname) = 0;
111 virtual void deregisterVector(
void *vechandle) = 0;
117 virtual void setVectorAttribute(
void *vechandle,
const char *name,
const char *value) = 0;
126 virtual bool record(
void *vechandle,
simtime_t t,
double value) = 0;
132 virtual const char *getFileName()
const = 0;
137 virtual void flush() = 0;
192 virtual void startRun() = 0;
197 virtual void endRun() = 0;
206 virtual void recordScalar(
cComponent *component,
const char *name,
double value,
opp_string_map *attributes=
nullptr) = 0;
218 virtual const char *getFileName()
const = 0;
223 virtual void flush() = 0;
278 virtual void startRun() = 0;
283 virtual void endRun() = 0;
291 virtual std::ostream *getStreamForSnapshot() = 0;
296 virtual void releaseStreamForSnapshot(std::ostream *os) = 0;
302 virtual const char *getFileName()
const = 0;
356 virtual void startRecording() = 0;
361 virtual void stopRecording() = 0;
366 virtual void flush() = 0;
372 virtual const char *getFileName()
const = 0;
377 virtual void simulationEvent(
cEvent *event) = 0;
378 virtual void bubble(
cComponent *component,
const char *text) = 0;
379 virtual void messageScheduled(
cMessage *msg) = 0;
380 virtual void messageCancelled(
cMessage *msg) = 0;
381 virtual void beginSend(
cMessage *msg) = 0;
383 virtual void messageSendHop(
cMessage *msg,
cGate *srcGate) = 0;
385 virtual void endSend(
cMessage *msg) = 0;
386 virtual void messageCreated(
cMessage *msg) = 0;
388 virtual void messageDeleted(
cMessage *msg) = 0;
389 virtual void moduleReparented(
cModule *module,
cModule *oldparent,
int oldId) = 0;
390 virtual void componentMethodBegin(
cComponent *from,
cComponent *to,
const char *methodFmt, va_list va) = 0;
391 virtual void componentMethodEnd() = 0;
392 virtual void moduleCreated(
cModule *newmodule) = 0;
393 virtual void moduleDeleted(
cModule *module) = 0;
394 virtual void gateCreated(
cGate *newgate) = 0;
395 virtual void gateDeleted(
cGate *gate) = 0;
396 virtual void connectionCreated(
cGate *srcgate) = 0;
397 virtual void connectionDeleted(
cGate *srcgate) = 0;
398 virtual void displayStringChanged(
cComponent *component) = 0;
399 virtual void logLine(
const char *prefix,
const char *line,
int lineLength) = 0;
400 virtual void stoppedWithException(
bool isError,
int resultCode,
const char *message) = 0;
The message class in OMNeT++. cMessage objects may represent events, messages, jobs or other entities...
Definition: cmessage.h:95
Common base for module and channel classes.
Definition: ccomponent.h:48
Represents a module gate.
Definition: cgate.h:63
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
A callback interface for receiving notifications at various stages simulations, including setting up...
Definition: clifecyclelistener.h:186
virtual ~cISnapshotManager()
Definition: envirext.h:269
This class represents modules in the simulation.
Definition: cmodule.h:47
Abstract base class for snapshot managers.
Definition: envirext.h:249
virtual ~cIEventlogManager()
Definition: envirext.h:342
Abstract base class for handling recording of output scalar data.
Definition: envirext.h:163
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition: opp_string.h:200
cISnapshotManager()
Definition: envirext.h:264
cIOutputScalarManager()
Definition: envirext.h:178
Utility class, to make it impossible to call the operator= and copy constructor of any class derived ...
Definition: cobject.h:311
cIOutputVectorManager()
Definition: envirext.h:73
Definition: cabstracthistogram.h:21
virtual ~cIOutputScalarManager()
Definition: envirext.h:183
SimulationLifecycleEventType
Event type for cISimulationLifecycleListener's lifecycleEvent() method.
Definition: clifecyclelistener.h:28
cIEventlogManager()
Definition: envirext.h:337
Abstract base class for eventlog managers for cEnvir.
Definition: envirext.h:328
Abstract base class for output vector managers for cEnvir.
Definition: envirext.h:58
cStatistic is an abstract class for computing statistical properties of a random variable.
Definition: cstatistic.h:34
virtual ~cIOutputVectorManager()
Definition: envirext.h:78