public class SimulatedCommunications extends ReferenceDriverCommunications
ReferenceDriverCommunications.LineEndingType
Modifier and Type | Field and Description |
---|---|
protected java.net.Socket |
clientSocket |
protected GcodeServer |
gcodeServer |
protected java.io.BufferedReader |
input |
protected java.io.DataOutputStream |
output |
lineEndingType
Constructor and Description |
---|
SimulatedCommunications() |
Modifier and Type | Method and Description |
---|---|
void |
connect() |
void |
disconnect() |
java.lang.String |
getConnectionName() |
GcodeServer |
getGcodeServer() |
int |
read() |
void |
setDriver(Driver driver) |
void |
write(int d) |
void |
writeBytes(byte[] data) |
getLineEndingType, readLine, readUntil, setLineEndingType, writeLine
protected java.net.Socket clientSocket
protected java.io.BufferedReader input
protected java.io.DataOutputStream output
protected GcodeServer gcodeServer
public void connect() throws java.lang.Exception
connect
in class ReferenceDriverCommunications
java.lang.Exception
public void disconnect() throws java.lang.Exception
disconnect
in class ReferenceDriverCommunications
java.lang.Exception
public java.lang.String getConnectionName()
getConnectionName
in class ReferenceDriverCommunications
public GcodeServer getGcodeServer()
getGcodeServer
in class ReferenceDriverCommunications
public int read() throws java.util.concurrent.TimeoutException, java.io.IOException
read
in class ReferenceDriverCommunications
java.util.concurrent.TimeoutException
java.io.IOException
public void write(int d) throws java.io.IOException
write
in class ReferenceDriverCommunications
java.io.IOException
public void setDriver(Driver driver)
public void writeBytes(byte[] data) throws java.io.IOException
writeBytes
in class ReferenceDriverCommunications
java.io.IOException