Class SampleVcaHandler

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.tctm.AbstractLink
org.yamcs.tctm.AbstractTmDataLink
org.yamcs.examples.ccsdsframes.SampleVcaHandler
All Implemented Interfaces:
com.google.common.util.concurrent.Service, SystemParametersProducer, VcDownlinkHandler, Link, TmPacketDataLink

public class SampleVcaHandler extends AbstractTmDataLink implements VcDownlinkHandler
Example of a VCA (Virtual Channel Access) handler.

Extracts CCSDS packets from a frame which does not include the first header pointer.

Each frame it starts a new packet decoder.

  • Constructor Details

    • SampleVcaHandler

      public SampleVcaHandler()
  • Method Details

    • init

      public void init(String instance, String name, YConfiguration config)
      Description copied from interface: Link
      Called at startup to initialize the link.

      The config corresponds to the map that is under the link definition in yamcs.instance.yaml.

      Specified by:
      init in interface Link
      Overrides:
      init in class AbstractTmDataLink
      config - - the configuration - cannot be null (but can be empty)
    • handle

      public void handle(DownlinkTransferFrame frame)
      Specified by:
      handle in interface VcDownlinkHandler
    • connectionStatus

      protected Link.Status connectionStatus()
      Description copied from class: AbstractLink
      In case the link should be connected (i.e. is running and enabled) this method is called to return the actual connection status
      Specified by:
      connectionStatus in class AbstractLink
    • doStart

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

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