ned模块
simple Txc3
{
parameters:
@display("i=block/routing");
gates:
input in;
output out;
}
//
// Same as Tictoc2.
//
network Tictoc3
{
submodules:
//在tictoc1.ned文件里面,添加节点的图标,图标在安装文件夹里面的block文件夹。并且更加tic蓝色、toc节点黄色:
tic: Txc3 {
parameters:
@display("i=,cyan");
}
toc: Txc3 {
parameters:
@display("i=,gold");
}
connections:
tic.out --> {
delay = 100ms;