ostk.astrodynamics.trajectory.state.CoordinateBroker¶
- class CoordinateBroker(*args, **kwargs)¶
Bases:
pybind11_object
Class to manage the coordinate subsets of a state.
Overloaded function.
__init__(self: ostk.astrodynamics.trajectory.state.CoordinateBroker) -> None
Default constructor.
__init__(self: ostk.astrodynamics.trajectory.state.CoordinateBroker, coordinate_subsets: list[ostk::astrodynamics::trajectory::state::CoordinateSubset]) -> None
Create a broker for ther provided coordinate subsets.
- Args:
list[CoordinateSubset]: The list of coordinate subsets.
Methods
Access the list of coordinate subsets.
Add a coordinate subset.
Extract the coordinates of a subset from a full coordinates vector.
Extract the coordinates of multiple subsets from a full coordinates vector.
Get the total number of coordinates.
Get the number of coordinate subsets.
Get the list of coordinate subsets.
Check if the coordinate broker has a given coordinate subset.
- access_subsets( ) list[ostk::astrodynamics::trajectory::state::CoordinateSubset] ¶
Access the list of coordinate subsets.
- Returns:
The list of coordinate subsets.
- Return type:
- add_subset(
- self: ostk.astrodynamics.trajectory.state.CoordinateBroker,
- coordinate_subset: ostk::astrodynamics::trajectory::state::CoordinateSubset,
Add a coordinate subset.
- Parameters:
coordinate_subset (CoordinateSubset) -- The coordinate subset to add.
- extract_coordinate(self: ostk.astrodynamics.trajectory.state.CoordinateBroker, coordinates: numpy.ndarray[numpy.float64[m, 1]], coordinate_subset: ostk::astrodynamics::trajectory::state::CoordinateSubset) numpy.ndarray[numpy.float64[m, 1]] ¶
Extract the coordinates of a subset from a full coordinates vector.
- Parameters:
coordinates (numpy.ndarray) -- The full coordinates vector.
coordinate_subset (CoordinateSubset) -- The coordinate subset.
- Returns:
The coordinates of the subset.
- Return type:
- extract_coordinates(self: ostk.astrodynamics.trajectory.state.CoordinateBroker, coordinates: numpy.ndarray[numpy.float64[m, 1]], coordinate_subsets: list[ostk::astrodynamics::trajectory::state::CoordinateSubset]) numpy.ndarray[numpy.float64[m, 1]] ¶
Extract the coordinates of multiple subsets from a full coordinates vector.
- Parameters:
coordinates (numpy.ndarray) -- The full coordinates vector.
coordinate_subsets (list[CoordinateSubset]) -- The coordinate subsets.
- Returns:
The coordinates of the subsets.
- Return type:
- get_number_of_coordinates( ) int ¶
Get the total number of coordinates.
- Returns:
The total number of coordinates.
- Return type:
- get_number_of_subsets( ) int ¶
Get the number of coordinate subsets.
- Returns:
The number of coordinate subsets.
- Return type:
- get_subsets( ) list[ostk::astrodynamics::trajectory::state::CoordinateSubset] ¶
Get the list of coordinate subsets.
- Returns:
The list of coordinate subsets.
- Return type:
- has_subset(
- self: ostk.astrodynamics.trajectory.state.CoordinateBroker,
- coordinate_subset: ostk::astrodynamics::trajectory::state::CoordinateSubset,
Check if the coordinate broker has a given coordinate subset.
- Parameters:
coordinate_subset (CoordinateSubset) -- The coordinate subset to check.
- Returns:
True if the coordinate broker has the coordinate subset, False otherwise.
- Return type: