Class AbstractTmFrameLink

java.lang.Object
com.google.common.util.concurrent.AbstractService
org.yamcs.tctm.AbstractLink
org.yamcs.tctm.ccsds.AbstractTmFrameLink
All Implemented Interfaces:
com.google.common.util.concurrent.Service, SystemParametersProducer, AggregatedDataLink, Link, LinkActionProvider
Direct Known Subclasses:
UdpTmFrameLink

public abstract class AbstractTmFrameLink extends AbstractLink implements AggregatedDataLink
  • Field Details

  • Constructor Details

    • AbstractTmFrameLink

      public AbstractTmFrameLink()
  • Method Details

    • getDefaultSpec

      public Spec getDefaultSpec()
      Description copied from interface: Link
      Returns a default link Spec. This can be used in an implementation of {Link.getSpec(). Eventually (after a few years), it is expected to migrate this logic directly into {LinkLink.getSpec(), rather than returning null from there. But we want to give sufficient time for links everywhere to start defining their arguments.
      Specified by:
      getDefaultSpec in interface Link
    • init

      public void init(String instance, String name, YConfiguration config) throws ConfigurationException
      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 AbstractLink
      config - - the configuration - cannot be null (but can be empty)
      Throws:
      ConfigurationException
    • handleFrame

      protected void handleFrame(Instant ert, byte[] data, int offset, int length)
      sends a frame to the multiplexer, after decoding and derandomizing it (if necessary)
      Parameters:
      ert - - earth reception time
      data - - buffer containing frame data
      offset - - offset in the buffer where the frame data starts
      length - - length of the frame data
    • getSubLinks

      public List<Link> getSubLinks()
      Specified by:
      getSubLinks in interface AggregatedDataLink
    • resetCounters

      public void resetCounters()
      Specified by:
      resetCounters in interface Link
      Overrides:
      resetCounters in class AbstractLink