public abstract class InstrumentDriver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
encoding |
protected String |
name |
protected String |
responseTermination |
protected int |
responseTimeout |
| Constructor and Description |
|---|
InstrumentDriver(String name,
Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
String |
command(String command,
boolean expectResponse) |
abstract void |
connect() |
abstract void |
disconnect() |
String |
getName() |
String |
getResponseTermination() |
int |
getResponseTimeout() |
abstract String |
read() |
abstract void |
write(String cmd) |
protected String name
protected String responseTermination
protected int responseTimeout
protected Charset encoding
public String getName()
public String getResponseTermination()
public int getResponseTimeout()
public String command(String command, boolean expectResponse) throws IOException, TimeoutException
IOExceptionTimeoutExceptionpublic abstract void connect()
throws IOException
IOExceptionpublic abstract void disconnect()
throws IOException
IOExceptionpublic abstract void write(String cmd) throws IOException
IOExceptionpublic abstract String read() throws IOException, TimeoutException
IOExceptionTimeoutExceptionCopyright © 2018 Space Applications Services. All rights reserved.