OverSim
NiceHeartbeat Class Reference

Class generated from overlay/nice/NiceMessage.msg by opp_msgc. More...

#include <NiceMessage_m.h>

Inheritance diagram for NiceHeartbeat:
NiceMemberMessage NiceMessage BaseOverlayMessage OverSimMessage OverSimMessage_Base NiceLeaderHeartbeat

Public Member Functions

 NiceHeartbeat (const char *name=NULL, int kind=0)
 NiceHeartbeat (const NiceHeartbeat &other)
virtual ~NiceHeartbeat ()
NiceHeartbeatoperator= (const NiceHeartbeat &other)
virtual NiceHeartbeatdup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual unsigned int getSeqNo () const
virtual void setSeqNo (unsigned int seqNo)
virtual unsigned int getSeqRspNo () const
virtual void setSeqRspNo (unsigned int seqRspNo)
virtual double getHb_delay () const
virtual void setHb_delay (double hb_delay)
virtual void setDistancesArraySize (unsigned int size)
virtual unsigned int getDistancesArraySize () const
virtual double getDistances (unsigned int k) const
virtual void setDistances (unsigned int k, double distances)
virtual double getOne_hop_distance () const
virtual void setOne_hop_distance (double one_hop_distance)
virtual unsigned int getSublayermembers () const
virtual void setSublayermembers (unsigned int sublayermembers)
- Public Member Functions inherited from NiceMemberMessage
 NiceMemberMessage (const char *name=NULL, int kind=0)
 NiceMemberMessage (const NiceMemberMessage &other)
virtual ~NiceMemberMessage ()
NiceMemberMessageoperator= (const NiceMemberMessage &other)
virtual void setMembersArraySize (unsigned int size)
virtual unsigned int getMembersArraySize () const
virtual TransportAddressgetMembers (unsigned int k)
virtual const TransportAddressgetMembers (unsigned int k) const
virtual void setMembers (unsigned int k, const TransportAddress &members)
- Public Member Functions inherited from NiceMessage
 NiceMessage (const char *name=NULL, int kind=0)
 NiceMessage (const NiceMessage &other)
virtual ~NiceMessage ()
NiceMessageoperator= (const NiceMessage &other)
virtual int getCommand () const
virtual void setCommand (int command)
virtual TransportAddressgetSrcNode ()
virtual const TransportAddressgetSrcNode () const
virtual void setSrcNode (const TransportAddress &srcNode)
virtual short getLayer () const
virtual void setLayer (short layer)
- Public Member Functions inherited from BaseOverlayMessage
 BaseOverlayMessage (const char *name=NULL, int kind=0)
 BaseOverlayMessage (const BaseOverlayMessage &other)
virtual ~BaseOverlayMessage ()
BaseOverlayMessageoperator= (const BaseOverlayMessage &other)
virtual int getType () const
virtual void setType (int type)
virtual int getStatType () const
virtual void setStatType (int statType)
- Public Member Functions inherited from OverSimMessage
 OverSimMessage (const char *name=NULL, int kind=0)
 OverSimMessage (const OverSimMessage &other)
OverSimMessageoperator= (const OverSimMessage &other)
- Public Member Functions inherited from OverSimMessage_Base
virtual ~OverSimMessage_Base ()

Protected Member Functions

bool operator== (const NiceHeartbeat &)
- Protected Member Functions inherited from NiceMemberMessage
bool operator== (const NiceMemberMessage &)
- Protected Member Functions inherited from NiceMessage
bool operator== (const NiceMessage &)
- Protected Member Functions inherited from BaseOverlayMessage
bool operator== (const BaseOverlayMessage &)

Protected Attributes

unsigned int seqNo_var
unsigned int seqRspNo_var
double hb_delay_var
double * distances_var
unsigned int distances_arraysize
double one_hop_distance_var
unsigned int sublayermembers_var
- Protected Attributes inherited from NiceMemberMessage
TransportAddressmembers_var
unsigned int members_arraysize
- Protected Attributes inherited from NiceMessage
int command_var
TransportAddress srcNode_var
short layer_var
- Protected Attributes inherited from BaseOverlayMessage
int type_var
int statType_var

