NED File src/simu5g/apps/mec/MecApps/MultiUeMecApp.ned¶
Name |
Type |
Description |
|---|---|---|
simple module |
This is an empty MEC app which is used as a model for MEC apps that should be shared among multiple UEs. Any shared MEC app that should extend this app |
Source code¶
//
// Simu5G
//
// Copyright (C) 2019-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.mec.MecApps;
import inet.applications.contract.IApp;
import simu5g.mec.platform.IMecApp;
//
// This is an empty MEC app which is used as a model for MEC apps that should
// be shared among multiple UEs. Any shared MEC app that should extend this app
simple MultiUeMecApp like IMecApp, IApp
{
parameters:
@class(simu5g::MultiUeMecApp);
@display("i=block/app;is=s");
int packetSize @unit(B) = default(10B);
string interfaceTableModule = default("");
int mecAppIndex;
int mecAppId;
int localUePort;
string mp1Address = default("");
int mp1Port = default(10021);
// Required resources
double requiredRam @unit("B");
double requiredDisk @unit("B");
double requiredCpu;
// IApp parameters
int timeToLive = default(-1); // If not -1, set the TTL (IPv4) or Hop Limit (IPv6) field of sent packets to this value
int dscp = default(-1); // If not -1, set the DSCP (IPv4/IPv6) field of sent packets to this value
int tos = default(-1); // If not -1, set the Type of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value
bool logger = default(false);
gates:
input mePlatformIn;
output mePlatformOut;
input socketIn;
output socketOut;
}