Package org.yamcs.ygw

Class YgwNodeLink

java.lang.Object
com.google.common.util.concurrent.AbstractService
All Implemented Interfaces:
com.google.common.util.concurrent.Service, SystemParametersProducer, Link, LinkActionProvider, ParameterDataLink, TcDataLink, TmPacketDataLink

public class YgwNodeLink extends AbstractTcTmParamLink
Corresponds to a Node in the Yamcs Gateway or to a sub-link (in the gateway each node can have zero or more sub-links)

Each sub-link has an id and the node itself functions as a link with id 0

  • Constructor Details

    • YgwNodeLink

      public YgwNodeLink(YgwLink ygwLink, org.yamcs.ygw.protobuf.Ygw.Node node)
      Builds an object corresponding to a gateway node.
    • YgwNodeLink

      public YgwNodeLink(YgwLink ygwLink, YgwNodeLink parent, org.yamcs.ygw.protobuf.Ygw.Link link)
      Builds an object corresponding to a gateway sub-link.
  • Method Details

    • init

      public void init(String instance, String name, YConfiguration config)
      Specified by:
      init in interface Link
      Overrides:
      init in class AbstractTcTmParamLink
    • connectionStatus

      protected Link.Status connectionStatus()
      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
    • processParameters

      public void processParameters(int linkId, String group, int seqNum, List<ParameterValue> pvList)
    • processTm

      public void processTm(int linkId, io.netty.buffer.ByteBuf buf)
    • getSublink

      public YgwNodeLink getSublink(int linkId)
    • processLinkStatus

      public void processLinkStatus(int linkId, org.yamcs.ygw.protobuf.Ygw.LinkStatus lstatus)
    • sendCommand

      public boolean sendCommand(PreparedCommand pc)
    • processCommandAck

      public void processCommandAck(int linkId, org.yamcs.ygw.protobuf.Ygw.CommandAck cmdAck)
    • getParent

      public AggregatedDataLink getParent()
      Specified by:
      getParent in interface Link
      Overrides:
      getParent in class AbstractLink
    • isTmPacketDataLinkImplemented

      public boolean isTmPacketDataLinkImplemented()
    • isTcPacketDataLinkImplemented

      public boolean isTcPacketDataLinkImplemented()
    • isParameterDataLinkImplemented

      public boolean isParameterDataLinkImplemented()