public abstract class InstrumentDriver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
commandSeparation |
protected Charset |
encoding |
protected String |
instrument |
protected List<Interceptor> |
interceptors |
protected String |
responseTermination |
protected int |
responseTimeout |
| Constructor and Description |
|---|
InstrumentDriver() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
command(String command,
TseCommand metadata,
boolean expectResponse) |
abstract void |
connect() |
abstract void |
disconnect() |
String |
getCommandSeparation() |
abstract String |
getDefaultRequestTermination()
Returns the driver-specific default pattern for terminating requests.
|
String |
getName() |
String |
getResponseTermination() |
int |
getResponseTimeout() |
void |
init(String name,
YConfiguration config) |
abstract void |
readAvailable(ResponseBuffer buffer,
int timeout) |
abstract void |
write(byte[] cmd) |
protected String instrument
protected String commandSeparation
protected String responseTermination
protected int responseTimeout
protected List<Interceptor> interceptors
protected Charset encoding
public void init(String name, YConfiguration config)
public String getName()
public String getCommandSeparation()
public String getResponseTermination()
public int getResponseTimeout()
public List<String> command(String command, TseCommand metadata, boolean expectResponse) throws IOException, TimeoutException
IOExceptionTimeoutExceptionpublic abstract void connect()
throws IOException
IOExceptionpublic abstract void disconnect()
throws IOException
IOExceptionpublic abstract void write(byte[] cmd)
throws IOException
IOExceptionpublic abstract void readAvailable(ResponseBuffer buffer, int timeout) throws IOException
IOExceptionpublic abstract String getDefaultRequestTermination()
Return null to do no request termination.
Copyright © 2020 Space Applications Services. All rights reserved.