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
EOFExceptionpublic static VirtualUartBus createEnv() throws IOException
IOExceptionpublic static VirtualUartBus createEnv(int busFrom) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic UartBus newBus(int busFrom)
Copyright © 2020. All rights reserved.