摘要: 基本可以照搬里面的Sleep模式去写 我要写的是充电模型 1.定时器类重载 在wireless-phy.h中添加 class Charge_Timer : public TimerHandler {public: Charge_Timer(WirelessPhy *a) : TimerHandler... 阅读全文
posted @ 2013-05-19 14:50 noanswertome 阅读(200) 评论(0) 推荐(0)
摘要: ns2自带的能量模型: energy-model.h inline double initialenergy() const { return initialenergy_; } inline void setenergy(double e) { energy_ = e; } virtual voi... 阅读全文
posted @ 2013-05-19 14:33 noanswertome 阅读(334) 评论(0) 推荐(0)