OMNeT++ Simulation Library
6.0.3
|
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) = 0;
112 virtual void deregisterVector(
void *vechandle) = 0;
118 virtual void setVectorAttribute(
void *vechandle,
const char *name,
const char *value) = 0;
127 virtual bool record(
void *vechandle,
simtime_t t,
double value) = 0;
133 virtual const char *getFileName()
const = 0;
138 virtual void flush() = 0;
193 virtual void startRun() = 0;
198 virtual void endRun() = 0;
208 virtual bool recordScalar(
cComponent *component,
const char *name,
double value,
opp_string_map *attributes=
nullptr) = 0;
221 virtual bool recordParameter(
cPar *par) = 0;
227 virtual bool recordComponentType(
cComponent *component) = 0;
233 virtual const char *getFileName()
const = 0;
238 virtual void flush() = 0;
293 virtual void startRun() = 0;
298 virtual void endRun() = 0;
306 virtual std::ostream *getStreamForSnapshot() = 0;
311 virtual void releaseStreamForSnapshot(std::ostream *os) = 0;
317 virtual const char *getFileName()
const = 0;
371 virtual void resume() = 0;
376 virtual void suspend() = 0;
381 virtual void flush() = 0;
387 virtual const char *getFileName()
const = 0;
390 virtual void endRun(
bool isError,
int resultCode,
const char *message) = 0;
395 virtual void simulationEvent(
cEvent *event) = 0;
396 virtual void bubble(
cComponent *component,
const char *text) = 0;
397 virtual void messageScheduled(
cMessage *msg) = 0;
398 virtual void messageCancelled(
cMessage *msg) = 0;
401 virtual void messageSendHop(
cMessage *msg,
cGate *srcGate) = 0;
403 virtual void endSend(
cMessage *msg) = 0;
404 virtual void messageCreated(
cMessage *msg) = 0;
406 virtual void messageDeleted(
cMessage *msg) = 0;
407 virtual void moduleReparented(
cModule *module,
cModule *oldparent,
int oldId) = 0;
408 virtual void componentMethodBegin(
cComponent *from,
cComponent *to,
const char *methodFmt, va_list va) = 0;
409 virtual void componentMethodEnd() = 0;
410 virtual void moduleCreated(
cModule *newmodule) = 0;
411 virtual void moduleDeleted(
cModule *module) = 0;
412 virtual void gateCreated(
cGate *newgate) = 0;
413 virtual void gateDeleted(
cGate *gate) = 0;
414 virtual void connectionCreated(
cGate *srcgate) = 0;
415 virtual void connectionDeleted(
cGate *srcgate) = 0;
416 virtual void displayStringChanged(
cComponent *component) = 0;
417 virtual void logLine(
const char *prefix,
const char *line,
int lineLength) = 0;
418 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:164
cIOutputScalarManager()
Definition: envirext.h:179
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:352
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:279
Abstract base class for eventlog managers for cEnvir.
Definition: envirext.h:343
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:284
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:264
A callback interface for receiving notifications at various stages simulations, including setting up,...
Definition: clifecyclelistener.h:186
virtual ~cIEventlogManager()
Definition: envirext.h:357
virtual ~cIOutputScalarManager()
Definition: envirext.h:184