📄 etxmetric.hh
字号:
#ifndef ETXMETRIC_HH#define ETXMETRIC_HH#include <click/element.hh>#include "gridgenericmetric.hh"CLICK_DECLS/* * =c * ETXMetric(LinkStat) * =s Grid * =io * None * =d * * Child class of GridGenericMetric that implements the estimated * transmission count (`ETX') metric. * * LinkStat is this node's LinkStat element, which is needed to obtain * the link delivery ratios used to calculate the metric. * * =a HopcountMetric, LinkStat */class LinkStat;class ETXMetric : public GridGenericMetric { public: ETXMetric(); ~ETXMetric(); const char *class_name() const { return "ETXMetric"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return false; } void add_handlers(); void *cast(const char *); // generic metric methods bool metric_val_lt(const metric_t &, const metric_t &) const; metric_t get_link_metric(const EtherAddress &n, bool) const; metric_t append_metric(const metric_t &, const metric_t &) const; metric_t prepend_metric(const metric_t &r, const metric_t &l) const { return append_metric(r, l); } unsigned char scale_to_char(const metric_t &) const; metric_t unscale_from_char(unsigned char) const;private: LinkStat *_ls;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -