Class VcTmPacketHandler

java.lang.Object
org.yamcs.tctm.ccsds.VcTmPacketHandler
All Implemented Interfaces:
VcDownlinkHandler, Link, TmPacketDataLink

public class VcTmPacketHandler extends Object implements TmPacketDataLink, VcDownlinkHandler
Handles packets from one VC
  • Constructor Details

  • Method Details

    • handle

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

      public Link.Status getLinkStatus()
      Description copied from interface: Link
      Returns the current link status.
      Specified by:
      getLinkStatus in interface Link
    • getDetailedStatus

      public String getDetailedStatus()
      Description copied from interface: Link
      Returns a short detail status (one-line)
      Specified by:
      getDetailedStatus in interface Link
    • enable

      public void enable()
      Description copied from interface: Link
      Reenable the data transit if disabled by the disable() method.
      Specified by:
      enable in interface Link
    • disable

      public void disable()
      Description copied from interface: Link
      Disable any data I/O through this link. Any connection to a server is closed. Can be reenabled using the enable method. Note that this method can be called before starting the service if it's configured as such in the configuration file
      Specified by:
      disable in interface Link
    • isDisabled

      public boolean isDisabled()
      Description copied from interface: Link
      return true if the link has been disabled by the user.

      See also Link.isEffectivelyDisabled()

      Specified by:
      isDisabled in interface Link
    • getDataInCount

      public long getDataInCount()
      Specified by:
      getDataInCount in interface Link
    • getDataOutCount

      public long getDataOutCount()
      Specified by:
      getDataOutCount in interface Link
    • resetCounters

      public void resetCounters()
      Specified by:
      resetCounters in interface Link
    • setTmSink

      public void setTmSink(TmSink tmSink)
      Description copied from interface: TmPacketDataLink
      sets the tm sink that should get all the tm packets
      Specified by:
      setTmSink in interface TmPacketDataLink
    • getConfig

      public YConfiguration getConfig()
      Specified by:
      getConfig in interface Link
      Returns:
      the config (args) used when creating the link
    • getName

      public String getName()
      Description copied from interface: Link
      Return the name of the link
      Specified by:
      getName in interface Link
    • getParent

      public AggregatedDataLink getParent()
      Description copied from interface: Link
      If this link is a sublink of an aggregated link, get the parent link.
      Specified by:
      getParent in interface Link
    • setParent

      public void setParent(AggregatedDataLink parent)
      Description copied from interface: Link
      Set the parent link if this is a sublink of an aggregated link.
      Specified by:
      setParent in interface Link