Package org.yamcs.ygw

Class YgwParameterManager

java.lang.Object
org.yamcs.ygw.YgwParameterManager
All Implemented Interfaces:
SoftwareParameterManager

public class YgwParameterManager extends Object implements SoftwareParameterManager
Handles parameter updates from the clients.

When a YgwLink is configured, one instance of this is created and registered to the realtime processor of the Yamcs instance where the link belongs.

Objects of this class are linked to the processor so they may be used by multiple gateways. Each gateway should configure their own namespace to avoid clashing of parameters.

  • Constructor Details

  • Method Details

    • updateParameters

      public void updateParameters(List<ParameterValue> pvals)
      called from Yamcs API -> send all parameter values to YGW
      Specified by:
      updateParameters in interface SoftwareParameterManager
    • processParameters

      public List<ParameterValue> processParameters(YgwLink ygwLink, int nodeId, org.yamcs.ygw.protobuf.Ygw.ParameterData pdata)
      called when parameters are coming from the gateway
    • addParameterDefs

      public void addParameterDefs(YgwLink link, int nodeId, String namespace, org.yamcs.ygw.protobuf.Ygw.ParameterDefinitionList pdefs)
      Called when receiving a list of parameter definitions from YGW.

      Adds the definitions to the MDB after filtering out the invalid ones.

    • getYgwParameter

      public org.yamcs.ygw.ParameterPool.YgwParameter getYgwParameter(YgwLink ygwLink, int nodeId, int pid)