From: ribes Date: Fri, 19 Mar 2010 09:38:59 +0000 (+0000) Subject: - Add new class to improve python scripts for Launcher X-Git-Tag: V5_1_4a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9ec5ab93118ff65e4611a32d4b96371b796c442;p=modules%2Fkernel.git - Add new class to improve python scripts for Launcher --- diff --git a/src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py b/src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py index df7445c42..5fad3d649 100644 --- a/src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py +++ b/src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py @@ -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)