Package: simu5g.apps.mec.RnisTestApp
UeRnisTestApp
simple moduleThis 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 MecRnisTestApp in the MEC system. The application is used to test and showcase the functionalities of the RNIService API. Once the peer MEC application is up and running, this module sends a message to the MEC application, requesting it to start querying the RNIS API periodically. When the response from the MecRnisTestApp is received, the result of the query to the RNIS API is printed to the QtEnv log
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
localPort | int | 4000 |
connection infos |
deviceAppPort | int | 4000 |
port of the DeviceApp |
deviceAppAddress | string |
ipAddress of the DeviceApp |
|
queryingPeriod | double | 1s |
RNIS querying period |
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 |
autoscheduling infos |
startTime | double | 0s | |
stopTime | double | 120s | |
mecAppName | string | "MecRnisTestApp" | |
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 // ~MecRnisTestApp in the MEC system. The application is used to test and showcase the // functionalities of the ~RNIService API. // Once the peer MEC application is up and running, this module sends a message to the MEC // application, requesting it to start querying the RNIS API periodically. When the // response from the ~MecRnisTestApp is received, the result of the query to the RNIS API // is printed to the QtEnv log // simple UeRnisTestApp like IApp { parameters: @display("i=block/source"); //connection infos int localPort = default(4000); int deviceAppPort = default(4000); // port of the DeviceApp string deviceAppAddress; // ipAddress of the DeviceApp double queryingPeriod @unit("s") = default(1s); // RNIS querying period int tos = default(-1); // if not -1, set the Type Of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value //autoscheduling infos double period @unit("s") = default(1s); double startTime @unit("s") = default(0s); double stopTime @unit("s") = default(120s); string mecAppName = default("MecRnisTestApp"); bool logger = default(false); gates: output socketOut; input socketIn; }File: src/apps/mec/RnisTestApp/UeRnisTestApp.ned