Class FunctionalDetector

All Implemented Interfaces:
EventDetector

public class FunctionalDetector extends AbstractDetector<FunctionalDetector>
A detector that implements the g(SpacecraftState) function using a lambda that can be set using withFunction(ToDoubleFunction).

For example, to create a simple date detector use:

 FunctionalDetector d = new FunctionalDetector()
     .withGFunction((s) -> s.getDate().durationFrom(triggerDate))
     .withMaxCheck(1e10);
 
Since:
9.2
Author:
Evan Ward