public class SlaveStreams extends MockConnection
MockConnection.MBusTestInputStream, MockConnection.MBusTestOutputStream
Connection.State
log
DEFAULT_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, replay
createFromJSON, fromJSON, getBitPerSecond, getConnState, getInputStream, getLoggingStream, getOutputStrteam, getResponseTimeOutOffset, setBitPerSecond, setConnState, setLoggingStream, setResponseTimeOutOffset, toJSON
protected void lastByteReading(long endWaitTime)
lastByteReading
in class MockConnection
protected void lastByteWriting()
lastByteWriting
in class MockConnection
public 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 MockConnection
public String getJsonFieldName()
getJsonFieldName
in class Connection
public String getName()
getName
in class Connection
Copyright © 2009–2016 MBus4J. All rights reserved.