?? asyncnetwork.ned
字號:
//***************************************************************************
//* file: AsyncNetwork.ned
// *
// * author: yupeng.hu
// *
// * copyright: (C) 2006 HUNAN Univer, China
//
// * part of: Asynchronous Simulation
// *
// *
// ***************************************************************************/
import
"AsyncHost",
"ChannelControl";
module AsyncNetwork
parameters:
// parametes for the framework
playgroundSizeX : numeric const,
playgroundSizeY : numeric const,
numHosts : numeric const;
submodules:
channelcontrol: ChannelControl;
parameters:
playgroundSizeX = playgroundSizeX,
playgroundSizeY = playgroundSizeY;
///display: "p=50,25;i=eye14";
host: AsyncHost[numHosts];
display: "p=50,50;i=node";
connections nocheck:
//??????
//all connections and gates are to be generated dynamically
display: "p=5,5;b=$playgroundSizeX,$playgroundSizeY,rect;o=white";
endmodule
network AsyncSim : AsyncNetwork
parameters:
playgroundSizeX = input(40,"playgroundSizeX"),
playgroundSizeY = input(40,"playgroundSizeY"),
numHosts =input(8,"Number of hosts:");
endnetwork
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -