public class XtceDb extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
YAMCS_CMD_SPACESYSTEM_NAME |
static String |
YAMCS_CMDHIST_SPACESYSTEM_NAME |
static String |
YAMCS_SPACESYSTEM_NAME
Namespaces system parameters
|
| Constructor and Description |
|---|
XtceDb(SpaceSystem spaceSystem) |
public static final String YAMCS_SPACESYSTEM_NAME
public static final String YAMCS_CMD_SPACESYSTEM_NAME
public static final String YAMCS_CMDHIST_SPACESYSTEM_NAME
public XtceDb(SpaceSystem spaceSystem)
public SequenceContainer getSequenceContainer(String qualifiedName)
public SequenceContainer getSequenceContainer(String namespace, String name)
public SequenceContainer getSequenceContainer(Yamcs.NamedObjectId id)
public Parameter getParameter(Yamcs.NamedObjectId id)
public SequenceContainer getRootSequenceContainer()
public void setRootSequenceContainer(SequenceContainer sc)
public Algorithm getAlgorithm(Yamcs.NamedObjectId id)
public Collection<Algorithm> getAlgorithms()
public Collection<Parameter> getParameters()
public boolean containsNamespace(String namespace)
public MetaCommand getMetaCommand(String qualifiedName)
qualifiedName - - fully qualified name of the command to be returned.null is
returned.public MetaCommand getMetaCommand(String namespace, String name)
namespace - name - null is returned.public MetaCommand getMetaCommand(Yamcs.NamedObjectId id)
public Collection<MetaCommand> getMetaCommands()
public SpaceSystem getRootSpaceSystem()
public SpaceSystem getSpaceSystem(String qualifiedName)
public SpaceSystem getSpaceSystem(String namespace, String name)
public SpaceSystem getSpaceSystem(Yamcs.NamedObjectId id)
public Collection<SequenceContainer> getSequenceContainers()
public List<ParameterEntry> getParameterEntries(Parameter p)
null if no such entry exists.public List<ContainerEntry> getContainerEntries(SequenceContainer sc)
null if no such entry
exists.public Collection<String> getParameterNames()
public <T extends NonStandardData<T>> T getNonStandardDataOfType(Class<T> clazz)
public Collection<NonStandardData> getNonStandardData()
public void buildIndexMaps()
public List<SequenceContainer> getInheritingContainers(SequenceContainer container)
public void addParameter(Parameter p, boolean createSpaceSystem)
p - createSpaceSystem - - if true, create all the necessary space systemspublic void addMetaCommand(MetaCommand c)
Note that this method is used to create commands on the fly.
The commands are not saved anywhere and they will not be available when this object is created with the
XtceDbFactory.
public void addSpaceSystem(SpaceSystem system)
SpaceSystem to the XTCE database.
It throws an IllegalArgumentException in the following circumstances:
system.getParent() does not return null
NameDescription.getSubsystemName()) does not exist
system - - the space system to be added.public static boolean isSystemParameter(Yamcs.NamedObjectId id)
public Collection<SpaceSystem> getSpaceSystems()
SpaceSystem objects in the XTCE database.public Collection<IndirectParameterRefEntry> getIndirectParameterRefEntries(String namespace)
IndirectParameterRefEntry for a given alias namespace.namespace - - the namespace for which the indirect parameter reference entries should be retrieved. Can be null to
return the entries without a namespace.null is returned.public void print(PrintStream out)
Copyright © 2018 Space Applications Services. All rights reserved.