#include <NicEntryDebug.h>
Inherits NicEntry.
Inheritance diagram for NicEntryDebug:
Public Member Functions | |
NicEntryDebug (bool debug) | |
Constrcutor, initializes all members. | |
virtual | ~NicEntryDebug () |
Destructor -- needs to be there... | |
virtual void | connectTo (NicEntry *) |
Connect two nics. | |
virtual void | disconnectFrom (NicEntry *) |
Disconnect two nics. | |
Protected Member Functions | |
cGate * | requestInGate (void) |
Returns a free in gate of the nic. | |
cGate * | requestOutGate (void) |
Returns a free out gate of the nic. | |
Protected Attributes | |
int | inCnt |
Number of in gates allocated for the nic so far. | |
int | outCnt |
Number of out gates allocated for the nic so far. | |
std::vector< cGate * > | freeInGates |
In Gates that were once used but are not connected now. | |
std::vector< cGate * > | freeOutGates |
Out Gates that were once used but are not connected now. |
|
Constrcutor, initializes all members.
|
|
Connect two nics. Establish unidirectional connection with other nic
It handles compound modules correctly, provided that the physical module is called "phy" or "snrEval" respectively in the .ned files. Implements NicEntry. |
|
Disconnect two nics. Release unidirectional connection with other nic
Implements NicEntry. |
|
Returns a free in gate of the nic. This checks the list of free in gates, if one is available it is returned. Otherwise, a new in gate is added to the nic. This function handles the interaction with snrEval / phy and nic corectly, provided that the phy name is "snrEval or "phy" respectively in the .ned files. |
|
Returns a free out gate of the nic. returns a free out gate. If none is available it is created. See NicEntry::requestInGate for a detailed description |