Enumerations¶
Enumerations used by the event detection system.
EventDirection ¶
Event detection direction.
Specifies which type of zero-crossing to detect: increasing (negative to positive), decreasing (positive to negative), or any crossing.
Example
Initialize instance.
ANY class-attribute ¶
ANY: Any = EventDirection.Any
Event detection direction.
Specifies which type of zero-crossing to detect: increasing (negative to positive), decreasing (positive to negative), or any crossing.
DECREASING class-attribute ¶
DECREASING: Any = EventDirection.Decreasing
Event detection direction.
Specifies which type of zero-crossing to detect: increasing (negative to positive), decreasing (positive to negative), or any crossing.
EventAction ¶
Action to take when an event is detected.
Determines whether propagation should stop or continue after an event is detected. Can be set as the default action via .set_terminal() or returned from a callback to override the default.
Example
Initialize instance.
CONTINUE class-attribute ¶
CONTINUE: Any = EventAction.Continue
Action to take when an event is detected.
Determines whether propagation should stop or continue after an event is detected. Can be set as the default action via .set_terminal() or returned from a callback to override the default.
Example
EventType ¶
Type of event: instantaneous or period.
Instantaneous events occur at a single point in time (e.g., apoapsis crossing). Period events maintain a condition over an interval (e.g., time within eclipse).
Example
Initialize instance.
INSTANTANEOUS class-attribute ¶
INSTANTANEOUS: Any = EventType.Instantaneous
Type of event: instantaneous or period.
Instantaneous events occur at a single point in time (e.g., apoapsis crossing). Period events maintain a condition over an interval (e.g., time within eclipse).
EdgeType ¶
Edge type for binary event detection.
Specifies which boolean transition to detect: rising edge (false → true), falling edge (true → false), or any edge.
Example
Initialize instance.
ANY_EDGE class-attribute ¶
ANY_EDGE: Any = EdgeType.AnyEdge
Edge type for binary event detection.
Specifies which boolean transition to detect: rising edge (false → true), falling edge (true → false), or any edge.
FALLING_EDGE class-attribute ¶
FALLING_EDGE: Any = EdgeType.FallingEdge
Edge type for binary event detection.
Specifies which boolean transition to detect: rising edge (false → true), falling edge (true → false), or any edge.
See Also¶
- Event Detectors - Core event detector classes
- Pre-made Events - Convenience event detectors
- Event Results - DetectedEvent and EventQuery