Code TCL
Code TCL
#
==========================================================
===========
# Main Program
#
==========================================================
===========
#
# Initialize Global Variables
#
# define topology
$topo load_flatgrid $val(x) $val(y)
#
# Create God
#
set god_ [create-god $val(nn)]
#
# define how node should be created
#
#
# Create the specified number of nodes [$val(nn)] and "attach" them
# to the channel.
#
# Define node movement model
#
puts "Loading connection pattern..."
source $val(cp)
#
# Define traffic model
#
puts "Loading scenario file..."
source $val(sc)