- Systems
- System
SystemSystem.__init__()System.algorithmsSystem.aliasesSystem.commandsSystem.containersSystem.dump()System.dumps()System.extraSystem.find_algorithm()System.find_command()System.find_container()System.find_parameter()System.find_subsystem()System.long_descriptionSystem.nameSystem.parametersSystem.qualified_nameSystem.remove_algorithm()System.remove_command()System.remove_container()System.remove_parameter()System.remove_subsystem()System.rootSystem.short_descriptionSystem.subsystems
- Subsystem
SubsystemSubsystem.__init__()Subsystem.algorithmsSubsystem.aliasesSubsystem.commandsSubsystem.containersSubsystem.dump()Subsystem.dumps()Subsystem.extraSubsystem.find_algorithm()Subsystem.find_command()Subsystem.find_container()Subsystem.find_parameter()Subsystem.find_subsystem()Subsystem.long_descriptionSubsystem.nameSubsystem.parametersSubsystem.qualified_nameSubsystem.remove_algorithm()Subsystem.remove_command()Subsystem.remove_container()Subsystem.remove_parameter()Subsystem.remove_subsystem()Subsystem.rootSubsystem.short_descriptionSubsystem.subsystemsSubsystem.system
- System
- Parameters
- Containers
- Algorithms
- Commands
- Encodings
- Calibrators
- Alarms
- Ancillary
- Data Types
- Exceptions
- Expressions
- Verifiers
Systems¶
System¶
- class yamcs.pymdb.System¶
Bases:
objectThe top-level system is the root element for the set of metadata necessary to monitor and command a space device, such as a satellite.
A system defines a namespace.
Metadata areas include: telemetry, calibration, alarm, algorithms and commands.
A system may have child
Subsystems, forming a system tree.- __init__(name: str, aliases: Mapping[str, str] | None = None, short_description: str | None = None, long_description: str | None = None, extra: Mapping[str, str] | None = None)¶
- dump(fp: TextIO, *, indent: str = ' ', top_comment: bool | str = True, skip_algorithms: bool = False, skip_commands: bool = False, skip_containers: bool = False, skip_parameters: bool = False, skip_subsystems: bool = False) → None¶
Serialize this system in XTCE format to a file-like object
- Parameters:
fp – The file-like object to serialize to.
fp.write()must supportstrinput.indent – String used to indent each level. For most compact, use empty string. Defaults to two spaces.
top_comment – Customize the XML comment to insert at the top of the generated XTCE. Set to
falseto have no top comment.skip_algorithms – If
True, skip the<AlgorithmSet />tag within<TelemetryMetaData />.skip_commands – If
True, skip the<CommandMetaData />tag.skip_containers – If
True, skip the<ContainerSet />tag within<TelemetryMetaData />.skip_parameters – If
True, skip the<ParameterSet />and<ParameterTypeSet />within<TelemetryMetaData />.
- dumps(*, indent: str = ' ', top_comment: bool | str = True, skip_algorithms: bool = False, skip_commands: bool = False, skip_containers: bool = False, skip_parameters: bool = False, skip_subsystems: bool = False) → str¶
Serialize this system to an XTCE-formatted string
- Parameters:
indent – String used to indent each level. For most compact, use empty string. Defaults to two spaces.
top_comment – Customize the XML comment to insert at the top of the generated XTCE. Set to
falseto have no top comment.skip_algorithms – If
True, skip the<AlgorithmSet />tag within<TelemetryMetaData />.skip_commands – If
True, skip the<CommandMetaData />tag.skip_containers – If
True, skip the<ContainerSet />tag within<TelemetryMetaData />.skip_parameters – If
True, skip the<ParameterSet />and<ParameterTypeSet />within<TelemetryMetaData />.
- find_algorithm(name: str) → Algorithm¶
Find an algorithm belonging directly to this system.
Raises an exception if no algorithm is found
- find_command(name: str) → Command¶
Find a command belonging directly to this system.
Raises an exception if no command is found
- find_container(name: str) → Container¶
Find a container belonging directly to this system.
Raises an exception if no container is found
- find_parameter(name: str) → Parameter¶
Find a parameter belonging directly to this system.
Raises an exception if no parameter is found
- find_subsystem(name: str) → Subsystem¶
Find a subsystem belonging directly to this system.
Raises an exception if no subsystem is found
- remove_algorithm(name: str) → bool¶
Removes an algorithm directly belonging to this system.
Raises an exception if no such algorithm exists
- remove_command(name: str) → bool¶
Removes a command directly belonging to this system.
Raises an exception if no such command exists
- remove_container(name: str) → bool¶
Removes a container directly belonging to this system.
Raises an exception if no such container exists
- remove_parameter(name: str) → bool¶
Removes a parameter directly belonging to this system.
Raises an exception if no such parameter exists
Subsystem¶
- class yamcs.pymdb.Subsystem¶
Bases:
SystemA subsystem is identical to a
System, but in addition keeps a reference to its parent system.- __init__(system: System, name: str, aliases: Mapping[str, str] | None = None, short_description: str | None = None, long_description: str | None = None, extra: Mapping[str, str] | None = None)¶
- dump(fp: TextIO, *, indent: str = ' ', top_comment: bool | str = True, skip_algorithms: bool = False, skip_commands: bool = False, skip_containers: bool = False, skip_parameters: bool = False, skip_subsystems: bool = False) → None¶
Serialize this system in XTCE format to a file-like object
- Parameters:
fp – The file-like object to serialize to.
fp.write()must supportstrinput.indent – String used to indent each level. For most compact, use empty string. Defaults to two spaces.
top_comment – Customize the XML comment to insert at the top of the generated XTCE. Set to
falseto have no top comment.skip_algorithms – If
True, skip the<AlgorithmSet />tag within<TelemetryMetaData />.skip_commands – If
True, skip the<CommandMetaData />tag.skip_containers – If
True, skip the<ContainerSet />tag within<TelemetryMetaData />.skip_parameters – If
True, skip the<ParameterSet />and<ParameterTypeSet />within<TelemetryMetaData />.
- dumps(*, indent: str = ' ', top_comment: bool | str = True, skip_algorithms: bool = False, skip_commands: bool = False, skip_containers: bool = False, skip_parameters: bool = False, skip_subsystems: bool = False) → str¶
Serialize this system to an XTCE-formatted string
- Parameters:
indent – String used to indent each level. For most compact, use empty string. Defaults to two spaces.
top_comment – Customize the XML comment to insert at the top of the generated XTCE. Set to
falseto have no top comment.skip_algorithms – If
True, skip the<AlgorithmSet />tag within<TelemetryMetaData />.skip_commands – If
True, skip the<CommandMetaData />tag.skip_containers – If
True, skip the<ContainerSet />tag within<TelemetryMetaData />.skip_parameters – If
True, skip the<ParameterSet />and<ParameterTypeSet />within<TelemetryMetaData />.
- find_algorithm(name: str) → Algorithm¶
Find an algorithm belonging directly to this system.
Raises an exception if no algorithm is found
- find_command(name: str) → Command¶
Find a command belonging directly to this system.
Raises an exception if no command is found
- find_container(name: str) → Container¶
Find a container belonging directly to this system.
Raises an exception if no container is found
- find_parameter(name: str) → Parameter¶
Find a parameter belonging directly to this system.
Raises an exception if no parameter is found
- find_subsystem(name: str) → Subsystem¶
Find a subsystem belonging directly to this system.
Raises an exception if no subsystem is found
- remove_algorithm(name: str) → bool¶
Removes an algorithm directly belonging to this system.
Raises an exception if no such algorithm exists
- remove_command(name: str) → bool¶
Removes a command directly belonging to this system.
Raises an exception if no such command exists
- remove_container(name: str) → bool¶
Removes a container directly belonging to this system.
Raises an exception if no such container exists
- remove_parameter(name: str) → bool¶
Removes a parameter directly belonging to this system.
Raises an exception if no such parameter exists