4 # * Copyright 2010 Martin Quinson, Mehdi Fekari
5 # * All right reserved.
7 # * This program is free software; you can redistribute
8 # * it and/or modify it under the terms of the license
9 # *(GNU LGPL) which comes with this package.
15 attr_accessor :args, :proprieties, :hostName, :function
20 @proprieties = Hash.new
27 def setProcessIdentity(hostName,function)
35 if !proprieties.empty?
42 def registerProcessArg(arg)
51 process = rubyNewInstance(@function) #process = rubyNewInstanceArgs(@function,@args) #
54 process.pargs.push(@args[i])
56 process.name = @function
57 process.id = process.nextId() # This increment Automaticly The Static ProcessNextId for The Class RbProces
58 host = RbHost.getByName(@hostName)
59 processCreate(process,host)
60 process.proprieties = @proprieties
61 @proprieties = Hash.new
66 def setProperty(id,value)
67 @proprieties[id] = value