Table Of Contents

Previous topic

Next topic

This Page

class Task(object):

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

def _construct_chain_task(self, ns, elem):

Constructs a nested task-subtasks structure

def _get_model_impl(self, mtype, model=None, all=False):

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

def _set_model_and_param(self, ns, elem):

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