www.pudn.com > adHocSimtest.rar > world.ned, change:2005-03-22,size:815b


import   
    "mobileHost";  
                   
  
module World  
    parameters:  
        dim : numeric,  
        width : numeric,  
        height : numeric;  
                           
    submodules:  
                 
        mobileHost: MobileHost[dim];  
            parameters:  
                numHost = dim,  
                Xbound = width,  
                Ybound = height;  
                //x = intuniform(5, width -50)  
                //y = intuniform(5, height -50)  
                                               
            display: "p=165,172;b=20,20,oval"; 
    display: "p=10,10;b=$width,$height"; 
endmodule  
 
 
network world : World  
    parameters:  
        dim = input,  
        width = input,  
        height = input; // 
                        // 
endnetwork