ostk.astrodynamics.access.Generator¶
- class Generator(
- self: ostk.astrodynamics.access.Generator,
- environment: ostk.physics.Environment,
- step: ostk.physics.time.Duration = Duration.minutes(1.0),
- tolerance: ostk.physics.time.Duration = Duration.microseconds(1.0),
- access_filter: Callable[[ostk.astrodynamics.Access], bool] = None,
- state_filter: Callable[[ostk.astrodynamics.trajectory.State, ostk.astrodynamics.trajectory.State], bool] = None,
- environment: ostk.physics.Environment,
Bases:
pybind11_object
An access generator.
Constructor.
- Parameters:
environment (Environment) -- The environment.
step (Duration) -- The step. Defaults to Duration.minutes(1.0).
tolerance (Duration) -- The tolerance. Defaults to Duration.microseconds(1.0).
access_filter (function) -- The access filter. Defaults to None.
state_filter (function) -- The state filter. Defaults to None.
Methods
Overloaded function.
Get the access filter.
Get the condition function.
Get the state filter.
Get the step.
Get the tolerance.
Check if the generator is defined.
Set the access filter.
Set the state filter.
Set the step.
Set the tolerance.
Get an undefined generator.
- compute_accesses(*args, **kwargs)¶
Overloaded function.
compute_accesses(self: ostk.astrodynamics.access.Generator, interval: ostk.physics.time.Interval, access_target: ostk.astrodynamics.access.AccessTarget, to_trajectory: ostk.astrodynamics.Trajectory, coarse: bool = False) -> list[ostk.astrodynamics.Access]
Compute the accesses.
- Args:
interval (Interval): The time interval over which to compute accesses. access_target (AccessTarget): The access target to compute the accesses with. to_trajectory (Trajectory): The trajectory to co compute the accesses with. coarse (bool): True to use coarse mode. Defaults to False. Only available for fixed targets.
- Returns:
Accesses: The accesses.
compute_accesses(self: ostk.astrodynamics.access.Generator, interval: ostk.physics.time.Interval, access_targets: list[ostk.astrodynamics.access.AccessTarget], to_trajectory: ostk.astrodynamics.Trajectory, coarse: bool = False) -> list[list[ostk.astrodynamics.Access]]
Compute the accesses.
- Args:
interval (Interval): The time interval over which to compute accesses. access_targets (list[AccessTarget]): The access targets to compute the accesses with. to_trajectory (Trajectory): The trajectory to co compute the accesses with. coarse (bool): True to use coarse mode. Defaults to False. Only available for fixed targets.
- Returns:
Accesses: The accesses.
- get_access_filter( ) Callable[[ostk.astrodynamics.Access], bool] ¶
Get the access filter.
- Returns:
The access filter.
- Return type:
function
- get_condition_function(
- self: ostk.astrodynamics.access.Generator,
- access_target: ostk.astrodynamics.access.AccessTarget,
- to_trajectory: ostk.astrodynamics.Trajectory,
- access_target: ostk.astrodynamics.access.AccessTarget,
Get the condition function.
- Parameters:
access_target (AccessTarget) -- The access target from which the condition function is being evaluated against.
to_trajectory (Trajectory) -- The trajectory to which the condition function is being evaluated against.
- Returns:
The condition function.
- Return type:
function
- get_state_filter( ) Callable[[ostk.astrodynamics.trajectory.State, ostk.astrodynamics.trajectory.State], bool] ¶
Get the state filter.
- Returns:
The state filter.
- Return type:
function
- get_step( ) ostk.physics.time.Duration ¶
Get the step.
- Returns:
The step.
- Return type:
Duration
- get_tolerance( ) ostk.physics.time.Duration ¶
Get the tolerance.
- Returns:
The tolerance.
- Return type:
Duration
- is_defined(self: ostk.astrodynamics.access.Generator) bool ¶
Check if the generator is defined.
- Returns:
True if the generator is defined, False otherwise.
- Return type:
- set_access_filter(
- self: ostk.astrodynamics.access.Generator,
- access_filter: Callable[[ostk.astrodynamics.Access], bool],
Set the access filter.
- Parameters:
access_filter (function) -- The access filter.
- set_state_filter(
- self: ostk.astrodynamics.access.Generator,
- state_filter: Callable[[ostk.astrodynamics.trajectory.State, ostk.astrodynamics.trajectory.State], bool],
Set the state filter.
- Parameters:
state_filter (function) -- The state filter.
- set_tolerance(
- self: ostk.astrodynamics.access.Generator,
- tolerance: ostk.physics.time.Duration,
Set the tolerance.
- Parameters:
tolerance (Duration) -- The tolerance.
- static undefined() ostk.astrodynamics.access.Generator ¶
Get an undefined generator.
- Returns:
An undefined generator.
- Return type: