UanChannel Class Reference

Basic UAN channel class. More...

#include <uan-channel.h>

Inheritance diagram for UanChannel:

Inheritance graph
[legend]
Collaboration diagram for UanChannel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UanChannel (void)
 Construct a channel.
virtual int command (int argc, const char *const *argv)
 Standard channel command method as in WirelessChannel. Except this also takes propagation command with argument of UanPropagation.

Protected Member Functions

virtual void sendUp (Packet *p, Phy *txif)
 Sends packet *p from interface txif up to all nodes in nodeList.
virtual double get_pdelay (Node *tnode, Node *rnode)
 Computes propagation delay between tnode and rnode.
void debugf (char *fmt,...)
 Debug function to output information to stderr. Uses printf format specifications.

Protected Attributes

set< MobileNode * > nodeList
 STL set of all nodes connected to this channel.
UanPropagationprop
 UAN Propagation model used by this channel.

Detailed Description

Basic UAN channel class.

This is a simple channel class. It keeps a list of nodes using STL list, and computes propagation distance to nodes using 1500 m/s instead of the speed of light. The main departure with the standard NS2 channel class is that this node sets the RxPr member of txinfo before sending a packet up to the phy layer.

This class depends on a UanPropagation class being linked to it in the NS2 TCL

Note:
Requires UAN Physical layers and a UAN propagation class
Author:
Leonard Tracy
Date:
9-28-2007
Contact: lentracy@u.washington.edu Created on: June 2007


Member Function Documentation

void UanChannel::sendUp ( Packet *  p,
Phy *  txif 
) [protected, virtual]

Sends packet *p from interface txif up to all nodes in nodeList.

Parameters:
p Pointer to packet to send
txif Pointer to sending UanPhy based interface
Sends packet to all nodes regardless of range. Computes RxPr before and adds to the p->txinfo_ struct before sending node to phy.

Reimplemented in UanChannelBhp.

double UanChannel::get_pdelay ( Node *  tnode,
Node *  rnode 
) [protected, virtual]

Computes propagation delay between tnode and rnode.

Parameters:
tnode Pointer to MobileNode class of transmitting node
rnode Pointer to MobileNode class of receiving node
Uses speed of sound in seawater of 1500 m/s


The documentation for this class was generated from the following files:
Generated on Mon Oct 1 12:12:46 2007 for UANModule by  doxygen 1.5.1