cmodelchange.h Source File¶

API: cmodelchange.h Source File
API
cmodelchange.h
1//==========================================================================
2// CMODELCHANGE.H - part of
3// OMNeT++/OMNEST
4// Discrete System Simulation in C++
5//
6//==========================================================================
7
8/*--------------------------------------------------------------*
9 Copyright (C) 1992-2017 Andras Varga
10 Copyright (C) 2006-2017 OpenSim Ltd.
11
12 This file is distributed WITHOUT ANY WARRANTY. See the file
13 `license' for details on this and other legal matters.
14*--------------------------------------------------------------*/
15
16#ifndef __OMNETPP_CMODELCHANGE_H
17#define __OMNETPP_CMODELCHANGE_H
18
19#include "cobject.h"
20
21namespace omnetpp {
22
56SIM_API extern simsignal_t PRE_MODEL_CHANGE;
57
92SIM_API extern simsignal_t POST_MODEL_CHANGE;
93
100class SIM_API cModelChangeNotification : public cObject, noncopyable
101{
102};
103
121
136{
137 public:
139};
140
154{
155 public:
157};
158
175
190{
191 public:
193};
194
220
237
253
273{
274 public:
276 const char *gateName;
278 bool isVector;
279 int size;
280};
281
301{
302 public:
304 const char *gateName;
305};
306
323{
324 public:
326 const char *gateName;
327};
328
355
369{
370 public:
372 const char *gateName;
374};
375
389{
390 public:
392 const char *gateName;
394};
395
416
434{
435 public:
437};
438
456{
457 public:
459};
460
482
509
523
537
551
565
577{
578 public:
580};
581
593{
594 public:
596};
597
612
627
628} // namespace omnetpp
629
630#endif
631
Base class for channels.
Definition cchannel.h:47
Common base for module and channel classes.
Definition ccomponent.h:51
Represents a display string.
Definition cdisplaystring.h:69
Represents a module gate.
Definition cgate.h:63
Type
Definition cgate.h:72
Common base class for data objects that accompany PRE_MODEL_CHANGE and POST_MODEL_CHANGE signals.
Definition cmodelchange.h:101
Abstract class for creating a module of a specific type.
Definition ccomponenttype.h:212
This class represents modules in the simulation.
Definition cmodule.h:49
cObject()
Definition cobject.h:124
Represents a module or channel parameter.
Definition cpar.h:71
Base class for path change notifications.
Definition cmodelchange.h:503
cGate * pathEndGate
The end gate of the path.
Definition cmodelchange.h:506
cGate * pathStartGate
The start gate of the path.
Definition cmodelchange.h:505
cGate * changedGate
The gate whose connection has changed.
Definition cmodelchange.h:507
Model change notification fired after a component is initialized.
Definition cmodelchange.h:171
cComponent * component
The component which was initialized.
Definition cmodelchange.h:173
Model change notification fired after a dispay string change.
Definition cmodelchange.h:623
cDisplayString * displayString
The display string that was updated.
Definition cmodelchange.h:625
Model change notification fired after a gate or gate vector has been added to the module.
Definition cmodelchange.h:301
cModule * module
The module to which the new gate or gate vector was added.
Definition cmodelchange.h:303
const char * gateName
Name of the new gate or gate vector.
Definition cmodelchange.h:304
Model change notification fired after a gate has been connected.
Definition cmodelchange.h:434
cGate * gate
The gate that has been connected.
Definition cmodelchange.h:436
Model change notification fired after a gate has been deleted.
Definition cmodelchange.h:347
cModule * module
Parent of the gate or gate vector.
Definition cmodelchange.h:349
cGate::Type gateType
Type of the gate or gate vector.
Definition cmodelchange.h:351
const char * gateName
Name of the gate or gate vector.
Definition cmodelchange.h:350
int vectorSize
If a gate vector was deleted: size of the vector.
Definition cmodelchange.h:353
bool isVector
Name of the gate vector that was deleted.
Definition cmodelchange.h:352
Model change notification fired after a gate is disconnected.
Definition cmodelchange.h:476
cGate * targetGate
The gate to which it was connected.
Definition cmodelchange.h:479
cGate * gate
The gate that has been disconnected.
Definition cmodelchange.h:478
cChannel * channel
The channel object associated with the link; it points to valid object that will be deleted once the ...
Definition cmodelchange.h:480
Model change notification fired after a gate vector has been resized.
Definition cmodelchange.h:389
cModule * module
The module of the gate vector.
Definition cmodelchange.h:391
int oldSize
The old size of the gate vector.
Definition cmodelchange.h:393
const char * gateName
The name of the gate vector.
Definition cmodelchange.h:392
Model change notification fired just after a module is inserted into the network.
Definition cmodelchange.h:136
cModule * module
The new module.
Definition cmodelchange.h:138
Model change notification fired after a module is built.
Definition cmodelchange.h:154
cModule * module
The module.
Definition cmodelchange.h:156
Model change notification fired after a module has been deleted.
Definition cmodelchange.h:210
cModule * module
Pointer of the deleted module. The module object has already been deleted at this point,...
Definition cmodelchange.h:212
int moduleId
The ID of the deleted module.
Definition cmodelchange.h:213
cModuleType * moduleType
Type of the deleted module.
Definition cmodelchange.h:214
const char * moduleName
Name of the deleted module.
Definition cmodelchange.h:215
int index
Index of the deleted in its vector; -1 if not part of a module vector.
Definition cmodelchange.h:218
int vectorSize
Size of the module vector that contained the deleted module; -1 if not a vector.
Definition cmodelchange.h:217
cModule * parentModule
Parent module of the deleted module.
Definition cmodelchange.h:216
Model change notification fired after a module has been reparented.
Definition cmodelchange.h:248
cModule * module
The reparented module.
Definition cmodelchange.h:250
cModule * oldParentModule
The old parent for the module.
Definition cmodelchange.h:251
Model change notification fired after a parameter change.
Definition cmodelchange.h:593
cPar * par
The module parameter that has changed.
Definition cmodelchange.h:595
Model change notification fired after a connection path has been created.
Definition cmodelchange.h:536
Model change notification fired after a connection path has been cut.
Definition cmodelchange.h:564
Model change notification fired just before a display string change.
Definition cmodelchange.h:608
cDisplayString * displayString
The display string that is about to be updated.
Definition cmodelchange.h:610
Model change notification fired just before a gate or gate vector is added to the module.
Definition cmodelchange.h:273
cModule * module
The module to which the new gate or gate vector will be added.
Definition cmodelchange.h:275
cGate::Type gateType
Type of the new gate or gate vector (INPUT, OUTPUT or INOUT)
Definition cmodelchange.h:277
const char * gateName
Name of the new gate or gate vector.
Definition cmodelchange.h:276
int size
If isVector=true: The gate vector size.
Definition cmodelchange.h:279
bool isVector
Whether a new gate or a gate vector will be added.
Definition cmodelchange.h:278
Model change notification fired just before a gate is connected.
Definition cmodelchange.h:410
cGate * targetGate
The gate it will be connected to.
Definition cmodelchange.h:413
cGate * gate
The gate that is about to be connected.
Definition cmodelchange.h:412
cChannel * channel
The channel object to be associated with the connection.
Definition cmodelchange.h:414
Model change notification fired just before a gate is deleted.
Definition cmodelchange.h:323
cModule * module
Parent of the gate or gate vector.
Definition cmodelchange.h:325
const char * gateName
Name of the gate or gate vector.
Definition cmodelchange.h:326
Model change notification fired just before a gate has been disconnected.
Definition cmodelchange.h:456
cGate * gate
The gate that is about to be disconnected.
Definition cmodelchange.h:458
Model change notification fired just before a gate vector is resized.
Definition cmodelchange.h:369
cModule * module
The module of the gate vector.
Definition cmodelchange.h:371
const char * gateName
The name of the gate vector.
Definition cmodelchange.h:372
int newSize
The new size of the gate vector.
Definition cmodelchange.h:373
Model change notification fired just before a module is inserted into the network.
Definition cmodelchange.h:116
cModule * module
The new module.
Definition cmodelchange.h:118
cModule * parentModule
Parent module it is being inserted into.
Definition cmodelchange.h:119
Model change notification fired just before a module is deleted.
Definition cmodelchange.h:190
cModule * module
The module that is about to be deleted.
Definition cmodelchange.h:192
Model change notification fired just before a module is reparented.
Definition cmodelchange.h:232
cModule * module
The module which is about to be reparented.
Definition cmodelchange.h:234
cModule * newParentModule
The new parent for the module.
Definition cmodelchange.h:235
Model change notification fired just before a parameter change.
Definition cmodelchange.h:577
cPar * par
The module parameter that is about to be changed.
Definition cmodelchange.h:579
Model change notification fired just before a connection path is created.
Definition cmodelchange.h:522
Model change notification fired just before a connection path is cut.
Definition cmodelchange.h:550
SIM_API simsignal_t PRE_MODEL_CHANGE
A signal which is fired before simulation model changes such as module creation or connection creatio...
int simsignal_t
Signal handle.
Definition clistener.h:37
SIM_API simsignal_t POST_MODEL_CHANGE
A signal which is fired after simulation model changes such as module creation or connection creation...