Package org.orekit.propagation.events
Interface EnablingPredicate
-
public interface EnablingPredicate
This interface represents an event enabling predicate function.- Since:
- 7.1
- Author:
- Luc Maisonobe
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EnablingPredicate
andCombine(EnablingPredicate... enablingPredicates)
Method combining predicated based on the AND logic operator.boolean
eventIsEnabled(SpacecraftState state, EventDetector detector, double g)
Compute an event enabling function of state.static EnablingPredicate
orCombine(EnablingPredicate... enablingPredicates)
Method combining predicated based on the OR logic operator.
-
-
-
Method Detail
-
eventIsEnabled
boolean eventIsEnabled(SpacecraftState state, EventDetector detector, double g)
Compute an event enabling function of state.- Parameters:
state
- current statedetector
- underlying detectorg
- value of the underlying detector for the current state- Returns:
- true if the event is enabled (i.e. it can be triggered), false if it should be ignored
-
orCombine
static EnablingPredicate orCombine(EnablingPredicate... enablingPredicates)
Method combining predicated based on the OR logic operator.- Parameters:
enablingPredicates
- predicates- Returns:
- combined predicate
- Since:
- 13.1
-
andCombine
static EnablingPredicate andCombine(EnablingPredicate... enablingPredicates)
Method combining predicated based on the AND logic operator.- Parameters:
enablingPredicates
- predicates- Returns:
- combined predicate
- Since:
- 13.1
-
-