示例#1
0
 def addTorqueQueue(self):
     torque_queue = ConfigurationLineDefinition(
         keyword=KeywordDefinition("TORQUE_QUEUE"),
         arguments=[StringArgument()],
         documentation_link="keywords/torque_queue",
         group=self.group)
     return torque_queue
示例#2
0
 def addLsfQueue(self):
     lsf_queue = ConfigurationLineDefinition(
         keyword=KeywordDefinition("LSF_QUEUE"),
         arguments=[StringArgument()],
         documentation_link="keywords/lsf_queue",
         group=self.group)
     return lsf_queue
示例#3
0
 def addLsfResources(self):
     lsf_resources = ConfigurationLineDefinition(
         keyword=KeywordDefinition("LSF_RESOURCES"),
         arguments=[StringArgument(rest_of_line=True, allow_space=True)],
         documentation_link="keywords/lsf_resources",
         group=self.group)
     return lsf_resources
示例#4
0
 def addQueueSystem(self):
     queue_system = ConfigurationLineDefinition(
         keyword=KeywordDefinition("QUEUE_SYSTEM"),
         arguments=[StringArgument(built_in=True)],
         documentation_link="keywords/queue_system",
         group=self.group)
     return queue_system
示例#5
0
 def addLsfServer(self):
     lsf_server = ConfigurationLineDefinition(
         keyword=KeywordDefinition("LSF_SERVER"),
         arguments=[StringArgument(built_in=True)],
         documentation_link="keywords/lsf_server",
         group=self.group)
     return lsf_server
示例#6
0
 def addHostType(self):
     host_type = ConfigurationLineDefinition(
         keyword=KeywordDefinition("HOST_TYPE"),
         arguments=[StringArgument(rest_of_line=True, allow_space=True)],
         documentation_link="keywords/host_type",
         group=self.group)
     return host_type
示例#7
0
 def addMaxRunningRsh(self):
     max_running_rsh = ConfigurationLineDefinition(
         keyword=KeywordDefinition("MAX_RUNNING_RSH"),
         arguments=[IntegerArgument()],
         documentation_link="keywords/max_running_rsh",
         group=self.group)
     return max_running_rsh
示例#8
0
 def addRshCommand(self):
     rsh_command = ConfigurationLineDefinition(
         keyword=KeywordDefinition("RSH_COMMAND"),
         arguments=[PathArgument()],
         documentation_link="keywords/rsh_command",
         group=self.group)
     return rsh_command
示例#9
0
 def addMaxRunningLocal(self):
     max_running_local = ConfigurationLineDefinition(
         keyword=KeywordDefinition("MAX_RUNNING_LOCAL"),
         arguments=[IntegerArgument(from_value=1)],
         documentation_link="keywords/max_running_local",
         group=self.group)
     return max_running_local
示例#10
0
 def addUMask(self):
     umask = ConfigurationLineDefinition(keyword=KeywordDefinition("UMASK"),
                                               arguments=[IntegerArgument()],
                                               documentation_link="keywords/umask",
                                               required=False,
                                               group=self.group)
     return umask
示例#11
0
 def addEquilInitFile(self):
     equil_init_file = ConfigurationLineDefinition(
         keyword=KeywordDefinition("EQUIL_INIT_FILE"),
         arguments=[PathArgument()],
         documentation_link="keywords/equil_init_file",
         group=self.group)
     return equil_init_file
示例#12
0
 def addInternal(self):
     internal = ConfigurationLineDefinition(keyword=KeywordDefinition("INTERNAL"),
                                            arguments=[BoolArgument()],
                                            documentation_link="keywords/internal",
                                            required=False,
                                            group=self.group)
     return internal
示例#13
0
 def addUpdatePath(self):
     update_path = ConfigurationLineDefinition(keyword=KeywordDefinition("UPDATE_PATH"),
                                               arguments=[StringArgument(built_in=True), PathArgument()],
                                               documentation_link="keywords/update_path",
                                               required=False,
                                               group=self.group)
     return update_path
示例#14
0
 def addLoadWorkflow(self):
     load_workflow = ConfigurationLineDefinition(keyword=KeywordDefinition("LOAD_WORKFLOW"),
                                                     arguments=[PathArgument(), StringArgument(optional=True)],
                                                     documentation_link="keywords/load_workflow",
                                                     required=False,
                                                     group=self.group)
     return load_workflow
示例#15
0
 def addGrid(self):
     grid = ConfigurationLineDefinition(keyword=KeywordDefinition("GRID"),
                                        arguments=[PathArgument()],
                                        documentation_link="keywords/grid",
                                        required=True,
                                        group=self.group)
     return grid
