Class astrea::astro::Plane¶
template <class Spacecraft_T>
ClassList > astrea > astro > Plane
A Plane is a collection ofSpacecraft that share the same orbital elements.More...
#include <Plane.hpp>
Public Types¶
| Type | Name |
|---|---|
| typedef std::vector< Spacecraft_T >::const_iterator | const_iterator Const iterator for iterating over all Spacecraft in thePlane . |
| typedef std::vector< Spacecraft_T >::iterator | iterator Iterator for iterating over all Spacecraft in thePlane . |
Public Functions¶
| Type | Name |
|---|---|
| Plane () = default Default constructor for Plane . |
|
| Plane (std::vector< Spacecraft_T > satellites) Construct a Plane from a vector ofSpacecraft . |
|
| void | add_spacecraft (const Spacecraft_T & spacecraft) Add a Spacecraft to thePlane . |
| iterator | begin () Get an iterator to the beginning of the Plane . |
| const_iterator | begin () const Get a const iterator to the beginning of the Plane . |
| const_iterator | cbegin () const Get a const iterator to the beginning of the Plane . |
| const_iterator | cend () const Get a const iterator to the end of the Plane . |
| iterator | end () Get an iterator to the end of the Plane . |
| const_iterator | end () const Get a const iterator to the end of the Plane . |
| std::vector< Spacecraft_T > & | get_all_spacecraft () Get all Spacecraft in thePlane . |
| const std::vector< Spacecraft_T > & | get_all_spacecraft () const Get all Spacecraft in thePlane . |
| const std::size_t | get_id () const Get the ID of the Plane . |
| const Spacecraft_T & | get_spacecraft (const std::size_t & spacecraftId) const Get a Spacecraft by its ID. |
| void | propagate (const Time & propTime, const EquationsOfMotion & eom, Integrator & integrator) Propagate the Plane using the provided epoch and Equations of Motion. |
| void | propagate (const Date & endEpoch, const EquationsOfMotion & eom, Integrator & integrator) Propagate the Plane using the provided epoch and Equations of Motion. |
| const std::size_t | size () const Get the number of Spacecraft in thePlane . |
| ~Plane () Destructor for Plane . |
Detailed Description¶
Template parameters:
Spacecraft_TThe type of Spacecraft that this Plane will contain. Must be derived from Spacecraft.
Note:
This class is templated to allow for different types of Spacecraft, but it is expected that the type will be derived from Spacecraft.
Public Types Documentation¶
typedef const_iterator¶
Const iterator for iterating over all Spacecraft in thePlane .
using astrea::astro::Plane< Spacecraft_T >::const_iterator = std::vector<Spacecraft_T>::const_iterator;
typedef iterator¶
Iterator for iterating over all Spacecraft in thePlane .
Public Functions Documentation¶
function Plane [1/2]¶
Default constructor for Plane .
function Plane [2/2]¶
Construct a Plane from a vector ofSpacecraft .
Parameters:
satellitesA vector of Spacecraft to initialize the Plane.
function add_spacecraft¶
Add a Spacecraft to thePlane .
Parameters:
spacecraftThe Spacecraft to add to the Plane.
function begin [1/2]¶
Get an iterator to the beginning of the Plane .
Returns:
iterator An iterator pointing to the first Spacecraft in the Plane.
function begin [2/2]¶
Get a const iterator to the beginning of the Plane .
Returns:
const_iterator A const iterator pointing to the first Spacecraft in the Plane.
function cbegin¶
Get a const iterator to the beginning of the Plane .
Returns:
const_iterator A const iterator pointing to the first Spacecraft in the Plane.
function cend¶
Get a const iterator to the end of the Plane .
Returns:
const_iterator A const iterator pointing to one past the last Spacecraft in the Plane.
function end [1/2]¶
Get an iterator to the end of the Plane .
Returns:
iterator An iterator pointing to one past the last Spacecraft in the Plane.
function end [2/2]¶
Get a const iterator to the end of the Plane .
Returns:
const_iterator A const iterator pointing to one past the last Spacecraft in the Plane.
function get_all_spacecraft [1/2]¶
Get all Spacecraft in thePlane .
Returns:
std::vector<Spacecraft_T>& A reference to the vector of Spacecraft in the Plane.
function get_all_spacecraft [2/2]¶
Get all Spacecraft in thePlane .
Returns:
const std::vector<Spacecraft_T>& A const reference to the vector of Spacecraft in the Plane.
function get_id¶
Get the ID of the Plane .
Returns:
const std::size_t The unique identifier for the Plane.
function get_spacecraft¶
Get a Spacecraft by its ID.
const Spacecraft_T & astrea::astro::Plane::get_spacecraft (
const std::size_t & spacecraftId
) const
Parameters:
spacecraftIdThe ID of the Spacecraft to retrieve.
Returns:
Spacecraft_T& A reference to the Spacecraft with the specified ID.
function propagate [1/2]¶
Propagate the Plane using the provided epoch and Equations of Motion.
void astrea::astro::Plane::propagate (
const Time & propTime,
const EquationsOfMotion & eom,
Integrator & integrator
)
Parameters:
propTimeThe total propagation time after the initial state epoch.eomThe Equations of Motion to use for propagation.integratorThe Integrator to use for propagation.
function propagate [2/2]¶
Propagate the Plane using the provided epoch and Equations of Motion.
void astrea::astro::Plane::propagate (
const Date & endEpoch,
const EquationsOfMotion & eom,
Integrator & integrator
)
Parameters:
endEpochThe end epoch for propagation.eomThe Equations of Motion to use for propagation.integratorThe Integrator to use for propagation.
function size¶
Get the number of Spacecraft in thePlane .
Returns:
std::size_t The number of Spacecraft in the Plane.
function ~Plane¶
Destructor for Plane .
The documentation for this class was generated from the following file astrea/astro/astro/platforms/space/Plane.hpp