ns-resource.tcl

来自「无线传感器网络中,LEACH路由协议在NS-2仿真环境的下实现的源代码」· TCL 代码 · 共 41 行

TCL
41
字号
############################################################################## This code was developed as part of the MIT SPIN project. (jk, wbh 3/24/00)############################################################################## Resource Class## Most Resources functions are "virtual".  We define all of the# functions to do nothing.  When you derive from the Resource# class, you should define your implementation of each function.Class ResourceResource instproc init args {}Resource instproc add {args} {      puts stderr "Warning: add function not implemented yet for this object"}Resource instproc remove {args} {      puts stderr "Warning: remove function not implemented yet for this object"}   Resource instproc acquire {args} {      puts stderr "Warning: acquire function not implemented yet for this object"}Resource instproc query {args} {    puts stderr "Warning: query function not implemented yet for this object"}

⌨️ 快捷键说明

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