NED File src/simu5g/apps/d2dMultihop/eventGenerator/EventGenerator.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
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. |
Source code¶
//
// Simu5G
//
// Copyright (C) 2012-2021 Giovanni Nardini, Giovanni Stea, Antonio Virdis et al. (University of Pisa)
// Copyright (C) 2022-2026 Giovanni Nardini, Giovanni Stea et al. (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,
// and cannot be removed from it.
//
package simu5g.apps.d2dMultihop.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.
//
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");
}