OverSim
SimpleInfo Class Reference

#include <SimpleInfo.h>

Inheritance diagram for SimpleInfo:
PeerInfo

Public Member Functions

 SimpleInfo (uint32_t type, int moduleId, cObject **context)
 constructor
 ~SimpleInfo ()
void setEntry (SimpleNodeEntry *entry)
 setter and getter
SimpleNodeEntrygetEntry ()
- 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 SimpleInfo polymorphic

Protected Attributes

SimpleNodeEntryentry

Detailed Description

Definition at line 31 of file SimpleInfo.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 25 of file SimpleInfo.cc.

{
entry = NULL;
}
SimpleInfo::~SimpleInfo ( )

Definition at line 30 of file SimpleInfo.cc.

{
delete entry;
}

Member Function Documentation

void SimpleInfo::dummy ( )
protectedvirtual

dummy-function to make SimpleInfo polymorphic

Reimplemented from PeerInfo.

Definition at line 35 of file SimpleInfo.cc.

{}
void SimpleInfo::setEntry ( SimpleNodeEntry entry)
inline

setter and getter

Definition at line 43 of file SimpleInfo.h.

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

{ delete this->entry; this->entry = entry; };

Member Data Documentation

SimpleNodeEntry* SimpleInfo::entry
protected

Definition at line 49 of file SimpleInfo.h.

Referenced by getEntry(), setEntry(), SimpleInfo(), and ~SimpleInfo().


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