RINASim  October 2016
Documentation of framework for OMNeT++
FlowListener.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <omnetpp.h>
4 
5 #include "RINASignals.h"
6 #include "Flow.h"
7 #include "RA.h"
8 #include <set>
9 
10 using namespace std;
11 
12 class FlowContainer : public cMessage {
13  public:
14  Flow * f;
15  RA * ra;
16  FlowContainer(Flow * _f, RA * _ra);
17 
18  bool operator<(const FlowContainer &o) const;
19  bool operator==(const FlowContainer & o) const;
20 };
21 
22 class FlowListener : public cSimpleModule, cListener {
23  public:
24  using cListener::receiveSignal;
25  void receiveSignal(cComponent *source, simsignal_t signalID, cObject *obj);
26  protected:
27  void initialize();
28  void handleMessage(cMessage *msg);
29 
30  vector<FlowContainer> flows;
31  double killTime;
32  int killCount;
33 };
Class representing flow object with attributes from specs.
Definition: Flow.h:45
double killTime
Definition: FlowListener.h:31
Monitoring and adjustment of IPC process operations .
vector< FlowContainer > flows
Definition: FlowListener.h:30
Definition: RA.h:61