Changes between Version 1 and Version 2 of GEC16Agenda/WiMAX-Tutorial/Coop/04


Ignore:
Timestamp:
03/20/13 17:04:44 (11 years ago)
Author:
Fraida Fund
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GEC16Agenda/WiMAX-Tutorial/Coop/04

    v1 v2  
    55When an OML-enabled application is run using OMF, the application itself is installed on the resource and a simple [https://mytestbed.net/projects/omf/wiki/BasicTutorialStage3-5-2 OMF application wrapper] is installed on the console where the OMF Experiment Controller runs. This wrapper just gives some basic information about the application, the parameters that can be passed at the command line, and the OML measurement points that have been defined in the application.
    66
    7 For example, here's the wrapper for the OML-ized VLC:
     7Here's the wrapper for the OML-ized coopshim:
    88
    99{{{
    1010#!ruby
     11defApplication('coopshim', 'coopshim') do |a|
    1112
    12 Paste Wrapper here!
     13  a.path = "/usr/bin/coopshim"
     14  a.shortDescription = "Runs CoopShim Shim"
     15  a.description = <<TEXT
     16This is a wrapper around the CoopShim experiment
     17TEXT
     18
     19  a.defProperty("queue-length", "Number of packets to buffer", "q",
     20                   {:type => :string, :dynamic => false})
     21
     22  # The Measurement Points for this application:
     23  a.defMeasurement('req') do |m|
     24    m.defMetric('id',:long)
     25    m.defMetric('total',:long)
     26  end
     27  a.defMeasurement('recv') do |m|
     28    m.defMetric('id',:long)
     29    m.defMetric('total',:long)
     30    m.defMetric('source', :string)
     31  end
     32  a.defMeasurement('sent') do |m|
     33    m.defMetric('id',:long)
     34    m.defMetric('total',:string)
     35    m.defMetric('dest', :string)
     36  end
     37
     38end
     39
    1340
    1441}}}