2012年12月8日 星期六

Every node was set initial different energy


$ns node-config -initialEnergy 100
set first_node_(0) [$ns node]

# set initial energy for second node
$ns node-config -initialEnergy 200

set second_node_(1) [$ns node]


# set initial energy for third node
$ns node-config -initialEnergy 150
set third_node_(2) [$ns node]

沒有留言: