Package org.yamcs.tse
Class InstrumentDriver
java.lang.Object
org.yamcs.tse.InstrumentDriver
- Direct Known Subclasses:
SerialPortDriver
,TcpIpDriver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommand
(String command, TseCommand metadata, boolean expectResponse) abstract void
connect()
abstract void
abstract String
Returns the driver-specific default pattern for terminating requests.getName()
int
void
init
(String name, YConfiguration config) abstract void
readAvailable
(ResponseBuffer buffer, int timeout) abstract void
write
(byte[] cmd)
-
Field Details
-
instrument
-
commandSeparation
-
responseTermination
-
responseTimeout
protected int responseTimeout -
interceptors
-
encoding
-
-
Constructor Details
-
InstrumentDriver
public InstrumentDriver()
-
-
Method Details
-
init
-
getName
-
getCommandSeparation
-
getResponseTermination
-
getResponseTimeout
public int getResponseTimeout() -
command
public List<String> command(String command, TseCommand metadata, boolean expectResponse) throws IOException, TimeoutException - Throws:
IOException
TimeoutException
-
connect
- Throws:
IOException
-
disconnect
- Throws:
IOException
-
write
- Throws:
IOException
-
readAvailable
- Throws:
IOException
-
getDefaultRequestTermination
Returns the driver-specific default pattern for terminating requests. This is the termination that gets used if the user does not explicitly configure anything.Return
null
to do no request termination.
-