def addTorqueQueue(self):
     torque_queue = ConfigurationLineDefinition(
         keyword=KeywordDefinition("TORQUE_QUEUE"),
         arguments=[StringArgument()],
         documentation_link="keywords/torque_queue",
         group=self.group)
     return torque_queue
 def addLsfQueue(self):
     lsf_queue = ConfigurationLineDefinition(
         keyword=KeywordDefinition("LSF_QUEUE"),
         arguments=[StringArgument()],
         documentation_link="keywords/lsf_queue",
         group=self.group)
     return lsf_queue
 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
 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
 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
 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
 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
 def addRshCommand(self):
     rsh_command = ConfigurationLineDefinition(
         keyword=KeywordDefinition("RSH_COMMAND"),
         arguments=[PathArgument()],
         documentation_link="keywords/rsh_command",
         group=self.group)
     return rsh_command
 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
Beispiel #10
0
 def addUMask(self):
     umask = ConfigurationLineDefinition(keyword=KeywordDefinition("UMASK"),
                                               arguments=[IntegerArgument()],
                                               documentation_link="keywords/umask",
                                               required=False,
                                               group=self.group)
     return umask
Beispiel #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
Beispiel #12
0
 def addInternal(self):
     internal = ConfigurationLineDefinition(keyword=KeywordDefinition("INTERNAL"),
                                            arguments=[BoolArgument()],
                                            documentation_link="keywords/internal",
                                            required=False,
                                            group=self.group)
     return internal
Beispiel #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
Beispiel #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
Beispiel #15
0
 def addGrid(self):
     grid = ConfigurationLineDefinition(keyword=KeywordDefinition("GRID"),
                                        arguments=[PathArgument()],
                                        documentation_link="keywords/grid",
                                        required=True,
                                        group=self.group)
     return grid
Beispiel #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
Beispiel #18
0
 def addFunction(self):
     function = ConfigurationLineDefinition(keyword=KeywordDefinition("FUNCTION"),
                                            arguments=[StringArgument()],
                                            documentation_link="keywords/function",
                                            required=False,
                                            group=self.group)
     return function
Beispiel #19
0
 def addModule(self):
     module = ConfigurationLineDefinition(keyword=KeywordDefinition("MODULE"),
                                          arguments=[PathArgument()],
                                          documentation_link="keywords/module",
                                          required=False,
                                          group=self.group)
     return module
Beispiel #20
0
 def addExecutable(self):
     executable = ConfigurationLineDefinition(keyword=KeywordDefinition("EXECUTABLE"),
                                              arguments=[PathArgument()],
                                              documentation_link="keywords/executable",
                                              required=False,
                                              group=self.group)
     return executable
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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")