Changes between Version 13 and Version 14 of Software/eTutorialSupport
- Timestamp:
- Jun 27, 2016, 3:15:38 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Software/eTutorialSupport
v13 v14 214 214 {{{ 215 215 require 'oml4r' 216 217 class OmfNodeMP < OML4R::MPBase 218 name :node 219 param :user 220 param :expID 221 param :node 222 param :property 223 param :value 224 param :status 225 end 226 class OmfEventMP < OML4R::MPBase 227 name :event 228 param :user 229 param :expID 230 param :event 231 param :hash 232 end 233 class OmfExperimentMP < OML4R::MPBase 234 name :experiment 235 param :user 236 param :expID 237 param :property 238 param :value 239 end 240 class OmfNetMP < OML4R::MPBase 241 name :net 242 param :expID 243 param :node 244 param :property 245 param :value 246 param :status 247 end 248 class OmfNodeStatMP < OML4R::MPBase 249 name :nodestat 250 param :expID 251 param :node 252 param :status 253 end 216 254 }}} 217 255 … … 232 270 @omlize 233 271 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 234 293 }}} 235 294 … … 246 305 }}} 247 306 307 308 After the other opts, add 309 310 {{{ 311 opts.on("--omlize", 312 "Report the experiment controller status to OML") { @omlize = true } 313 }}} 314 248 315 === Usage instructions === 249 316