#include <NicEntry.h>
Inherited by NicEntryDebug, and NicEntryDirect.
Inheritance diagram for NicEntry:
Public Types | |
typedef std::map< int, cGate * > | GateList |
Public Member Functions | |
NicEntry (bool debug) | |
Constrcutor, initializes all members. | |
virtual | ~NicEntry () |
Destructor -- needs to be there... | |
virtual void | connectTo (NicEntry *)=0 |
Connect two nics. | |
virtual void | disconnectFrom (NicEntry *)=0 |
Disconnect two nics. | |
const GateList & | getGateList () |
return the actual gateList | |
bool | isConnected (const NicEntry *other) |
Checks if this nic is connected to the "other" nic. | |
const cGate * | getOutGateTo (int to) |
Public Attributes | |
int | nicId |
module id of the nic for which information is stored | |
cModule * | nicPtr |
Pointer to the host module. | |
int | hostId |
Module id of the host module this nic belongs to. | |
Coord | pos |
Geographic location of the nic. | |
Protected Attributes | |
bool | coreDebug |
Debug output switch. | |
GateList | outConns |
Outgoing connections of this nic. |
|
Constrcutor, initializes all members.
|
|
Called by P2PPhyLayer. Needed to send a packet directly to a certain nic without other nodes 'hearing' it. This is only useful for physical layers that work with bit error probability like P2PPhyLayer.
|
|
Outgoing connections of this nic. This map stores all connection for this nic to other nics The first entry is the module id of the nic the connection is going to and the second the gate to send the msg to |