Package org.yamcs.ygw
Class YgwParameterManager
java.lang.Object
org.yamcs.ygw.YgwParameterManager
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionYgwParameterManager(Processor processor, String yamcsInstance, DataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameterDefs(YgwLink link, int nodeId, String namespace, org.yamcs.ygw.protobuf.Ygw.ParameterDefinitionList pdefs) Called when receiving a list of parameter definitions from YGW.org.yamcs.ygw.ParameterPool.YgwParametergetYgwParameter(YgwLink ygwLink, int nodeId, int pid) processParameters(YgwLink ygwLink, int nodeId, org.yamcs.ygw.protobuf.Ygw.ParameterData pdata) called when parameters are coming from the gatewayvoidupdateParameters(List<ParameterValue> pvals) called from Yamcs API -> send all parameter values to YGWMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.parameter.SoftwareParameterManager
updateParameter
-
Constructor Details
-
YgwParameterManager
-
-
Method Details
-
updateParameters
called from Yamcs API -> send all parameter values to YGW- Specified by:
updateParametersin interfaceSoftwareParameterManager
-
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)
-