X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3c3d12f53cae1413d15899def85f47a6b7318795..b3d9680ac65d8bdd8e267aed69fc32a5abab12d7:/src/bindings/ruby/ProcessFactory.rb?ds=sidebyside diff --git a/src/bindings/ruby/ProcessFactory.rb b/src/bindings/ruby/ProcessFactory.rb deleted file mode 100644 index d31365f86b..0000000000 --- a/src/bindings/ruby/ProcessFactory.rb +++ /dev/null @@ -1,71 +0,0 @@ -# -# * $Id$ -# * -# * Copyright 2010 Martin Quinson, Mehdi Fekari -# * 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 'RubyProcess' -require 'RubyHost' -class ProcessFactory - -# Attributes - attr_accessor :args, :proprieties, :hostName, :function -# Initlialize - def initialize() - - @args = Array.new - @proprieties = Hash.new - @hostName = nil - @function = nil - - end - -# setProcessIdentity - def setProcessIdentity(hostName,function) - @hostName = hostName - @function = function - - if !args.empty? - args.clear - end - - if !proprieties.empty? - proprieties.clear - end - - end - -# RegisterProcess - def registerProcessArg(arg) - - @args.push(arg) - - end - -# CreateProcess - def createProcess() - - process = rubyNewInstance(@function) #process = rubyNewInstanceArgs(@function,@args) # - size = @args.size - for i in 0..size-1 - process.pargs.push(@args[i]) - end - process.name = @function - process.id = process.nextId() # This increment Automaticly The Static ProcessNextId for The Class RbProces - host = RbHost.getByName(@hostName) - processCreate(process,host) - process.proprieties = @proprieties - @proprieties = Hash.new - - end - -# SetProperty - def setProperty(id,value) - @proprieties[id] = value - end - -# End Class - end \ No newline at end of file