X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f74123604bf09b2b5c68c5d48def74a2506099ff..4419ab41e208b813ab7ee7005de111fb23049a4f:/src/bindings/ruby/ApplicationHandler.rb diff --git a/src/bindings/ruby/ApplicationHandler.rb b/src/bindings/ruby/ApplicationHandler.rb index 0ac51da8d2..fd13dbae5c 100644 --- a/src/bindings/ruby/ApplicationHandler.rb +++ b/src/bindings/ruby/ApplicationHandler.rb @@ -1,6 +1,6 @@ require 'ProcessFactory' -$debug = true +$DEBUG = true class ApplicationHandler @@ -8,82 +8,72 @@ class ApplicationHandler # Initialize def initialize() - + #Nothing todo end - -# onStartDocument + # onStartDocument def onStartDocument() @processFactory = ProcessFactory.new - - if ($debug) + if ($DEBUG) puts "onStartDocument" end - end # onBeginProcess - def onBeginProcess (hostName ,function) + def onBeginProcess(hostName,function) @processFactory.setProcessIdentity(hostName,function) - if ($debug) + if ($DEBUG) puts "onBeginProcess" end end # onProperty - - def onProperty(id,value) + def onProperty(id,value) @processFactory.setProperty(id,value) - if ($debug) + if ($DEBUG) puts "onProperty" end end # RegisterProcessArg - - def onProcessArg(arg) + def onProcessArg(arg) @processFactory.registerProcessArg(arg) - if ($debug) + if ($DEBUG) puts "onProcessArg" end end # OnEndProcess - - def onEndProcess() + def onEndProcess() @processFactory.createProcess() - if ($debug) + if ($DEBUG) puts "onEndProcess" end end - # onEndDocument - - def onEndDocument() + def onEndDocument() # Euh...Actually Nothin' to Do !! - if($debug) + if($DEBUG) puts "onEndDocument" end end - -# End Class - -end + # End Class + end