⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tx.awk

📁 基于NS-2的车辆Ad Hoc网络(VANET)的一个应用层协议框架
💻 AWK
字号:
# -------------------------------------------------------------------# Vehicular Ad Hoc Networks: Regular Broadcasting of messages.# Skeleton for VANET-protocols. This should be considered as an# example to create other VANET protocols!# Apart from channel load, the "protocol" as it is now does not do# anything useful.## Dan Jungels (daniel.jungels@epfl.ch)# LCA - EPFL### example awk filter# Originally written for ns2.29## 2005-12-15: release of first version (dj)# 2005-12-23: update and cleanup, public release (dj)# -------------------------------------------------------------------BEGIN{    sim_end = 80;    i=0;    while (i<=sim_end) {sec[i]=0; i+=1;};}{#   if ($1=="+" && $5=="VanetRBC" && $3=="_1_") {    if ($1=="s" && $7=="VanetRBC") {        sec[int($2)]+=$8;    };}END{    i=0;    while (i<=sim_end) {print i " " sec[i]*8; i+=1;};}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -