ns-resource.tcl
来自「无线传感器网络中,基于协商的SPIN路由协议在NS-2下仿真实现的源代码」· TCL 代码 · 共 34 行
TCL
34 行
# 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 + -
显示快捷键?