def __init__(self, session): project = session.project() directory = project.createFilename(u'session', count=project.session_index) Directory.__init__(self, directory) SessionAgent.__init__(self, session, "directory:%s" % basename(self.directory)) self.rename_parts = []
def __init__(self, process): type = process.stdout if type not in ('null', 'file'): raise ValueError('Invalid stdout type: %r' % type) SessionAgent.__init__(self, process.project().session, "stdout file") self.type = type self.process = weakref_ref(process)
def __init__(self, session, socket, address, family): self.socket = socket self.address = address self.family = family name = "net_client:" + formatAddress(self.family, self.address, short=True) SessionAgent.__init__(self, session, name) self.tx_bytes = 0 self.rx_bytes = 0
def __init__(self, session, server, socket, address, family): self.server = weakref_ref(server) self.socket = socket self.address = address self.family = family name = "net_client:" + formatAddress(self.family, self.address, short=True) SessionAgent.__init__(self, session, name) self.tx_bytes = 0 self.rx_bytes = 0
def __init__(self, project): self.agents = AgentList() self.score = None self.log_handler = None SessionAgent.__init__(self, self, "session", project=project)
def __init__(self, session, directory): project = session.project() directory = project.directory.uniqueFilename('session', count=project.session_index) Directory.__init__(self, directory) SessionAgent.__init__(self, session, "directory:%s" % basename(self.directory))
def __init__(self, project): self.agents = AgentList() self.score = None self.log_handler = None name = "session %s" % project.session_index SessionAgent.__init__(self, self, name, project=project)