Globals Class Reference
[pydtn]

Global configuration. More...

#include <pydtn/Globals.h>

Collaboration diagram for Globals:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static size_t volatileCap ()
 
Returns:
the default volatile storage capacity, in bytes

static void setVolatileCap (size_t s)
 
Parameters:
s The new default volatile storage capacity, in bytes

static size_t persistentCap ()
 
Returns:
the default stable storage capacity, in bytes

static void setPersistentCap (size_t s)
 
Parameters:
s The new default stable storage capacity, in bytes

static unsigned long int bandwidth ()
 
Returns:
the default link bandwidth, in bits per second

static void setBandwidth (unsigned long int bw)
 
Parameters:
bw The new default link bandwidth, in bits per second

static const Timelatency ()
 
Returns:
the default link latency

static void setLatency (const Time &t)
 
Parameters:
t The new default link latency

static const TimebundleLifetime ()
 
Returns:
the default bundle lifetime

static void setBundleLifetime (const Time &t)
 
Parameters:
t The new default bundle lifetime

static const TimeresendPeriod ()
 
Returns:
the default time between bundle resends from stable storage

static void setResendPeriod (const Time &t)
 
Parameters:
t The new default time between bundle resends


Detailed Description

Global configuration.

Rather than hard-coding defaults in various places, we provide defaults through this static class that can be changed at run-time through the interpreter.

Definition at line 44 of file Globals.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:47 2008 for Pydtn Simulator by  doxygen 1.5.4