ns-resource.tcl

来自「可以在ns-2中进行仿真的SPIN路由协议的源码」· 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 + -
显示快捷键?