use of org.yamcs.studio.core.model.CommandingCatalogue in project yamcs-studio by yamcs.
the class YamcsPlugin method start.
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
TimeEncoding.setUp();
yamcsClient = new YamcsClient(getProductString(), true);
yamcsClient.addConnectionListener(new UIConnectionListener());
ManagementCatalogue managementCatalogue = new ManagementCatalogue();
catalogues.put(ManagementCatalogue.class, managementCatalogue);
addYamcsConnectionListener(managementCatalogue);
registerCatalogue(new TimeCatalogue());
registerCatalogue(new ParameterCatalogue());
registerCatalogue(new CommandingCatalogue());
registerCatalogue(new AlarmCatalogue());
registerCatalogue(new EventCatalogue());
registerCatalogue(new LinkCatalogue());
registerCatalogue(new ArchiveCatalogue());
}
use of org.yamcs.studio.core.model.CommandingCatalogue in project yamcs-studio by yamcs.
the class Yamcs method issueCommand.
public static void issueCommand(String text) {
ParseResult parsed = CommandParser.parseCommand(text);
IssueCommandRequest.Builder req = IssueCommandRequest.newBuilder();
req.setSequenceNumber(CommandingCatalogue.getInstance().getNextCommandClientId());
req.setOrigin(CommandingCatalogue.getInstance().getCommandOrigin());
req.addAllAssignment(parsed.getAssignments());
CommandingCatalogue catalogue = CommandingCatalogue.getInstance();
catalogue.sendCommand("realtime", parsed.getQualifiedName(), req.build());
}
Aggregations