def __init__(self, project, name, mta=None): if not mta: mta = project.mta() Agent.__init__(self, name, mta) self.project = weakref_ref(project) if project is not self: self.score_weight = 1.0 self.register()
def __init__(self, name, application, mta): Agent.__init__(self, name, mta) self.application = weakref_ref(application) if application is not self: self.register()