]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
- Add new class to improve python scripts for Launcher
authorribes <ribes>
Fri, 19 Mar 2010 09:38:59 +0000 (09:38 +0000)
committerribes <ribes>
Fri, 19 Mar 2010 09:38:59 +0000 (09:38 +0000)
src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py

index df7445c42b0b725e95f26109ed43f043d48160fb..5fad3d6496c53cb8c9c1a067b417b67b5cae31bb 100644 (file)
@@ -47,3 +47,18 @@ class MachineParameters (Engines.MachineParameters):
                                                     mem_mb, cpu_clock, nb_proc_per_node, nb_node, isMPI, workingdir, 
                                                     mode, policy, parallelLib, nb_component_nodes)
 
+class ResourceParameters (Engines.ResourceParameters):
+  def __init__(self, name="", hostname="", OS="", componentList=[],
+                     nb_proc=0, mem_mb=0, cpu_clock=0, nb_node=0, nb_proc_per_node=0,
+                     policy="", resList=[]):
+    Engines.ResourceParameters.__init__(self, name, hostname, OS, componentList,
+                                              nb_proc, mem_mb, cpu_clock, nb_node, nb_proc_per_node,
+                                              policy, resList)
+
+class JobParameters (Engines.JobParameters):
+  def __init__(self, job_type="", job_file="", env_file="", in_files=[], out_files=[],
+                     work_directory="", local_directory="", result_directory="", maximum_duration="",
+                     resource_required=None, queue="", specific_parameters=[]):
+    Engines.JobParameters.__init__(self, job_type, job_file, env_file, in_files, out_files,
+                                         work_directory, local_directory, result_directory, maximum_duration,
+                                         resource_required, queue, specific_parameters)