public class CustomCommPort extends java.lang.Object implements SerialCommunicationsPort
Constructor and Description |
---|
CustomCommPort(java.lang.String name) |
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 controllingDevice,
int timeout,
ComPortSettings settings) |
byte[] |
read() |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
write(byte[] gcode) |
public void open(java.lang.String controllingDevice, int timeout, ComPortSettings settings) throws AlreadyAssignedException, InappropriateDeviceException
open
in interface SerialCommunicationsPort
AlreadyAssignedException
InappropriateDeviceException
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) throws java.io.IOException
write
in interface SerialCommunicationsPort
java.io.IOException
public byte[] read() throws java.io.IOException
read
in interface SerialCommunicationsPort
java.io.IOException
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