示例#16
0
 def addSetEnv(self):
     setenv = ConfigurationLineDefinition(keyword=KeywordDefinition("SETENV"),
                                          arguments=[StringArgument(), StringArgument(rest_of_line=True,allow_space=True)],
                                          documentation_link="keywords/setenv",
                                          required=False,
                                          group=self.group)
     return setenv
 def addStopLongRunning(self):
     stop_long_running = ConfigurationLineDefinition(keyword=KeywordDefinition("STOP_LONG_RUNNING"),
                                                     arguments=[BoolArgument()],
                                                     documentation_link="keywords/stop_long_running",
                                                     required=False,
                                                     group=self.group)
     return stop_long_running
示例#18
0
 def addFunction(self):
     function = ConfigurationLineDefinition(keyword=KeywordDefinition("FUNCTION"),
                                            arguments=[StringArgument()],
                                            documentation_link="keywords/function",
                                            required=False,
                                            group=self.group)
     return function
示例#19
0
 def addModule(self):
     module = ConfigurationLineDefinition(keyword=KeywordDefinition("MODULE"),
                                          arguments=[PathArgument()],
                                          documentation_link="keywords/module",
                                          required=False,
                                          group=self.group)
     return module
示例#20
0
 def addExecutable(self):
     executable = ConfigurationLineDefinition(keyword=KeywordDefinition("EXECUTABLE"),
                                              arguments=[PathArgument()],
                                              documentation_link="keywords/executable",
                                              required=False,
                                              group=self.group)
     return executable
示例#21
0
 def addWorkflowJobDirectory(self):
     workflow_job_directory = ConfigurationLineDefinition(keyword=KeywordDefinition("WORKFLOW_JOB_DIRECTORY"),
                                                     arguments=[PathArgument()],
                                                     documentation_link="keywords/workflow_job_directory",
                                                     required=False,
                                                     group=self.group)
     return workflow_job_directory
示例#22
0
 def addMaxSubmit(self):
     max_submit = ConfigurationLineDefinition(
         keyword=KeywordDefinition("MAX_SUBMIT"),
         arguments=[IntegerArgument()],
         documentation_link="keywords/max_submit",
         group=self.group)
     return max_submit
示例#23
0
 def addLoadWorkflowJob(self):
     load_workflow_job = ConfigurationLineDefinition(keyword=KeywordDefinition("LOAD_WORKFLOW_JOB"),
                                                     arguments=[StringArgument()],
                                                     documentation_link="keywords/load_workflow_job",
                                                     required=False,
                                                     group=self.group)
     return load_workflow_job
示例#24
0
 def addArgType(self):
     arg_type = ConfigurationLineDefinition(keyword=KeywordDefinition("ARG_TYPE"),
                                            arguments=[StringArgument(built_in=True)],
                                            documentation_link="keywords/arg_type",
                                            required=False,
                                            group=self.group)
     return arg_type
示例#25
0
 def addMaxArg(self):
     max_arg = ConfigurationLineDefinition(keyword=KeywordDefinition("MAX_ARG"),
                                           arguments=[IntegerArgument()],
                                           documentation_link="keywords/max_arg",
                                           required=False,
                                           group=self.group)
     return max_arg
 def addMaxRuntime(self):
     max_runtime = ConfigurationLineDefinition(keyword=KeywordDefinition("MAX_RUNTIME"),
                                                arguments=[IntegerArgument(from_value=0)],
                                                documentation_link="keywords/max_runtime",
                                                required=False,
                                                group=self.group)
     return max_runtime
示例#27
0
 def addIterRetryCount(self):
     retry_count = ConfigurationLineDefinition(
         keyword=KeywordDefinition("ITER_RETRY_COUNT"),
         arguments=[IntegerArgument()],
         documentation_link="keywords/iter_retry_count",
         required=False,
         group=self.group)
     return retry_count
示例#28
0
 def addIterCase(self):
     iter_case = ConfigurationLineDefinition(
         keyword=KeywordDefinition("ITER_CASE"),
         arguments=[ProperNameFormatArgument()],
         documentation_link="keywords/iter_case",
         required=False,
         group=self.group)
     return iter_case
示例#29
0
 def addStdCutoff(self):
     std_cutoff = ConfigurationLineDefinition(
         keyword=KeywordDefinition("STD_CUTOFF"),
         arguments=[FloatArgument()],
         documentation_link="keywords/std_cutoff",
         required=False,
         group=self.group)
     return std_cutoff
示例#30
0
 def addSingleNodeUpdate(self):
     single_node_update = ConfigurationLineDefinition(
         keyword=KeywordDefinition("SINGLE_NODE_UPDATE"),
         arguments=[BoolArgument()],
         documentation_link="keywords/single_node_update",
         required=False,
         group=self.group)
     return single_node_update
 def test_keyword_definition(self):
     keyword = KeywordDefinition("KEYWORD")
     self.assertEqual(keyword.name(), "KEYWORD")