def __init__(self, transaction_extractor, startup_ignore_threshold_milliseconds, port, baud, timeout=60, parity=serial.PARITY_NONE, stop_bits=serial.STOPBITS_ONE): Reader.__init__(self, transaction_extractor, startup_ignore_threshold_milliseconds) self.port = port self.baud = baud self.timeout = timeout self.parity = parity self.stop_bits = stop_bits
def __init__(self, hostname, port, stream_transaction_factory, message_verifier=MessageVerifier(), client_filter=lambda a: True, binary=True, read_size=1024): Reader.__init__(self, None, 0) self.hostname = hostname self.port = port self.stream_transaction_factory = stream_transaction_factory self.message_verifier = message_verifier self.client_filter = client_filter self.binary = binary self.read_size = read_size self.connections = {} self.transactions = {} self.tcp_thread = None
def __init__(self, filename, inter_record_delay=0): Reader.__init__(self, LineTransactionExtractor(), 0) self.filename = filename self.inter_record_delay = inter_record_delay
def __init__(self, transaction_extractor, filename): Reader.__init__(self, transaction_extractor, 0) self.filename = filename
def __init__(self, transaction_extractor, hostname, port): Reader.__init__(self, transaction_extractor, 0) self.hostname = hostname self.port = port
def __init__(self, transaction_extractor, startup_ignore_threshold_milliseconds, serial_connection): Reader.__init__(self, transaction_extractor, startup_ignore_threshold_milliseconds) self.serial_connection = serial_connection