ostk.astrodynamics.event_condition.LogicalCondition¶
- class LogicalCondition(
- self: ostk.astrodynamics.event_condition.LogicalCondition,
- name: ostk.core.type.String,
- type: ostk.astrodynamics.event_condition.LogicalCondition.Type,
- event_conditions: list[ostk.astrodynamics.EventCondition],
- name: ostk.core.type.String,
Bases:
EventCondition
A Logical Event Condition. This class is used to combine multiple event conditions into a single set.
Constructor.
- Parameters:
name (str) -- The name of the condition.
type (Type) -- The type of the logical condition.
event_conditions (list[EventCondition]) -- The list of event conditions.
Methods
Get the evaluator of the event condition.
Get the list of event conditions.
Get the name of the event condition.
Get the target of the event condition.
Get the type of the logical condition.
Check if the event condition is satisfied.
Update the target value if the event condition is relative.
- class Target(*args, **kwargs)¶
Bases:
pybind11_object
The Event Condition Target.
Overloaded function.
__init__(self: ostk.astrodynamics.EventCondition.Target, value: ostk.core.type.Real, type: ostk.astrodynamics.EventCondition.Target.Type = <Type.Absolute: 0>) -> None
Construct a new EventConditionTarget object.
- Args:
value (float): The value of the target. type (EventConditionTarget.Type): The type of the target. Defaults to EventConditionTarget.Type.Absolute.
- Returns:
event_condition_target (EventConditionTarget): The new EventConditionTarget object.
__init__(self: ostk.astrodynamics.EventCondition.Target, value: ostk.physics.unit.Length, type: ostk.astrodynamics.EventCondition.Target.Type = <Type.Absolute: 0>) -> None
Construct a new EventConditionTarget object.
- Args:
length (Length): The value of the target as a Length. type (EventConditionTarget.Type): The type of the target. Defaults to EventConditionTarget.Type.Absolute.
- Returns:
event_condition_target (EventConditionTarget): The new EventConditionTarget object.
__init__(self: ostk.astrodynamics.EventCondition.Target, value: ostk.physics.unit.Angle, type: ostk.astrodynamics.EventCondition.Target.Type = <Type.Absolute: 0>) -> None
Construct a new EventConditionTarget object.
- Args:
angle (Angle): The value of the target as an Angle. type (EventConditionTarget.Type): The type of the target. Defaults to EventConditionTarget.Type.Absolute.
- Returns:
event_condition_target (EventConditionTarget): The new EventConditionTarget object.
- static StringFromType( ) ostk.core.type.String ¶
Enum as a string
- Parameters:
type (EventConditionTarget.Type) -- The type of the target.
- Returns:
Name of the enum as a string.
- Return type:
string (str)
- class Type(
- self: ostk.astrodynamics.EventCondition.Target.Type,
- value: int,
Bases:
pybind11_object
Event Condition Target type.
Members:
Absolute : Absolute
Relative : Relative to the provided State.
- property name¶
- class Type(
- self: ostk.astrodynamics.event_condition.LogicalCondition.Type,
- value: int,
Bases:
pybind11_object
- Logical Condition Type.
Disjunctive (Or)
Conjucntive (And)
Members:
And : And
Or : Or
- property name¶
- get_evaluator( ) Callable[[ostk.astrodynamics.trajectory.State], ostk.core.type.Real] ¶
Get the evaluator of the event condition.
- Returns:
The evaluator of the event condition.
- Return type:
evaluator (str)
- get_event_conditions( ) list[ostk.astrodynamics.EventCondition] ¶
Get the list of event conditions.
- Returns:
The list of event conditions.
- Return type:
- get_name( ) ostk.core.type.String ¶
Get the name of the event condition.
- Returns:
The name of the event condition.
- Return type:
name (str)
- get_target( ) ostk.astrodynamics.EventCondition.Target ¶
Get the target of the event condition.
- Returns:
The target of the event condition.
- Return type:
target (EventConditionTarget)
- get_type( ) ostk.astrodynamics.event_condition.LogicalCondition.Type ¶
Get the type of the logical condition.
- Returns:
The type of the logical condition.
- Return type:
- is_satisfied(
- self: ostk.astrodynamics.EventCondition,
- current_state: ostk.astrodynamics.trajectory.State,
- previous_state: ostk.astrodynamics.trajectory.State,
- current_state: ostk.astrodynamics.trajectory.State,
Check if the event condition is satisfied.