def __init__(self, ns, elem, validator, cp, path, chain_level, depth, memory_models, models=None, bgroup=None, bg_part_ind=0): ====================================================
Initialize Task object
ns – xml namespace as str elem – xml element as ElementTree object validator – validator (Lexicon) instance cp – ConditionParser instance path – task path in model_chain hierarchy chain_level – task evaluation level as str depth – depth of model chain hierarchy as int memory_models – memory_model names as a set of strings models – model instances bgroup – branching group name as str bg_part_ind – branching group part indice as int
Constructs a nested task-subtasks structure
Checks that the implementation really exists for the task’s model. Optionally returns all implementations of the given type
mtype – model type model – model name all – boolean for returning all implementations
Extract the model parameter definitions from an XML element if the model exists Stores the model object and creates the model parameter object instance according to the model type