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
예제 #2
0
 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
예제 #3
0
    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
예제 #4
0
 def __init__(self, filename, inter_record_delay=0):
     Reader.__init__(self, LineTransactionExtractor(), 0)
     self.filename = filename
     self.inter_record_delay = inter_record_delay
예제 #5
0
 def __init__(self, transaction_extractor, filename):
     Reader.__init__(self, transaction_extractor, 0)
     self.filename = filename
예제 #6
0
 def __init__(self, transaction_extractor, hostname, port):
     Reader.__init__(self, transaction_extractor, 0)
     self.hostname = hostname
     self.port = port
예제 #7
0
 def __init__(self, transaction_extractor, hostname, port):
     Reader.__init__(self, transaction_extractor, 0)
     self.hostname = hostname
     self.port = port
예제 #8
0
 def __init__(self, filename, inter_record_delay=0):
     Reader.__init__(self, LineTransactionExtractor(), 0)
     self.filename = filename
     self.inter_record_delay = inter_record_delay
예제 #9
0
 def __init__(self, transaction_extractor, filename):
     Reader.__init__(self, transaction_extractor, 0)
     self.filename = filename
예제 #10
0
 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