From f9ec5ab93118ff65e4611a32d4b96371b796c442 Mon Sep 17 00:00:00 2001 From: ribes Date: Fri, 19 Mar 2010 09:38:59 +0000 Subject: [PATCH] - Add new class to improve python scripts for Launcher --- src/LifeCycleCORBA_SWIG/LifeCycleCORBA.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) -- 2.39.2