def __init__(self, ol_specification): if not isinstance(ol_specification, OLSpecification): raise SpecificationError, """the specification is not a valid """\ """OLSpecification object""" AbstractChoiceModel.__init__(self, ol_specification) self.thresholds = ol_specification.thresholds self.distribution = ol_specification.distribution
def __init__(self, specification): AbstractChoiceModel.__init__(self, specification) if not isinstance(specification, NestedSpecification): raise SpecificationError, """the specification input is not a valid """\ """NestedSpecification object""" self.parent_list = [] for parent in self.specification: self.parent_list.append(parent)
def __init__(self, specification): if not isinstance(specification, Specification): raise SpecificationError, """the specification input is not a valid """\ """Specification object""" AbstractChoiceModel.__init__(self, specification)