def __init__(self, name): Observable.__init__(self) Configurable.__init__(self) validateName(name) self.name = name self._parameters = OrderedDict() self.__managed = [] self._manage(self._parameters) return
def __init__(self, name, par): """Initialization. name -- The name of this ParameterProxy. par -- The Parameter this is a proxy for. Raises ValueError if the name is not a valid attribute identifier """ validateName(name) self.name = name self.par = par return
def __init__(self, name, value=None, const=False): """Initialization. name -- The name of this Parameter (must be a valid attribute identifier) value -- The initial value of this Parameter (default 0). const -- A flag inticating whether the Parameter is a constant (like pi). Raises ValueError if the name is not a valid attribute identifier """ self.constrained = False self.bounds = [-inf, inf] validateName(name) Argument.__init__(self, name, value, const) return
def __init__(self, name, value = None, const = False): """Initialization. name -- The name of this Parameter (must be a valid attribute identifier) value -- The initial value of this Parameter (default 0). const -- A flag inticating whether the Parameter is a constant (like pi). Raises ValueError if the name is not a valid attribute identifier """ self.constrained = False self.bounds = [-inf, inf] validateName(name) Argument.__init__(self, name, value, const) return