DeviceAppPacket.msg

Msg File src/apps/mec/DeviceApp/DeviceAppMessages/DeviceAppPacket.msg

Name Type Description
DeviceAppPacket class (no description)
DeviceAppStartPacket class (no description)
DeviceAppStopPacket class (no description)
DeviceAppStartAckPacket class (no description)
DeviceAppStopAckPacket class (no description)

Source code

//
//                  Simu5G
//
// Authors: Giovanni Nardini, Giovanni Stea, Antonio Virdis (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.
//


import inet.common.INETDefs;
import inet.common.packet.chunk.Chunk;

import nodes.mec.MECPlatform.MECPackets;
//cplusplus {{
//#include "nodes/mec/MECPlatform/MECPackets_m.h";
//}}
//import lte.nodes.mec.MEPlatform.MECPackets.MECPacket;

namespace simu5g;

class DeviceAppPacket extends MECPacket {
//    unsigned int sno;
//    simtime_t timestamp;
//    
//    //type of message
//    string type;
//    string operation;
}

class DeviceAppStartPacket extends DeviceAppPacket
{
    string mecAppDId;
	string mecAppName;
	string mecAppProvider;
	string appPackageSource;
    // determines whether the instantiated app should be unique for every UE or shared among them
    bool shared = false;
    // if the MEC app is shared, determines which DevAppId should be used
    int associateDevAppId = -1;
}

class DeviceAppStopPacket extends DeviceAppPacket
{
    string contextId;
}

class DeviceAppStartAckPacket extends DeviceAppPacket
{
    string contextId;
    bool result;
    string ipAddress;
    string reason;
	int port;
}

class DeviceAppStopAckPacket extends DeviceAppPacket
{
    bool result;
    string reason;
}