dtnsim::TrAgent Class Reference

#include <TrAgent.h>

List of all members.


Detailed Description

Definition at line 31 of file TrAgent.h.


Public Member Functions

virtual ~TrAgent ()
void timeout (const struct timeval &now)

Static Public Member Functions

static TrAgentinit (const EndpointID &src, const EndpointID &dst, int argc, const char **argv)

Private Member Functions

 TrAgent (const EndpointID &src, const EndpointID &dst)
void send_bundle ()

Private Attributes

EndpointID src_
 source eid
EndpointID dst_
 destination eid
u_int64_t size_
 size of each message
u_int expiration_
 expiration time for each bundle
u_int reps_
 total number of reps/batches
u_int batch_
 no of messages in each batch
double interval_
 time gap between two batches

Constructor & Destructor Documentation

virtual dtnsim::TrAgent::~TrAgent (  )  [inline, virtual]

Definition at line 36 of file TrAgent.h.

dtnsim::TrAgent::TrAgent ( const EndpointID src,
const EndpointID dst 
) [private]

Definition at line 37 of file TrAgent.cc.

Referenced by init().


Member Function Documentation

TrAgent * dtnsim::TrAgent::init ( const EndpointID src,
const EndpointID dst,
int  argc,
const char **  argv 
) [static]

Definition at line 46 of file TrAgent.cc.

References batch_, expiration_, interval_, reps_, size_, and TrAgent().

Referenced by dtnsim::NodeCommand::exec().

void dtnsim::TrAgent::timeout ( const struct timeval &  now  ) 

Definition at line 85 of file TrAgent.cc.

References batch_, interval_, reps_, and send_bundle().

void dtnsim::TrAgent::send_bundle (  )  [private]


Member Data Documentation

source eid

Definition at line 45 of file TrAgent.h.

Referenced by send_bundle().

destination eid

Definition at line 46 of file TrAgent.h.

Referenced by send_bundle().

u_int64_t dtnsim::TrAgent::size_ [private]

size of each message

Definition at line 47 of file TrAgent.h.

Referenced by init(), and send_bundle().

expiration time for each bundle

Definition at line 48 of file TrAgent.h.

Referenced by init(), and send_bundle().

u_int dtnsim::TrAgent::reps_ [private]

total number of reps/batches

Definition at line 49 of file TrAgent.h.

Referenced by init(), and timeout().

u_int dtnsim::TrAgent::batch_ [private]

no of messages in each batch

Definition at line 50 of file TrAgent.h.

Referenced by init(), and timeout().

double dtnsim::TrAgent::interval_ [private]

time gap between two batches

Definition at line 51 of file TrAgent.h.

Referenced by init(), and timeout().


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

Generated on Mon Jul 21 14:12:22 2008 for DTN Reference Implementation by  doxygen 1.5.6