Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive cleanups in ruby. Not yet working (segfault on task reception)
[simgrid.git] / src / bindings / ruby / ApplicationHandler.rb
index 0ac51da..953f738 100644 (file)
@@ -1,89 +1,9 @@
-require 'ProcessFactory'
-
-$debug = true
-
-class ApplicationHandler
-
-  @processFactory
-  
-#   Initialize
-  def initialize()
-     
-  end
-  
-    
-#  onStartDocument
-  def onStartDocument()
-    
-    @processFactory = ProcessFactory.new
-    
-    if ($debug)
-      puts "onStartDocument"
-    end
-      
-    
-  end
-  
-#   onBeginProcess
-  def onBeginProcess (hostName ,function)
-    
-    @processFactory.setProcessIdentity(hostName,function)
-    
-     if ($debug)
-      puts "onBeginProcess"
-     end
-    
-  end
-
-#   onProperty
-  
-  def onProperty(id,value)
-    
-    @processFactory.setProperty(id,value)
-    
-     if ($debug)
-      puts "onProperty"
-     end
-    
-  end
-  
-#   RegisterProcessArg
-  
-  def onProcessArg(arg)
-    
-    @processFactory.registerProcessArg(arg)
-      
-      if ($debug)
-      puts "onProcessArg"
-      end
-    
-  end
-
-#   OnEndProcess
-  
- def onEndProcess()
-   
-   @processFactory.createProcess()
-   
-   if ($debug)
-      puts "onEndProcess"
-   end
-      
- end
-
-
- #  onEndDocument
- def onEndDocument()  
-#    Euh...Actually Nothin' to Do !!
-   
-   if($debug)
-   puts "onEndDocument"
-   end
- end
-  
-#  End Class
-end
-
+# 
+# Copyright 2010. The SimGrid Team. All right reserved. 
+# 
+# This program is free software; you can redistribute it and/or modify it 
+# under the terms of the license (GNU LGPL) which comes with this package. 
+
+require 'simgrid'
+include MSG
+$DEBUG = false