RINASim
October 2016
Documentation of framework for OMNeT++
|
#include <RMTModuleAllocator.h>
Public Member Functions | |
RMTPort * | addPort (Flow *flow) |
RMTQueue * | addQueue (RMTQueueType type, RMTPort *port, const char *queueId="0") |
void | removePort (RMTPort *port) |
void | removeQueue (RMTQueue *queue) |
void | removeQueues (RMTQueues &queues) |
RMTPort * | getQueueToPortMapping (RMTQueue *queue) |
RMTPort * | getPort (const char *name) |
RMTPort * | getInterfacePort () |
Protected Member Functions | |
virtual void | initialize () |
virtual void | handleMessage (cMessage *msg) |
Private Member Functions | |
RMTQueue * | lookup (RMTPort *port, RMTQueueType type, const char *queueName) |
Private Attributes | |
RMTQMonitorBase * | qMonPolicy |
RMTPort * | interfacePort |
std::map< RMTQueue *, RMTPort * > | queueToPort |
unsigned int | portCount |
std::map< RMTPort *, unsigned int > | portQueueCount |
unsigned int | portXCoord |
unsigned int | portYCoord |
A control unit for RMTPort & RMTQueue instances that provides an API for adding and deleting RMT ports and queues.
Definition at line 42 of file RMTModuleAllocator.h.
Instantiates a new RMTPort instance.
flow | (N-1)-flow |
Definition at line 109 of file RMTModuleAllocator.cc.
Referenced by RA::bindMediumToRMT(), and RA::bindNM1FlowToRMT().
RMTQueue * RMTModuleAllocator::addQueue | ( | RMTQueueType | type, |
RMTPort * | port, | ||
const char * | queueId = "0" |
||
) |
Instantiates a new queue and binds it to the given port.
type | queue type (in/out) |
port | (N-1)-port |
queueId | queue ID (determined by QueueIDGen policy) |
Definition at line 43 of file RMTModuleAllocator.cc.
Referenced by QueuePerNFlow::onNFlowAlloc(), SingleQueue::onNM1PortInit(), QueuePerNQoS::onNM1PortInit(), QueuePerNFlow::onNM1PortInit(), and QueuePerNCU::onNM1PortInit().
RMTPort * RMTModuleAllocator::getInterfacePort | ( | ) |
Returns the mock inteface (N-1)-port. Only to be used in the bottom DIFs.
Definition at line 228 of file RMTModuleAllocator.cc.
Referenced by RMT::fwTableLookup(), and RA::postNFlowAllocation().
RMTPort * RMTModuleAllocator::getPort | ( | const char * | name | ) |
Returns (N-1)-port by its name.
name | port name |
Definition at line 233 of file RMTModuleAllocator.cc.
Referenced by RMTSchedulingBase::handleMessage().
Returns (N-1)-port the given queue is assigned to.
queue | RMT queue |
Definition at line 223 of file RMTModuleAllocator.cc.
Referenced by PortsLoadMonitor::postPDUInsertion(), RMT::postQueueArrival(), RMT::postQueueDeparture(), and PortsLoadMonitor::prePDURelease().
|
inlineprotectedvirtual |
Definition at line 110 of file RMTModuleAllocator.h.
|
protectedvirtual |
Definition at line 27 of file RMTModuleAllocator.cc.
|
private |
Definition at line 200 of file RMTModuleAllocator.cc.
Referenced by addQueue().
void RMTModuleAllocator::removePort | ( | RMTPort * | port | ) |
Removes the specified port.
port | (N-1)-port |
Definition at line 214 of file RMTModuleAllocator.cc.
Referenced by RA::removeNM1FlowBindings().
void RMTModuleAllocator::removeQueue | ( | RMTQueue * | queue | ) |
Removes the specified queue.
queue | queue |
Definition at line 159 of file RMTModuleAllocator.cc.
Referenced by removeQueues().
void RMTModuleAllocator::removeQueues | ( | RMTQueues & | queues | ) |
Removes each queue from given vector.
queues | vector of queues |
Definition at line 191 of file RMTModuleAllocator.cc.
Referenced by removePort().
|
private |
Definition at line 114 of file RMTModuleAllocator.h.
Referenced by addPort(), getInterfacePort(), and initialize().
|
private |
Definition at line 120 of file RMTModuleAllocator.h.
Referenced by addPort(), and initialize().
|
private |
Definition at line 121 of file RMTModuleAllocator.h.
|
private |
Definition at line 122 of file RMTModuleAllocator.h.
Referenced by addPort(), and initialize().
|
private |
Definition at line 122 of file RMTModuleAllocator.h.
Referenced by addPort(), and initialize().
|
private |
Definition at line 110 of file RMTModuleAllocator.h.
Referenced by addQueue(), initialize(), and removeQueue().
Definition at line 115 of file RMTModuleAllocator.h.
Referenced by addQueue(), getQueueToPortMapping(), and removeQueue().