public abstract class InstrumentDriver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
commandSeparation |
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 |
|---|---|
List<String> |
command(String command,
boolean expectResponse) |
abstract void |
connect() |
abstract void |
disconnect() |
String |
getCommandSeparation() |
String |
getName() |
String |
getResponseTermination() |
int |
getResponseTimeout() |
abstract void |
readAvailable(ResponseBuffer buffer,
int timeout) |
abstract void |
write(String cmd) |
protected String name
protected String commandSeparation
protected String responseTermination
protected int responseTimeout
protected Charset encoding
public String getName()
public String getCommandSeparation()
public String getResponseTermination()
public int getResponseTimeout()
public List<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 void readAvailable(ResponseBuffer buffer, int timeout) throws IOException
IOExceptionCopyright © 2020 Space Applications Services. All rights reserved.