MecWarningAlertApp

Package: simu5g.apps.mec.WarningAlert

simple module MecWarningAlertApp

Application that is dynamically instantiated on a MEC host upon request from a UeWarningAlertApp via a DeviceApp. It receives requests from the UE to be notified when it enters a circular area defined by its center and radius. This is accomplished by subscribing to the LocationService provided by the MEC Host. This module receives a notification from the Location Service when the UE enters/exits the area and, in turn, sends a message to the UE.

simu5g.apps.mec.WarningAlert.MecWarningAlertAppMecWarningAlertAppsimple

Inheritance diagram

Extends

Name

Type

Description

MecAppBase

simple module

This is a MEC app that … TBC

Parameters

Name

Type

Default value

Description

mecAppId

int

mecAppIndex

int

mp1Address

string

“”

mp1Port

int

10021

vimModule

string

“^.vim”

Module references

mecPlatformModule

string

“^.mecPlatform”

serviceRegistryModule

string

“^.mecPlatform.serviceRegistry”

requiredRam

double

Required resources

requiredDisk

double

requiredCpu

double

timeToLive

int

-1

If not -1, set the TTL (IPv4) or Hop Limit (IPv6) field of sent packets to this value

dscp

int

-1

If not -1, set the DSCP (IPv4/IPv6) field of sent packets to this value

tos

int

-1

If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value

packetSize

int

10B

localUePort

int

logger

bool

false

Properties

Name

Value

Description

class

MecWarningAlertApp

display

i=block/app;is=s

Gates

Name

Direction

Size

Description

mePlatformIn

input

mePlatformOut

output

socketIn

input

socketOut

output

Source code

//
// Application that is dynamically instantiated on a MEC host upon request
// from a ~UeWarningAlertApp via a ~DeviceApp.
// It receives requests from the UE to be notified when it enters a circular area defined by
// its center and radius. This is accomplished by subscribing to the ~LocationService provided
// by the MEC Host. This module receives a notification from the Location Service when
// the UE enters/exits the area and, in turn, sends a message to the UE.
//
simple MecWarningAlertApp extends MecAppBase
{
    parameters:
        @class(MecWarningAlertApp);
        @display("i=block/app;is=s");

        int packetSize @unit(B) = default(10B);

        int localUePort;

        bool logger = default(false);
}

File: src/simu5g/apps/mec/WarningAlert/MecWarningAlertApp.ned