Statistics
| Branch: | Revision:

root / src / eventlog / eventlogentries.txt @ 842775ab

History | View | Annotate | Download (7 KB)

1
// TODO: what about writing encapsulate/decapsulate as separate lines?
2

    
3
SB SimulationBeginEntry // mandatory first line of an eventlog file
4
{
5
   v int version           // OMNeT++ version, e.g. 0x401 (=1025) is release 4.1
6
   rid string runId        // identifies the simulation run
7
   b int keyframeBlockSize // the distance between keyframes in event numbers
8
}
9

    
10
SE SimulationEndEntry // optional last line of an eventlog file
11
{
12
   e bool isError // specifies if the simulation terminated due to an error
13
   c int resultCode // the error code in case of an error, otherwise the normal result code
14
   m string message // human readable description
15
}
16

    
17
BU BubbleEntry // display a bubble message
18
{
19
   id int moduleId // id of the module which printed the bubble message
20
   txt string text // displayed message text
21
}
22

    
23
MB ModuleMethodBeginEntry // beginning of a call to another module
24
{
25
   sm int fromModuleId // id of the caller module
26
   tm int toModuleId   // id of the module being called
27
   m string method     // C++ method name
28
}
29

    
30
ME ModuleMethodEndEntry // end of a call to another module
31
{
32
}
33

    
34
MC ModuleCreatedEntry // creating a module
35
{
36
   id int moduleId              // id of the new module
37
   c string moduleClassName     // C++ class name of the module
38
   t string nedTypeName         // fully qualified NED type name
39
   pid int parentModuleId -1    // id of the parent module
40
   n string fullName            // full dotted hierarchical module name
41
   cm bool compoundModule false // whether module is a simple or compound module
42
}
43

    
44
MD ModuleDeletedEntry // deleting a module
45
{
46
   id int moduleId // id of the module being deleted
47
}
48

    
49
MR ModuleReparentedEntry // reparenting a module
50
{
51
   id int moduleId         // id of the module being reparented
52
   p int newParentModuleId // id of the new parent module
53
}
54

    
55
GC GateCreatedEntry // gate created
56
{
57
   m int moduleId  // module in which the gate was created
58
   g int gateId    // id of the new gate
59
   n string name   // gate name
60
   i int index  -1 // gate index if vector, -1 otherwise
61
   o bool isOutput // whether the gate is input or output
62
}
63

    
64
GD GateDeletedEntry // gate deleted
65
{
66
   m int moduleId // module in which the gate was created
67
   g int gateId   // id of the deleted gate
68
}
69

    
70
CC ConnectionCreatedEntry // creating a connection
71
{
72
   sm int sourceModuleId // id of the source module identifying the connection
73
   sg int sourceGateId   // id of the gate at the source module identifying the connection
74
   dm int destModuleId   // id of the destination module
75
   dg int destGateId     // id of the gate at the destination module
76
   // TODO: channel, channel attributes, etc
77
}
78

    
79
CD ConnectionDeletedEntry // deleting a connection
80
{
81
   sm int sourceModuleId // id of the source module identifying the connection
82
   sg int sourceGateId   // id of the gate at the source module identifying the connection
83
}
84

    
85
CS ConnectionDisplayStringChangedEntry // a connection display string change
86
{
87
   sm int sourceModuleId  // id of the source module identifying the connection
88
   sg int sourceGateId    // id of the gate at the source module identifying the connection
89
   d string displayString // the new display string
90
}
91

    
92
MS ModuleDisplayStringChangedEntry // a module display string change
93
{
94
   id int moduleId        // id of the module
95
   d string displayString // the new display string
96
}
97

    
98
E EventEntry // an event that is processing a message
99
{
100
   # eventnumber_t eventNumber       // unique event number
101
   t simtime_t simulationTime        // simulation time when the event occurred
102
   m int moduleId                    // id of the processing module
103
   ce eventnumber_t causeEventNumber // event number from which the message being processed was sent, or -1 if the message was sent from initialize
104
   msg long messageId                // lifetime-unique id of the message being processed
105
}
106

    
107
KF KeyframeEntry
108
{
109
   p int64 previousKeyframeFileOffset  // file offset of the previous keyframe entry
110
   c string consequenceLookaheadLimits // consequence lookahead data
111
   s string simulationStateEntries     // simulation state data
112
}
113

    
114
abstract MessageEntry // base class for entries referring to a message
115
{
116
   id long messageId                          // lifetime-unique id of the message
117
   tid long messageTreeId                     // id of the message inherited by dup
118
   eid long messageEncapsulationId            // id of the message inherited by encapsulation
119
   etid long messageEncapsulationTreeId       // id of the message inherited by both dup and encapsulation
120
   c string messageClassName                  // C++ class name of the message
121
   n string messageName                       // message name
122
   k short messageKind                  0     // message kind
123
   p short messagePriority              0     // message priority
124
   l int64 messageLength                0     // message length in bits
125
   er bool hasBitError                  false // true indicates that the message has bit errors
126
   d string detail                      NULL  // detailed information of message content when recording message data is turned on
127
   pe eventnumber_t previousEventNumber       // event number from which the message being cloned was sent, or -1 if the message was sent from initialize
128
   // TODO: and many other fields, including message contents
129
}
130

    
131
CE CancelEventEntry : MessageEntry // canceling an event caused by a self message
132
{
133
}
134

    
135
BS BeginSendEntry : MessageEntry // beginning to send a message
136
{
137
}
138

    
139
ES EndSendEntry // prediction of the arrival of a message
140
{
141
   t simtime_t arrivalTime        // when the message will arrive to its destination module
142
   is bool isReceptionStart false // true indicates the message arrives with the first bit
143
}
144

    
145
SD SendDirectEntry // sending a message directly to a destination gate
146
{
147
   sm int senderModuleId            // id of the source module from which the message is being sent
148
   dm int destModuleId              // id of the destination module to which the message is being sent
149
   dg int destGateId                // id of the gate at the destination module to which the message is being sent
150
   pd simtime_t propagationDelay  0 // propagation delay as the message is propagated through the connection
151
   td simtime_t transmissionDelay 0 // transmission duration as the whole message is sent from the source gate
152
}
153

    
154
SH SendHopEntry // sending a message through a connection identified by its source module and gate id
155
{
156
   sm int senderModuleId            // id of the source module from which the message is being sent
157
   sg int senderGateId              // id of the gate at the source module from which the message is being sent
158
   pd simtime_t propagationDelay  0 // propagation delay as the message is propagated through the connection
159
   td simtime_t transmissionDelay 0 // transmission duration as the whole message is sent from the source gate
160
}
161

    
162
CM CreateMessageEntry : MessageEntry // creating a message
163
{
164
}
165

    
166
CL CloneMessageEntry : MessageEntry // cloning a message either via the copy constructor or dup
167
{
168
   cid long cloneId // lifetime-unique id of the clone
169
}
170

    
171
DM DeleteMessageEntry : MessageEntry // deleting a message
172
{
173
}