defProperty('expDuration',100,'The duration of this experiment in seconds')
defProperty("CHANNEL",1,"The WIFI channel measured by sensing engines")
defProperty('USRPChannel','2412000000',"The WIFI channel being monitored by USRP")

Testbedprefix = "imecse.cognitiveradio.wilab2.ilabt.iminds.be"
imecsecnodes=[12]
imecnodesstring=""
for i in imecsecnodes
        imecnodesstring=imecnodesstring+"node#{i}.#{Testbedprefix},"
end
###################################################
################### GROUP DEF #####################
defGroup("imecse",imecnodesstring) do |node|
	  node.addApplication('imecse_app_wrap',{:id => "imecse_app"}) {|app|
	    app.setProperty('frontend','0')
	    app.setProperty('spiderid','139')
	    
	    app.measure('imecsemp', :samples=>1) do |mp|
	    
	    end
	  }

end

################### GROUP DEF #####################
onEvent(:ALL_UP_AND_INSTALLED) do |event|


#################################################
  info "prepare Wi-Fi monitors and USRP"
  group("imecse").startApplications
  wait 10

  group("imecse").stopApplications

##################################################

  wait 1

  info "All applications are stopped now..."
  Experiment.done
end

