00001
00025 #include "channel.h"
00026 #include "uan-prop.h"
00027
00028 #include <set>
00029
00030 #define SSPEED 1500.0 //Speed of sound = approx 1500 m/s
00031
00032 #define UAN_CHAN_NOISE (60.0)
00033
00034
00035
00036 class UanChannel : public Channel {
00037 public:
00039 UanChannel(void);
00041 virtual int command(int argc, const char*const* argv);
00042
00043
00044 protected:
00046 set<MobileNode *> nodeList;
00048 UanPropagation *prop;
00056 virtual void sendUp(Packet *p, Phy *txif);
00063 virtual double get_pdelay(Node *tnode, Node *rnode);
00064
00066 void debugf(char *fmt, ...);
00067 };
00068