def __init__(self, elementNode, equationFunction, key): "Initialize." self.distance = 0.0 elementNode.xmlObject = evaluate.getEvaluatorSplitWords(elementNode.attributes[key]) self.equationFunction = equationFunction self.function = evaluate.Function(elementNode) self.points = []
def __init__(self, key, revolutions, xmlElement): "Initialize." self.distance = 0.0 xmlElement.xmlObject = evaluate.getEvaluatorSplitWords( xmlElement.attributeDictionary[key]) self.function = evaluate.Function(xmlElement) self.points = [] self.revolutions = revolutions