OverSim
TokenMessage Class Reference

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

#include <GiaMessage_m.h>

Inheritance diagram for TokenMessage:
GiaMessage BaseOverlayMessage OverSimMessage OverSimMessage_Base

Public Member Functions

 TokenMessage (const char *name=NULL, int kind=0)
 TokenMessage (const TokenMessage &other)
virtual ~TokenMessage ()
TokenMessageoperator= (const TokenMessage &other)
virtual TokenMessagedup () const
virtual void parsimPack (cCommBuffer *b)
virtual void parsimUnpack (cCommBuffer *b)
virtual int getSrcTokenNr () const
virtual void setSrcTokenNr (int srcTokenNr)
virtual int getDstTokenNr () const
virtual void setDstTokenNr (int dstTokenNr)
- Public Member Functions inherited from GiaMessage
 GiaMessage (const char *name=NULL, int kind=0)
 GiaMessage (const GiaMessage &other)
virtual ~GiaMessage ()
GiaMessageoperator= (const GiaMessage &other)
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 TokenMessage &)
- Protected Member Functions inherited from GiaMessage
bool operator== (const GiaMessage &)
- Protected Member Functions inherited from BaseOverlayMessage
bool operator== (const BaseOverlayMessage &)

Protected Attributes

int srcTokenNr_var
int dstTokenNr_var
- Protected Attributes inherited from GiaMessage
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 TokenMessage &other)

Detailed Description

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

message TokenMessage extends GiaMessage
{
       int srcTokenNr;    
       int dstTokenNr;    
};

Definition at line 187 of file GiaMessage_m.h.

Constructor & Destructor Documentation

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

Referenced by dup().

TokenMessage::TokenMessage ( const TokenMessage other)
virtual TokenMessage::~TokenMessage ( )
virtual

Member Function Documentation

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

Reimplemented from GiaMessage.

Definition at line 205 of file GiaMessage_m.h.

{return new TokenMessage(*this);}
virtual int TokenMessage::getDstTokenNr ( ) const
virtual
virtual int TokenMessage::getSrcTokenNr ( ) const
virtual
TokenMessage& TokenMessage::operator= ( const TokenMessage other)
bool TokenMessage::operator== ( const TokenMessage )
protected
virtual void TokenMessage::parsimPack ( cCommBuffer *  b)
virtual

Reimplemented from GiaMessage.

Referenced by doPacking().

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

Reimplemented from GiaMessage.

Referenced by doUnpacking().

virtual void TokenMessage::setDstTokenNr ( int  dstTokenNr)
virtual

Referenced by Gia::sendToken().

virtual void TokenMessage::setSrcTokenNr ( int  srcTokenNr)
virtual

Referenced by Gia::sendToken().

Member Data Documentation

int TokenMessage::dstTokenNr_var
protected

Definition at line 191 of file GiaMessage_m.h.

int TokenMessage::srcTokenNr_var
protected

Definition at line 190 of file GiaMessage_m.h.


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