EventGenerator¶
Package: simu5g.apps.d2dMultihop.eventGenerator
simple module EventGenerator
Only used in conjunction with UEs running a MultihopD2D application instance. It generates periodic “events” (e.g., a collision between vehicles) at random positions within the network (or by randomly selecting a node) and notifies a MultihopD2D application via a direct method call. The MultihopD2D application, in turn, broadcasts the notification message to surrounding UEs.
Usage diagram¶
Used in¶
Name |
Type |
Description |
|---|---|---|
network |
Five eNodeB cells, each reaching the EPC PgwStandard through a router of its own, with a further router and a server behind the core. There are no X2 links. numUe1 to numUe5 LteUe terminals attach per cell, and an EventGenerator and a MultihopD2DStatistics module sit beside them, wired to nothing. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
binderModule |
string |
“binder” |
|
startTime |
double |
0.1s |
|
eventPeriod |
double |
1s |
|
singleEventSource |
bool |
true |
|
forceStartingCoord |
bool |
false |
|
startingCoordX |
double |
-1.0m |
|
startingCoordY |
double |
-1.0m |
|
startingUe |
int |
0 |
Properties¶
Name |
Value |
Description |
|---|---|---|
display |
i=block/cogwheel |
Source code¶
//
// Only used in conjunction with UEs running
// a ~MultihopD2D application instance. It generates periodic
// "events" (e.g., a collision between vehicles) at random
// positions within the network (or by randomly selecting a node)
// and notifies a ~MultihopD2D application via a direct method
// call. The ~MultihopD2D application, in turn, broadcasts
// the notification message to surrounding UEs.
//
simple EventGenerator
{
parameters:
string binderModule = default("binder");
double startTime @unit(s) = default(0.1s);
volatile double eventPeriod @unit(s) = default(1s);
bool singleEventSource = default(true);
bool forceStartingCoord = default(false);
double startingCoordX @unit(m) = default(-1.0m);
double startingCoordY @unit(m) = default(-1.0m);
int startingUe = default(0);
@display("i=block/cogwheel");
}
File: src/simu5g/apps/d2dMultihop/eventGenerator/EventGenerator.ned