Package org.yamcs.tse

Class InstrumentController

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.tse.InstrumentController
All Implemented Interfaces:
com.google.common.util.concurrent.Service

public class InstrumentController extends com.google.common.util.concurrent.AbstractService
Guarantees instruments are used by only one thread at a time, and establishes/closes device connections as-needed.
  • Constructor Details

    • InstrumentController

      public InstrumentController()
  • Method Details

    • addInstrument

      public void addInstrument(InstrumentDriver instrument)
    • doStart

      protected void doStart()
      Specified by:
      doStart in class com.google.common.util.concurrent.AbstractService
    • queueCommand

      public com.google.common.util.concurrent.ListenableFuture<List<String>> queueCommand(InstrumentDriver instrument, TseCommand metadata, String command, boolean expectResponse)
    • getInstrument

      public InstrumentDriver getInstrument(String name)
    • getInstruments

      public List<InstrumentDriver> getInstruments()
    • doStop

      protected void doStop()
      Specified by:
      doStop in class com.google.common.util.concurrent.AbstractService