Changes between Version 13 and Version 14 of Software/eTutorialSupport


Ignore:
Timestamp:
Jun 27, 2016, 3:15:38 AM (8 years ago)
Author:
ffund01
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Software/eTutorialSupport

    v13 v14  
    214214{{{
    215215require 'oml4r'
     216
     217class OmfNodeMP < OML4R::MPBase
     218  name :node
     219  param :user
     220  param :expID
     221  param :node
     222  param :property
     223  param :value
     224  param :status
     225end
     226class OmfEventMP < OML4R::MPBase
     227  name :event
     228  param :user
     229  param :expID
     230  param :event
     231  param :hash
     232end
     233class OmfExperimentMP < OML4R::MPBase
     234  name :experiment
     235  param :user
     236  param :expID
     237  param :property
     238  param :value
     239end
     240class OmfNetMP < OML4R::MPBase
     241  name :net
     242  param :expID
     243  param :node
     244  param :property
     245  param :value
     246  param :status
     247end
     248class OmfNodeStatMP < OML4R::MPBase
     249  name :nodestat
     250  param :expID
     251  param :node
     252  param :status
     253end
    216254}}}
    217255
     
    232270    @omlize
    233271  end
     272
     273  def self.injectNode node,property,status,value
     274    OmfNodeMP.inject("#{Experiment.User}","#{Experiment.ID}","#{node}","#{property}","#{value}","#{status}")
     275  end
     276
     277  def self.injectEvent  event, hash
     278    OmfEventMP.inject("#{Experiment.User}","#{Experiment.ID}", "#{event}", "#{hash}")
     279  end
     280
     281  def self.injectExperiment  property, value
     282    OmfExperimentMP.inject("#{Experiment.User}","#{Experiment.ID}", "#{property}", "#{value}")
     283  end
     284
     285  def self.injectNet node, property, value, status
     286    OmfNetMP.inject("#{Experiment.ID}", "#{node}", "#{property}", "#{value}", "#{status}")
     287  end
     288
     289  def self.injectNodeStat node, status
     290    OmfNodeStatMP.inject("#{Experiment.ID}", "#{node}", "#{status}")
     291  end
     292
    234293}}}
    235294
     
    246305}}}
    247306
     307
     308After the other opts, add
     309
     310{{{
     311    opts.on("--omlize",
     312    "Report the experiment controller status to OML") { @omlize = true }
     313}}}
     314
    248315=== Usage instructions ===
    249316