Changes between Initial Version and Version 1 of Documentation/OtherApps/DITG/ITGCBRReceiver


Ignore:
Timestamp:
Sep 5, 2006, 9:54:54 PM (18 years ago)
Author:
Surya Satyavolu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OtherApps/DITG/ITGCBRReceiver

    v1 v1  
     1{{{
     2
     3#
     4# Define a prototype
     5#
     6require 'handler/prototype'
     7require 'handler/filter'
     8require 'handler/appDefinition'
     9
     10p = Prototype.create("test:proto:itgreceiver")
     11p.name = "ITG Receiver"
     12p.description = "Nodes which receive packets"
     13p.defProperty('logfile', 'Logfile')
     14
     15itgr = p.addApplication('itgr', "test:app:itgr")
     16itgr.bindProperty('l','logfile')
     17
     18itgr.addMeasurement('receiverport',  Filter::SAMPLE,
     19  {Filter::SAMPLE_SIZE => 1},
     20  [
     21    ['flow_no'],
     22    ['min_delay'],
     23    ['max_delay'],
     24    ['avg_delay'],
     25    ['avg_jitter'],
     26    ['delay_stdev'],     
     27    ['avg_throughput'],
     28    ['packet_loss'],
     29  ]
     30)
     31
     32if $0 == __FILE__
     33  p.to_xml.write($stdout, 2)
     34  puts
     35end
     36
     37}}}