OverSim
InetInfo Class Reference

#include <InetInfo.h>

Inheritance diagram for InetInfo:
PeerInfo

Public Member Functions

 InetInfo (uint32_t type, int moduleId, cObject **context)
 constructor
void setAccessNetModule (AccessNet *accessNetModule)
 setter and getter
void setNodeID (int nodeID)
AccessNetgetAccessNetModule ()
int getNodeID ()
- Public Member Functions inherited from PeerInfo
 PeerInfo (uint32_t type, int moduleId, cObject **context)
 constructor
virtual ~PeerInfo ()
int getModuleID ()
 returns the moduleId of the peer
int8_t getNpsLayer ()
 returns the NPS layer of the peer
void setNpsLayer (int8_t layer)
 set the NPS layer of the peer
uint32_t getTypeID ()
 returns the type of the node
bool isPreKilled ()
 is the peer marked for deletion?
void setPreKilled (bool killed=true)
 mark that the peer gets deleted soon
bool isMalicious ()
 is the peer malicious?
cObject ** getContext ()

Protected Member Functions

void dummy ()
 dummy-function to make InetInfo polymorphic

Protected Attributes

AccessNetaccessNetModule
int nodeID

Detailed Description

Definition at line 32 of file InetInfo.h.

Constructor & Destructor Documentation

InetInfo::InetInfo ( uint32_t  type,
int  moduleId,
cObject **  context 
)

constructor

Definition at line 25 of file InetInfo.cc.

Member Function Documentation

void InetInfo::dummy ( )
protectedvirtual

dummy-function to make InetInfo polymorphic

Reimplemented from PeerInfo.

Definition at line 30 of file InetInfo.cc.

{}
AccessNet* InetInfo::getAccessNetModule ( )
inline
int InetInfo::getNodeID ( )
inline
void InetInfo::setAccessNetModule ( AccessNet accessNetModule)
inline

setter and getter

Definition at line 43 of file InetInfo.h.

Referenced by InetUnderlayConfigurator::createNode(), and InetUnderlayConfigurator::migrateNode().

{ this->accessNetModule = accessNetModule; };
void InetInfo::setNodeID ( int  nodeID)
inline

Definition at line 44 of file InetInfo.h.

Referenced by InetUnderlayConfigurator::createNode(), and InetUnderlayConfigurator::migrateNode().

{ this->nodeID = nodeID; };

Member Data Documentation

AccessNet* InetInfo::accessNetModule
protected

Definition at line 51 of file InetInfo.h.

Referenced by getAccessNetModule(), InetInfo(), and setAccessNetModule().

int InetInfo::nodeID
protected

Definition at line 52 of file InetInfo.h.

Referenced by getNodeID(), and setNodeID().


The documentation for this class was generated from the following files: