Class TimeIntervalsManeuverTrigger

    • Method Detail

      • of

        public static TimeIntervalsManeuverTrigger of​(TimeInterval... timeIntervals)
        Build an instance based on the input time intervals. Detectors are created with default settings.
        Parameters:
        timeIntervals - intervals
        Returns:
        maneuver trigger
      • convertIntervalDetector

        protected <D extends FieldEventDetector<S>,​S extends CalculusFieldElement<S>> D convertIntervalDetector​(Field<S> field,
                                                                                                                      BooleanDetector detector)
        Description copied from class: IntervalEventTrigger
        Convert a primitive firing intervals detector into a field firing intervals detector.

        The FieldEventDetectionSettings must be set up in conformance with the non-field detector.

        A skeleton implementation of this method to convert some XyzDetector into FieldXyzDetector, considering these detectors are created from a date and a number parameter is:

        
             protected <D extends FieldEventDetector<S>, S extends CalculusFieldElement<S>>
                 D convertIntervalDetector(final Field<S> field, final XyzDetector detector) {
        
                 final FieldAbsoluteDate<S> date  = new FieldAbsoluteDate<>(field, detector.getDate());
                 final S                    param = field.getZero().newInstance(detector.getParam());
        
                 D converted = (D) new FieldXyzDetector<>(date, param).withDetectionSettings(field, detector.getDetectionSettings());
                 return converted;
        
             }
         
         
        Specified by:
        convertIntervalDetector in class IntervalEventTrigger<BooleanDetector>
        Type Parameters:
        D - type of the event detector
        S - type of the field elements
        Parameters:
        field - field to which the state belongs
        detector - primitive firing intervals detector to convert
        Returns:
        converted firing intervals detector