public class ConsoleCommPort extends java.lang.Object implements SerialCommunicationsPort
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GCODE_RESPONSE_SIMULATION |
Constructor and Description |
---|
ConsoleCommPort() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
hashCode() |
void |
open(java.lang.String printerName,
int timeout,
ComPortSettings settings) |
byte[] |
read() |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
write(byte[] gcode) |
public static final java.lang.String GCODE_RESPONSE_SIMULATION
public void open(java.lang.String printerName, int timeout, ComPortSettings settings)
open
in interface SerialCommunicationsPort
public void close()
close
in interface SerialCommunicationsPort
public void setName(java.lang.String name)
setName
in interface SerialCommunicationsPort
public java.lang.String getName()
getName
in interface SerialCommunicationsPort
public void write(byte[] gcode)
write
in interface SerialCommunicationsPort
public byte[] read()
read
in interface SerialCommunicationsPort
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object