OverSim
GiaMessage Class Reference

Class generated from overlay/gia/GiaMessage.msg by opp_msgc. More...

#include <GiaMessage_m.h>

Inheritance diagram for GiaMessage:
BaseOverlayMessage OverSimMessage OverSimMessage_Base GiaIDMessage GiaNeighborMessage KeyListMessage TokenMessage GiaRouteMessage SearchMessage SearchResponseMessage

Public Member Functions

 GiaMessage (const char *name=NULL, int kind=0)
 GiaMessage (const GiaMessage &other)
virtual ~GiaMessage ()
GiaMessageoperator= (const GiaMessage &other)
virtual GiaMessagedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual NodeHandlegetSrcNode ()
virtual const NodeHandlegetSrcNode () const
virtual void setSrcNode (const NodeHandle &srcNode)
virtual int getHopCount () const
virtual void setHopCount (int hopCount)
virtual int getCommand () const
virtual void setCommand (int command)
virtual double getSrcCapacity () const
virtual void setSrcCapacity (double srcCapacity)
virtual int getSrcDegree () const
virtual void setSrcDegree (int srcDegree)
- 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 GiaMessage &)
- Protected Member Functions inherited from BaseOverlayMessage
bool operator== (const BaseOverlayMessage &)

Protected Attributes

NodeHandle srcNode_var
int hopCount_var
int command_var
double srcCapacity_var
int srcDegree_var
- Protected Attributes inherited from BaseOverlayMessage
int type_var
int statType_var

Private Member Functions

void copy (const GiaMessage &other)

Detailed Description

Class generated from overlay/gia/GiaMessage.msg by opp_msgc.

message GiaMessage extends BaseOverlayMessage
{
       NodeHandle srcNode;    
       int hopCount = 0;    
       int command enum(GIACommand);    
       double srcCapacity;    
       int srcDegree;    
};

Definition at line 93 of file GiaMessage_m.h.

Constructor & Destructor Documentation

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

Referenced by dup().

GiaMessage::GiaMessage ( const GiaMessage other)
virtual GiaMessage::~GiaMessage ( )
virtual

Member Function Documentation

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

Reimplemented from BaseOverlayMessage.

Reimplemented in SearchResponseMessage, SearchMessage, KeyListMessage, GiaRouteMessage, GiaIDMessage, TokenMessage, and GiaNeighborMessage.

Definition at line 114 of file GiaMessage_m.h.

{return new GiaMessage(*this);}
virtual int GiaMessage::getCommand ( ) const
virtual

Referenced by Gia::handleUDPMessage().

virtual int GiaMessage::getHopCount ( ) const
virtual
virtual double GiaMessage::getSrcCapacity ( ) const
virtual

Referenced by Gia::handleUDPMessage().

virtual int GiaMessage::getSrcDegree ( ) const
virtual
virtual const NodeHandle& GiaMessage::getSrcNode ( ) const
inlinevirtual

Definition at line 120 of file GiaMessage_m.h.

Referenced by getSrcNode().

{return const_cast<GiaMessage*>(this)->getSrcNode();}
GiaMessage& GiaMessage::operator= ( const GiaMessage other)
bool GiaMessage::operator== ( const GiaMessage )
protected
virtual void GiaMessage::parsimPack ( cCommBuffer *  b)
virtual
virtual void GiaMessage::parsimUnpack ( cCommBuffer *  b)
virtual
virtual void GiaMessage::setHopCount ( int  hopCount)
virtual

Member Data Documentation

int GiaMessage::command_var
protected

Definition at line 98 of file GiaMessage_m.h.

int GiaMessage::hopCount_var
protected

Definition at line 97 of file GiaMessage_m.h.

double GiaMessage::srcCapacity_var
protected

Definition at line 99 of file GiaMessage_m.h.

int GiaMessage::srcDegree_var
protected

Definition at line 100 of file GiaMessage_m.h.

NodeHandle GiaMessage::srcNode_var
protected

Definition at line 96 of file GiaMessage_m.h.


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