use of org.yamcs.protobuf.Yamcs.NamedObjectList in project yamcs-studio by yamcs.
the class PVCatalogue method register.
public synchronized void register(YamcsPVReader pvReader) {
pvReadersById.put(pvReader.getId(), pvReader);
// Report current connection state
boolean connected = YamcsPlugin.getYamcsClient().isConnected();
ParameterInfo p = ParameterCatalogue.getInstance().getParameterInfo(pvReader.getId());
pvReader.processConnectionInfo(new PVConnectionInfo(connected, p));
// Register (pending) websocket request
NamedObjectList idList = pvReader.toNamedObjectList();
ParameterCatalogue.getInstance().subscribeParameters(idList);
}
use of org.yamcs.protobuf.Yamcs.NamedObjectList in project yamcs-studio by yamcs.
the class PVCatalogue method unregister.
public synchronized void unregister(YamcsPVReader pvReader) {
pvReadersById.remove(pvReader.getId());
NamedObjectList idList = pvReader.toNamedObjectList();
ParameterCatalogue.getInstance().unsubscribeParameters(idList);
}
Aggregations