DifferentialForwarding::VisibleNode Class Reference

Bookkeeping structure for nodes currently visible. More...

#include <differential_forwarding/VisibleNode.h>

Collaboration diagram for DifferentialForwarding::VisibleNode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VisibleNode (const DTN::ByteString &addr, DTN::Link *l)
 Constructor.
 ~VisibleNode ()
 Destructor.
const DTN::ByteString & addr () const
 
Returns:
the address of the node

bool downhill () const
 
Returns:
whether the node is appropriate to receive data

DTN::Linklink () const
 
Returns:
the link through which messages should be sent to this node

struct timeval & beaconTime () const
 
Returns:
the time of the last beacon received from this node

void setDownhill (bool b)
 
Parameters:
b Whether the node is an appropriate data recipient

void setBeaconTime (const struct timeval &t)
 
Parameters:
t The time at which a beacon was received from the node


Detailed Description

Bookkeeping structure for nodes currently visible.

This class has no virtual methods.

Definition at line 45 of file VisibleNode.h.


Constructor & Destructor Documentation

VisibleNode::VisibleNode ( const DTN::ByteString &  addr,
DTN::Link l 
)

Constructor.

Parameters:
addr The node's address
l The mock link to use for this node

Definition at line 35 of file VisibleNode.cc.


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