Package: simu5g.apps.d2dMultihop.eventGenerator
EventGenerator
simple moduleThis module is 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.
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
// // This module is 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/apps/d2dMultihop/eventGenerator/EventGenerator.ned