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 voidconnect()abstract voidabstract StringReturns the driver-specific default pattern for terminating requests.getName()intvoidinit(String name, YConfiguration config) abstract voidreadAvailable(ResponseBuffer buffer, int timeout) abstract voidwrite(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:
IOExceptionTimeoutException
-
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
nullto do no request termination.
-