Private Member Functions

void copy (const NiceHeartbeat &other)

Detailed Description

Class generated from overlay/nice/NiceMessage.msg by opp_msgc.

message NiceHeartbeat extends NiceMemberMessage
{
    unsigned int seqNo;
    unsigned int seqRspNo;
    double hb_delay;
    double distances[];
    double one_hop_distance;
    unsigned int sublayermembers;
}

Definition at line 229 of file NiceMessage_m.h.

Constructor & Destructor Documentation

NiceHeartbeat::NiceHeartbeat ( const char *  name = NULL,
int  kind = 0 
)

Referenced by dup().

NiceHeartbeat::NiceHeartbeat ( const NiceHeartbeat other)
virtual NiceHeartbeat::~NiceHeartbeat ( )
virtual

Member Function Documentation

void NiceHeartbeat::copy ( const NiceHeartbeat other)
private
virtual NiceHeartbeat* NiceHeartbeat::dup ( ) const
inlinevirtual

Reimplemented from NiceMemberMessage.

Reimplemented in NiceLeaderHeartbeat.

Definition at line 252 of file NiceMessage_m.h.

Referenced by oversim::Nice::sendHeartbeats().

{return new NiceHeartbeat(*this);}
virtual double NiceHeartbeat::getDistances ( unsigned int  k) const
virtual
virtual unsigned int NiceHeartbeat::getDistancesArraySize ( ) const
virtual
virtual double NiceHeartbeat::getHb_delay ( ) const
virtual
virtual double NiceHeartbeat::getOne_hop_distance ( ) const
virtual
virtual unsigned int NiceHeartbeat::getSeqNo ( ) const
virtual
virtual unsigned int NiceHeartbeat::getSeqRspNo ( ) const
virtual
virtual unsigned int NiceHeartbeat::getSublayermembers ( ) const
virtual
NiceHeartbeat& NiceHeartbeat::operator= ( const NiceHeartbeat other)
bool NiceHeartbeat::operator== ( const NiceHeartbeat )
protected
virtual void NiceHeartbeat::parsimPack ( cCommBuffer *  b)
virtual

Reimplemented from NiceMemberMessage.

Reimplemented in NiceLeaderHeartbeat.

Referenced by doPacking().

virtual void NiceHeartbeat::parsimUnpack ( cCommBuffer *  b)
virtual

Reimplemented from NiceMemberMessage.

Reimplemented in NiceLeaderHeartbeat.

Referenced by doUnpacking().

virtual void NiceHeartbeat::setDistances ( unsigned int  k,
double  distances 
)
virtual
virtual void NiceHeartbeat::setDistancesArraySize ( unsigned int  size)
virtual
virtual void NiceHeartbeat::setHb_delay ( double  hb_delay)
virtual
virtual void NiceHeartbeat::setOne_hop_distance ( double  one_hop_distance)
virtual
virtual void NiceHeartbeat::setSeqNo ( unsigned int  seqNo)
virtual
virtual void NiceHeartbeat::setSeqRspNo ( unsigned int  seqRspNo)
virtual
virtual void NiceHeartbeat::setSublayermembers ( unsigned int  sublayermembers)
virtual

Member Data Documentation

unsigned int NiceHeartbeat::distances_arraysize
protected

Definition at line 236 of file NiceMessage_m.h.

double* NiceHeartbeat::distances_var
protected

Definition at line 235 of file NiceMessage_m.h.

double NiceHeartbeat::hb_delay_var
protected

Definition at line 234 of file NiceMessage_m.h.

double NiceHeartbeat::one_hop_distance_var
protected

Definition at line 237 of file NiceMessage_m.h.

unsigned int NiceHeartbeat::seqNo_var
protected

Definition at line 232 of file NiceMessage_m.h.

unsigned int NiceHeartbeat::seqRspNo_var
protected

Definition at line 233 of file NiceMessage_m.h.

unsigned int NiceHeartbeat::sublayermembers_var
protected

Definition at line 238 of file NiceMessage_m.h.


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