-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase_jobLauncher.py
37 lines (28 loc) · 919 Bytes
/
base_jobLauncher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
#
# Author: Veronica G. Vergara L.
#
#
class BaseJobLauncher:
""" BaseJobLauncher represents a job launcher and has the following
properties:
Attributes:
name: string representing the job launcher's name
Methods:
get_jobLauncher_name:
print_jobLauncher_info:
"""
def __init__(self,name,launchCmd):
self.__name = name
self.__launchCmd = launchCmd
def get_jobLauncher_name(self):
return self.__name
def build_job_command(self):
print("Building job command in the base job launcher class")
return
def print_jobLauncher_info(self):
print("--------------------------------------")
print("Job Launcher = " + str(self.__name))
print("Job Launcher command = " + str(self.__launchCmd))
if __name__ == "__main__":
print("This is the BaseJobLauncher class!")