|
OMNeT++ API 6.1
Discrete Event Simulation Library
|
|
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"
88 virtual void startRun() = 0;
93 virtual void endRun() = 0;
105 virtual void *registerVector(
const char *modulename,
const char *vectorname,
opp_string_map *attributes=
nullptr) = 0;
112 virtual void deregisterVector(
void *vechandle) = 0;
121 virtual bool record(
void *vechandle,
simtime_t t,
double value) = 0;
127 virtual const char *getFileName()
const = 0;
132 virtual void flush() = 0;
187 virtual void startRun() = 0;
192 virtual void endRun() = 0;
202 virtual bool recordScalar(
cComponent *component,
const char *name,
double value,
opp_string_map *attributes=
nullptr) = 0;
215 virtual bool recordParameter(
cPar *par) = 0;
221 virtual bool recordComponentType(
cComponent *component) = 0;
227 virtual const char *getFileName()
const = 0;
232 virtual void flush() = 0;
287 virtual void startRun() = 0;
292 virtual void endRun() = 0;
300 virtual std::ostream *getStreamForSnapshot() = 0;
305 virtual void releaseStreamForSnapshot(std::ostream *os) = 0;
311 virtual const char *getFileName()
const = 0;
365 virtual void resume() = 0;
370 virtual void suspend() = 0;
375 virtual void flush() = 0;
381 virtual const char *getFileName()
const = 0;
384 virtual void endRun(
bool isError,
int resultCode,
const char *message) = 0;
389 virtual void simulationEvent(
cEvent *event) = 0;
390 virtual void bubble(
cComponent *component,
const char *text) = 0;
391 virtual void messageScheduled(
cMessage *msg) = 0;
392 virtual void messageCancelled(
cMessage *msg) = 0;
395 virtual void messageSendHop(
cMessage *msg,
cGate *srcGate) = 0;
397 virtual void endSend(
cMessage *msg) = 0;
398 virtual void messageCreated(
cMessage *msg) = 0;
400 virtual void messageDeleted(
cMessage *msg) = 0;
401 virtual void moduleReparented(
cModule *module,
cModule *oldparent,
int oldId) = 0;
402 virtual void componentMethodBegin(
cComponent *from,
cComponent *to,
const char *methodFmt, va_list va) = 0;
403 virtual void componentMethodEnd() = 0;
404 virtual void moduleCreated(
cModule *newmodule) = 0;
405 virtual void moduleDeleted(
cModule *module) = 0;
406 virtual void gateCreated(
cGate *newgate) = 0;
407 virtual void gateDeleted(
cGate *gate) = 0;
408 virtual void connectionCreated(
cGate *srcgate) = 0;
409 virtual void connectionDeleted(
cGate *srcgate) = 0;
410 virtual void displayStringChanged(
cComponent *component) = 0;
411 virtual void logLine(
const char *prefix,
const char *line,
int lineLength) = 0;
412 virtual void stoppedWithException(
bool isError,
int resultCode,
const char *message) = 0;
This class represents modules in the simulation.
Definition: cmodule.h:48
Allows returning multiple values from the processMessage() method.
Definition: cchannel.h:33
Abstract base class for handling recording of output scalar data.
Definition: envirext.h:158
cIOutputScalarManager()
Definition: envirext.h:173
virtual ~cIOutputVectorManager()
Definition: envirext.h:79
cObject is a lightweight class which serves as the root of the OMNeT++ class hierarchy....
Definition: cobject.h:92
Utility class, to make it impossible to call the operator= and copy constructor of any class derived ...
Definition: cobject.h:415
Represents an event in the discrete event simulator.
Definition: cevent.h:46
cIEventlogManager()
Definition: envirext.h:346
Lightweight string-to-string map, used internally in some parts of OMNeT++.
Definition: opp_string.h:219
SimulationLifecycleEventType
Event type for cISimulationLifecycleListener's lifecycleEvent() method.
Definition: clifecyclelistener.h:28
int64_t-based, base-10 fixed-point simulation time.
Definition: simtime.h:66
Abstract base class for output vector managers for cEnvir.
Definition: envirext.h:59
Options for the cSimpleModule::send() and cSimpleModule::sendDirect() calls.
Definition: csimplemodule.h:82
cISnapshotManager()
Definition: envirext.h:273
Abstract base class for eventlog managers for cEnvir.
Definition: envirext.h:337
cIOutputVectorManager()
Definition: envirext.h:74
Represents a module gate.
Definition: cgate.h:62
Represents a module or channel parameter.
Definition: cpar.h:70
virtual ~cISnapshotManager()
Definition: envirext.h:278
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:49
cStatistic is an abstract class for computing statistical properties of a random variable.
Definition: cstatistic.h:34
Abstract base class for snapshot managers.
Definition: envirext.h:258
A callback interface for receiving notifications at various stages simulations, including setting up,...
Definition: clifecyclelistener.h:186
virtual ~cIEventlogManager()
Definition: envirext.h:351
virtual ~cIOutputScalarManager()
Definition: envirext.h:178