QosFlowClassifier.h Source File

Simu5G: QosFlowClassifier.h Source File
Simu5G
QosFlowClassifier.h
1//
2// Simu5G
3//
4// Authors: Andras Varga (OpenSim Ltd)
5//
6// This file is part of a software released under the license included in file
7// "license.pdf". Please read LICENSE and README files before using it.
8// The above files and the present reference are part of the software itself,
9// and cannot be removed from it.
10//
11
12#ifndef _QOS_FLOW_CLASSIFIER_H_
13#define _QOS_FLOW_CLASSIFIER_H_
14
15#include <omnetpp.h>
16#include <inet/common/packet/Packet.h>
17
18#include "simu5g/common/LteCommon.h"
19#include "simu5g/common/QfiRuleSet.h"
20
21namespace simu5g {
22
23using namespace omnetpp;
24
34class QosFlowClassifier : public cSimpleModule
35{
36 protected:
37 // The uplink QFI-assignment rules, delivered by the bearer configurator through
38 // the UE's RRC (see the ulQfiRules parameter of ~BearerConfigurator); empty
39 // until delivered, classifying nothing
40 QfiRuleSet qfiRules_;
41
42 // The type of the UE's session (the sessionType parameter)
43 SessionType sessionType_ = IP_V4;
44
45 void initialize() override;
46 void handleMessage(cMessage *msg) override;
47
48 public:
49 // Take delivery of this UE's compiled uplink QFI-assignment rules
50 virtual void setQfiRules(QfiRuleSet&& rules);
51};
52
53} // namespace simu5g
54
55#endif
An ordered set of QFI-assignment rules, shared by every module that classifies packets to QoS flows.
Definition QfiRuleSet.h:57
Classifies a UE's uplink packets to QoS flows (see QosFlowClassifier.ned).
Definition QosFlowClassifier.h:35
Definition AlertReceiver.h:24