Ejemplo n.º 1
0
    def __init__(self, paramGroup):
        self.group = paramGroup
        self.choiceList = {}
        self.paramList = {}

        for i in xrange(0, self.getNumParameters()):
            param = trch.Paramgroup_getParameter(paramGroup, i)
            name = trch.Parameter_getName(param)
            self.paramList[name.lower()] = Parameter(param)

        for i in xrange(0, self.getNumParamchoices()):
            paramChoice = trch.Paramgroup_getParamchoice(paramGroup, i)
            name = trch.Paramchoice_getName(paramChoice)
            self.choiceList[name.lower()] = Paramchoice(paramChoice)
Ejemplo n.º 2
0
    def __init__(self, params, ns, ver):
        self.choiceList = {}
        self.paramList = {}
        self.parameters = params
        self.namespaceUri = ns
        self.schemaVersion = ver

        for i in xrange(0, self.getNumParameters()):
            param = trch.Params_getParameter(self.parameters, i)
            name = trch.Parameter_getName(param)
            self.paramList[name.lower()] = Parameter(param)

        for i in xrange(0, self.getNumParamchoices()):
            paramChoice = trch.Params_getParamchoice(self.parameters, i)
            name = trch.Paramchoice_getName(paramChoice)
            self.choiceList[name.lower()] = Paramchoice(paramChoice)
Ejemplo n.º 3
0
 def getName(self):
     return trch.Parameter_getName(self.param)