UeWarningAlertApp¶
Package: simu5g.apps.mec.WarningAlert
simple module UeWarningAlertApp
This application is to be instantiated on the UE side. It requires that a DeviceApp is also instantiated on the UE. This module requests the DeviceApp to instantiate a MecWarningAlertApp in the MEC system. Once the peer MEC application is up and running, this module sends a message to the MEC application, requesting that it be notified when the UE running this module enters a circular area defined by its (configurable) center and radius.
Inheritance diagram¶
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
mobilityModule |
string |
||
localPort |
int |
4000 |
Connection parameters |
deviceAppPort |
int |
4000 |
Port of the DeviceApp |
deviceAppAddress |
string |
IP address of the DeviceApp |
|
packetSize |
int |
10B |
|
tos |
int |
-1 |
If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value |
period |
double |
1s |
Auto-scheduling parameters |
startTime |
double |
0s |
|
stopTime |
double |
120s |
|
mecAppName |
string |
“MecWarningAlertApp” |
The “appName” of the application descriptor to instantiate; the emulation scenario uses “MecWarningAlertApp_External” |
positionX |
double |
210m |
|
positionY |
double |
260m |
|
positionZ |
double |
0m |
|
radius |
double |
60m |
|
logger |
bool |
false |
Properties¶
Name |
Value |
Description |
|---|---|---|
display |
i=block/source |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
socketOut |
output |
||
socketIn |
input |
Source code¶
//
// This application is to be instantiated on the UE side. It requires that a ~DeviceApp is
// also instantiated on the UE. This module requests the ~DeviceApp to instantiate a
// ~MecWarningAlertApp in the MEC system.
// Once the peer MEC application is up and running, this module sends a message to the MEC
// application, requesting that it be notified when the UE running this module enters
// a circular area defined by its (configurable) center and radius.
//
simple UeWarningAlertApp like IApp
{
parameters:
@display("i=block/source");
string mobilityModule;
// Connection parameters
int localPort = default(4000);
int deviceAppPort = default(4000); // Port of the DeviceApp
string deviceAppAddress; // IP address of the DeviceApp
int packetSize @unit(B) = default(10B);
int tos = default(-1); // If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value
// Auto-scheduling parameters
double period @unit("s") = default(1s);
double startTime @unit("s") = default(0s);
double stopTime @unit("s") = default(120s);
string mecAppName = default("MecWarningAlertApp"); // The "appName" of the application descriptor to instantiate; the emulation scenario uses "MecWarningAlertApp_External"
double positionX @unit(m) = default(210m);
double positionY @unit(m) = default(260m);
double positionZ @unit(m) = default(0m);
double radius @unit(m) = default(60m);
bool logger = default(false);
gates:
output socketOut;
input socketIn;
}
File: src/simu5g/apps/mec/WarningAlert/UeWarningAlertApp.ned