public class SlaveStreams extends MockConnection
MockConnection.MBusTestInputStream, MockConnection.MBusTestOutputStreamConnection.StatelogDEFAULT_BAUDRATE, is, os| Constructor and Description |
|---|
SlaveStreams() |
| Modifier and Type | Method and Description |
|---|---|
String |
getJsonFieldName() |
String |
getName() |
protected void |
lastByteReading(long endWaitTime) |
protected void |
lastByteWriting() |
void |
respondToRequest(String request,
int times)
The request ist times to send, but no response from the slave.
|
SlaveStreams |
respondToRequest(String request,
String response)
Wait for a request and respond to it
|
protected void |
setNextData(boolean removeFirst) |
checkNoDataLeft, close, getMockIs, getMockOs, open, replaycreateFromJSON, fromJSON, getBitPerSecond, getConnState, getInputStream, getLoggingStream, getOutputStrteam, getResponseTimeOutOffset, setBitPerSecond, setConnState, setLoggingStream, setResponseTimeOutOffset, toJSONprotected void lastByteReading(long endWaitTime)
lastByteReading in class MockConnectionprotected void lastByteWriting()
lastByteWriting in class MockConnectionpublic void respondToRequest(String request, int times)
request - times - public SlaveStreams respondToRequest(String request, String response)
request - response - protected void setNextData(boolean removeFirst)
setNextData in class MockConnectionpublic String getJsonFieldName()
getJsonFieldName in class Connectionpublic String getName()
getName in class ConnectionCopyright © 2009–2016 MBus4J. All rights reserved.