Inherited by NicEntryDebug, and NicEntryDirect.
Inheritance diagram for NicEntry:
|typedef std::map< int, cGate * >||GateList|
Public Member Functions
|NicEntry (bool debug)|
|Constrcutor, initializes all members. |
|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)|
|module id of the nic for which information is stored |
|Pointer to the host module. |
|Module id of the host module this nic belongs to. |
|Geographic location of the nic. |
|Debug output switch. |
|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