Version 1 (modified by 18 years ago) ( diff ) | ,
---|
# # Define a prototype # require 'handler/prototype' require 'handler/filter' require 'handler/appDefinition' p = Prototype.create("test:proto:itgreceiver") p.name = "ITG Receiver" p.description = "Nodes which receive packets" p.defProperty('logfile', 'Logfile') itgr = p.addApplication('itgr', "test:app:itgr") itgr.bindProperty('l','logfile') itgr.addMeasurement('receiverport', Filter::SAMPLE, {Filter::SAMPLE_SIZE => 1}, [ ['flow_no'], ['min_delay'], ['max_delay'], ['avg_delay'], ['avg_jitter'], ['delay_stdev'], ['avg_throughput'], ['packet_loss'], ] ) if $0 == __FILE__ p.to_xml.write($stdout, 2) puts end
Note:
See TracWiki
for help on using the wiki.