OverSim
|
Configuration module for access networks. More...
#include <AccessNet.h>
Public Member Functions | |
virtual int | size () |
Returns number of nodes at this access router. | |
virtual cModule * | getAccessNode () |
Getter for router module. | |
virtual IPvXAddress | addOverlayNode (cModule *overlayNode, bool migrate=false) |
Gathers some information about the terminal and appends it to the overlay terminal vector. | |
int | getRandomNodeId () |
returns a random ID | |
virtual cModule * | removeOverlayNode (int ID) |
Removes a node from the access net. | |
virtual cModule * | getOverlayNode (int ID) |
searches overlayTerminal[] for a given node | |
void | selectChannel (const std::string &typeRx, const std::string &typeTx) |
set access types |
Protected Member Functions | |
IPvXAddress | getAssignedPrefix (IInterfaceTable *ift) |
virtual int | numInitStages () const |
OMNeT number of init stages. | |
virtual void | initialize (int stage) |
Gather some information about the router node. | |
virtual void | handleMessage (cMessage *msg) |
OMNeT handleMessage method. | |
virtual void | updateDisplayString () |
Displays the current number of terminals connected to this access net. |
Protected Attributes | |
NodeInfo | router |
this access router | |
std::vector< TerminalInfo > | overlayTerminal |
the terminals at this access router | |
std::vector< IPvXAddress > | returnedIPs |
list of IP addresses wich are no longer in use | |
uint32_t | lastIP |
last assigned IP address | |
bool | useIPv6 |
IPv6 address usage. | |
std::vector< std::string > | channelTypesRx |
vector of possible access channels (rx) | |
std::string | channelTypeRxStr |
the current active channel type (rx) | |
std::vector< std::string > | channelTypesTx |
vector of possible access channels (tx) | |
std::string | channelTypeTxStr |
the current active channel type (tx) | |
cOutVector | lifetimeVector |
vector of node lifetimes |
Configuration module for access networks.
Definition at line 106 of file AccessNet.h.
|
virtual |
Gathers some information about the terminal and appends it to the overlay terminal vector.
Gathers some information about the terminal and appends it to the overlay terminal vector. (called by InetUnderlayConfigurator in stage MAX_STAGE_UNDERLAY)
Definition at line 88 of file AccessNet.cc.
Referenced by InetUnderlayConfigurator::migrateNode().
|
inlinevirtual |
Getter for router module.
Definition at line 125 of file AccessNet.h.
|
protected |
Definition at line 467 of file AccessNet.cc.
Referenced by initialize().
|
virtual |
searches overlayTerminal[] for a given node
ID | position of the node in overlayTerminal |
Definition at line 426 of file AccessNet.cc.
Referenced by InetUnderlayConfigurator::preKillNode().
int AccessNet::getRandomNodeId | ( | ) |
returns a random ID
Definition at line 347 of file AccessNet.cc.
|
protectedvirtual |
OMNeT handleMessage method.
msg | the message to handle |
Definition at line 83 of file AccessNet.cc.
|
protectedvirtual |
Gather some information about the router node.
Definition at line 46 of file AccessNet.cc.
|
inlineprotectedvirtual |
OMNeT number of init stages.
Definition at line 182 of file AccessNet.h.
|
virtual |
Removes a node from the access net.
Definition at line 354 of file AccessNet.cc.
Referenced by InetUnderlayConfigurator::handleTimerEvent(), and InetUnderlayConfigurator::migrateNode().
|
inline |
set access types
typeRx | access receive type |
typeTx | access transmit type |
Definition at line 164 of file AccessNet.h.
Referenced by initialize().
|
inlinevirtual |
Returns number of nodes at this access router.
Definition at line 115 of file AccessNet.h.
|
protectedvirtual |
Displays the current number of terminals connected to this access net.
Definition at line 439 of file AccessNet.cc.
Referenced by addOverlayNode(), initialize(), and removeOverlayNode().
|
protected |
the current active channel type (rx)
Definition at line 208 of file AccessNet.h.
Referenced by addOverlayNode(), and selectChannel().
|
protected |
vector of possible access channels (rx)
Definition at line 207 of file AccessNet.h.
Referenced by initialize().
|
protected |
vector of possible access channels (tx)
Definition at line 209 of file AccessNet.h.
Referenced by initialize().
|
protected |
the current active channel type (tx)
Definition at line 210 of file AccessNet.h.
Referenced by addOverlayNode(), and selectChannel().
|
protected |
last assigned IP address
Definition at line 204 of file AccessNet.h.
Referenced by addOverlayNode(), and initialize().
|
protected |
vector of node lifetimes
Definition at line 213 of file AccessNet.h.
Referenced by initialize(), and removeOverlayNode().
|
protected |
the terminals at this access router
Definition at line 173 of file AccessNet.h.
Referenced by addOverlayNode(), getOverlayNode(), getRandomNodeId(), initialize(), removeOverlayNode(), size(), and updateDisplayString().
|
protected |
list of IP addresses wich are no longer in use
Definition at line 174 of file AccessNet.h.
|
protected |
this access router
Definition at line 172 of file AccessNet.h.
Referenced by addOverlayNode(), getAccessNode(), initialize(), and removeOverlayNode().
|
protected |
IPv6 address usage.
Definition at line 205 of file AccessNet.h.
Referenced by addOverlayNode(), initialize(), and removeOverlayNode().