ecflow.NodeContainer
NodeContainer is the abstract base class for a Suite and Family
A NodeContainer can have Families and Tasks as children
- NodeContainer.add_family(*args, **kwargs)
Overloaded function.
add_family(self: ecflow.NodeContainer, arg0: str) -> ecflow.Node
Add a family. See ecflow.Family.
Multiple families can be added. However family names must be unique. for a given parent. Families can be hierarchical.
Exception:
Throws RuntimeError if a duplicate is added
Usage:
suite = Suite('suite') # create a suite
f1 = Family('f1') # create a family
suite.add_family(f1) # add family to suite
f2 = suite.add_family('f2') # create a family and add to suite
add_family(self: ecflow.NodeContainer, arg0: Family) -> ecflow.Node
- NodeContainer.add_task(*args, **kwargs)
Overloaded function.
add_task(self: ecflow.NodeContainer, arg0: str) -> ecflow.Node
Add a task. See ecflow.Task
Multiple Tasks can be added. However Task names must be unique, for a given parent. Task can be added to Familiy’s or Suites.
Exception:
Throws RuntimeError if a duplicate is added
Usage:
f1 = Family('f1') # create a family
t1 = Task('t1') # create a task
f1.add_task(t1) # add task to family
t2 = f1.add_task('t2') # create task 't2' and add to family
add_task(self: ecflow.NodeContainer, arg0: ecflow.Task) -> ecflow.Node
- NodeContainer.find_family(self: ecflow.NodeContainer, arg0: str) Family
Find a family given a name
- NodeContainer.find_node(self: ecflow.NodeContainer, arg0: str) ecflow.Node
Find immediate child node given a name
- NodeContainer.find_task(self: ecflow.NodeContainer, arg0: str) ecflow.Task
Find a task given a name
- property NodeContainer.nodes
Returns a list of Node’s