public class VirtualUartBus extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected UartBus |
bus |
protected boolean |
closed |
protected static eu.javaexperience.log.Logger |
LOG |
protected UartbusStreamerEndpoint |
logStream |
protected String |
name |
protected UartbusConnection |
srv |
Constructor and Description |
---|
VirtualUartBus() |
Modifier and Type | Method and Description |
---|---|
void |
addPacketLogging() |
void |
close() |
static VirtualUartBus |
createEnv() |
static VirtualUartBus |
createEnv(int busFrom) |
UartbusInstanceDisributorUnit |
createNewConnection() |
UartBus |
getBus() |
String |
getBusName() |
UartBus |
newBus(int busFrom) |
void |
setBusName(String name) |
protected static final eu.javaexperience.log.Logger LOG
protected String name
protected UartbusConnection srv
protected UartBus bus
protected boolean closed
protected UartbusStreamerEndpoint logStream
public String getBusName()
public void setBusName(String name)
public void addPacketLogging()
public UartBus getBus()
public UartbusInstanceDisributorUnit createNewConnection() throws EOFException
EOFException
public static VirtualUartBus createEnv() throws IOException
IOException
public static VirtualUartBus createEnv(int busFrom) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public UartBus newBus(int busFrom)
Copyright © 2020. All rights reserved.