A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7083 48e7efb5...
[simgrid.git]
/
src
/
bindings
/
ruby
/
ApplicationHandler.rb
diff --git
a/src/bindings/ruby/ApplicationHandler.rb
b/src/bindings/ruby/ApplicationHandler.rb
index
0ac51da
..
fd13dba
100644
(file)
--- a/
src/bindings/ruby/ApplicationHandler.rb
+++ b/
src/bindings/ruby/ApplicationHandler.rb
@@
-1,6
+1,6
@@
require 'ProcessFactory'
require 'ProcessFactory'
-$
debug
= true
+$
DEBUG
= true
class ApplicationHandler
class ApplicationHandler
@@
-8,82
+8,72
@@
class ApplicationHandler
# Initialize
def initialize()
# Initialize
def initialize()
-
+ #Nothing todo
end
end
-
-# onStartDocument
+ # onStartDocument
def onStartDocument()
@processFactory = ProcessFactory.new
def onStartDocument()
@processFactory = ProcessFactory.new
-
- if ($debug)
+ if ($DEBUG)
puts "onStartDocument"
end
puts "onStartDocument"
end
-
end
# onBeginProcess
end
# onBeginProcess
- def onBeginProcess
(hostName
,function)
+ def onBeginProcess
(hostName
,function)
@processFactory.setProcessIdentity(hostName,function)
@processFactory.setProcessIdentity(hostName,function)
- if ($
debug
)
+ if ($
DEBUG
)
puts "onBeginProcess"
end
end
# onProperty
puts "onBeginProcess"
end
end
# onProperty
-
- def onProperty(id,value)
+ def onProperty(id,value)
@processFactory.setProperty(id,value)
@processFactory.setProperty(id,value)
- if ($
debug
)
+ if ($
DEBUG
)
puts "onProperty"
end
end
# RegisterProcessArg
puts "onProperty"
end
end
# RegisterProcessArg
-
- def onProcessArg(arg)
+ def onProcessArg(arg)
@processFactory.registerProcessArg(arg)
@processFactory.registerProcessArg(arg)
- if ($
debug
)
+ if ($
DEBUG
)
puts "onProcessArg"
end
end
# OnEndProcess
puts "onProcessArg"
end
end
# OnEndProcess
-
- def onEndProcess()
+ def onEndProcess()
@processFactory.createProcess()
@processFactory.createProcess()
- if ($
debug
)
+ if ($
DEBUG
)
puts "onEndProcess"
end
end
puts "onEndProcess"
end
end
-
# onEndDocument
# onEndDocument
-
- def onEndDocument()
+ def onEndDocument()
# Euh...Actually Nothin' to Do !!
# Euh...Actually Nothin' to Do !!
- if($
debug
)
+ if($
DEBUG
)
puts "onEndDocument"
end
end
puts "onEndDocument"
end
end
-
-# End Class
-
-end
+ # End Class
+ end