Class ENExposureConfiguration

  • All Implemented Interfaces:
    NSObject

    public class ENExposureConfiguration
    extends NSObject
    =========================================================================================================================== Configuration parameters for exposure detection. Configuration parameters are used to calculate an exposure duration for each exposure using the following formula. exposureDuration = ( ( immediateDuration * immediateDurationWeight ) + ( nearDuration * nearDurationWeight ) + ( mediumDuration * mediumDurationWeight ) + ( otherDuration * otherDurationWeight ) ) * infectiousnessWeight ) * reportTypeWeight ) API-Since: 12.5
    • Constructor Detail

      • ENExposureConfiguration

        protected ENExposureConfiguration​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • attenuationDurationThresholds

        @NotNull
        public @NotNull NSArray<? extends NSNumber> attenuationDurationThresholds()
        Thresholds for calculating attenuationDurations. Defaults to [50, 70, 90]. Index |0 |1 |2 Variable |X |Y |Z
      • attenuationLevelValues

        @NotNull
        public @NotNull NSArray<? extends NSNumber> attenuationLevelValues()
        --------------------------------------------------------------------------------------------------------------------------- Soon to be deprecated parameters. Use the parameters above instead.
      • attenuationWeight

        public double attenuationWeight()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • daysSinceLastExposureLevelValues

        @NotNull
        public @NotNull NSArray<? extends NSNumber> daysSinceLastExposureLevelValues()
      • daysSinceLastExposureThreshold

        public long daysSinceLastExposureThreshold()
        Exclude exposures with daysSinceLastExposure > this value. Defaults to 0 (don't filter). API-Since: 12.5
      • daysSinceLastExposureWeight

        public double daysSinceLastExposureWeight()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • durationLevelValues

        @NotNull
        public @NotNull NSArray<? extends NSNumber> durationLevelValues()
      • durationWeight

        public double durationWeight()
      • hash_static

        public static long hash_static()
      • immediateDurationWeight

        public double immediateDurationWeight()
        Weights to apply to durations at each proximity level based on attenuation. Range is 0-250%. API-Since: 12.5
      • infectiousnessForDaysSinceOnsetOfSymptoms

        @Nullable
        public @Nullable NSDictionary<? extends NSNumber,​? extends NSNumber> infectiousnessForDaysSinceOnsetOfSymptoms()
        Maps daysSinceOnsetOfSymptoms to infectiousness. Must be configured if using V2 scoring. Key is a daysSinceOnsetOfSymptoms: -14 to 14. Value is an ENInfectiousness. Defaults to ENInfectiousnessNone for days not specified. If a value is set to ENInfectiousnessNone, diagnosis keys for it should be ignored. API-Since: 12.5
      • infectiousnessHighWeight

        public double infectiousnessHighWeight()
        API-Since: 12.5
      • infectiousnessStandardWeight

        public double infectiousnessStandardWeight()
        Weights to apply for infectiousness. Range is 0-250%. API-Since: 12.5
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • mediumDurationWeight

        public double mediumDurationWeight()
        API-Since: 12.5
      • metadata

        @Nullable
        public @Nullable NSDictionary<?,​?> metadata()
      • minimumRiskScore

        public byte minimumRiskScore()
      • minimumRiskScoreFullRange

        public double minimumRiskScoreFullRange()
        Minimum risk score. Excludes exposure incidents with scores lower than this. Full range and not capped to ENRiskScore.
      • nearDurationWeight

        public double nearDurationWeight()
        API-Since: 12.5
      • otherDurationWeight

        public double otherDurationWeight()
        API-Since: 12.5
      • reportTypeConfirmedClinicalDiagnosisWeight

        public double reportTypeConfirmedClinicalDiagnosisWeight()
        API-Since: 12.5
      • reportTypeConfirmedTestWeight

        public double reportTypeConfirmedTestWeight()
        Weights to apply for each report type. Range is 0-250%. API-Since: 12.5
      • reportTypeNoneMap

        public int reportTypeNoneMap()
        Maps scenarios when Report Type is not present into one of the available report types. If this is set to ENDiagnosisReportTypeUnknown, the key will be ignored if it does not contain a report type. API-Since: 12.5
      • reportTypeRecursiveWeight

        public double reportTypeRecursiveWeight()
        API-Since: 12.5
      • reportTypeSelfReportedWeight

        public double reportTypeSelfReportedWeight()
        API-Since: 12.5
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAttenuationDurationThresholds

        public void setAttenuationDurationThresholds​(@NotNull
                                                     @NotNull NSArray<? extends NSNumber> value)
        Thresholds for calculating attenuationDurations. Defaults to [50, 70, 90]. Index |0 |1 |2 Variable |X |Y |Z
      • setAttenuationLevelValues

        public void setAttenuationLevelValues​(@NotNull
                                              @NotNull NSArray<? extends NSNumber> value)
        --------------------------------------------------------------------------------------------------------------------------- Soon to be deprecated parameters. Use the parameters above instead.
      • setAttenuationWeight

        public void setAttenuationWeight​(double value)
      • setDaysSinceLastExposureLevelValues

        public void setDaysSinceLastExposureLevelValues​(@NotNull
                                                        @NotNull NSArray<? extends NSNumber> value)
      • setDaysSinceLastExposureThreshold

        public void setDaysSinceLastExposureThreshold​(long value)
        Exclude exposures with daysSinceLastExposure > this value. Defaults to 0 (don't filter). API-Since: 12.5
      • setDaysSinceLastExposureWeight

        public void setDaysSinceLastExposureWeight​(double value)
      • setDurationLevelValues

        public void setDurationLevelValues​(@NotNull
                                           @NotNull NSArray<? extends NSNumber> value)
      • setDurationWeight

        public void setDurationWeight​(double value)
      • setImmediateDurationWeight

        public void setImmediateDurationWeight​(double value)
        Weights to apply to durations at each proximity level based on attenuation. Range is 0-250%. API-Since: 12.5
      • setInfectiousnessForDaysSinceOnsetOfSymptoms

        public void setInfectiousnessForDaysSinceOnsetOfSymptoms​(@Nullable
                                                                 @Nullable NSDictionary<? extends NSNumber,​? extends NSNumber> value)
        Maps daysSinceOnsetOfSymptoms to infectiousness. Must be configured if using V2 scoring. Key is a daysSinceOnsetOfSymptoms: -14 to 14. Value is an ENInfectiousness. Defaults to ENInfectiousnessNone for days not specified. If a value is set to ENInfectiousnessNone, diagnosis keys for it should be ignored. API-Since: 12.5
      • setInfectiousnessHighWeight

        public void setInfectiousnessHighWeight​(double value)
        API-Since: 12.5
      • setInfectiousnessStandardWeight

        public void setInfectiousnessStandardWeight​(double value)
        Weights to apply for infectiousness. Range is 0-250%. API-Since: 12.5
      • setMediumDurationWeight

        public void setMediumDurationWeight​(double value)
        API-Since: 12.5
      • setMetadata

        public void setMetadata​(@Nullable
                                @Nullable NSDictionary<?,​?> value)
      • setMinimumRiskScore

        public void setMinimumRiskScore​(byte value)
      • setMinimumRiskScoreFullRange

        public void setMinimumRiskScoreFullRange​(double value)
        Minimum risk score. Excludes exposure incidents with scores lower than this. Full range and not capped to ENRiskScore.
      • setNearDurationWeight

        public void setNearDurationWeight​(double value)
        API-Since: 12.5
      • setOtherDurationWeight

        public void setOtherDurationWeight​(double value)
        API-Since: 12.5
      • setReportTypeConfirmedClinicalDiagnosisWeight

        public void setReportTypeConfirmedClinicalDiagnosisWeight​(double value)
        API-Since: 12.5
      • setReportTypeConfirmedTestWeight

        public void setReportTypeConfirmedTestWeight​(double value)
        Weights to apply for each report type. Range is 0-250%. API-Since: 12.5
      • setReportTypeNoneMap

        public void setReportTypeNoneMap​(int value)
        Maps scenarios when Report Type is not present into one of the available report types. If this is set to ENDiagnosisReportTypeUnknown, the key will be ignored if it does not contain a report type. API-Since: 12.5
      • setReportTypeRecursiveWeight

        public void setReportTypeRecursiveWeight​(double value)
        API-Since: 12.5
      • setReportTypeSelfReportedWeight

        public void setReportTypeSelfReportedWeight​(double value)
        API-Since: 12.5
      • setTransmissionRiskLevelValues

        public void setTransmissionRiskLevelValues​(@NotNull
                                                   @NotNull NSArray<? extends NSNumber> value)
      • setTransmissionRiskWeight

        public void setTransmissionRiskWeight​(double value)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • transmissionRiskLevelValues

        @NotNull
        public @NotNull NSArray<? extends NSNumber> transmissionRiskLevelValues()
      • transmissionRiskWeight

        public double transmissionRiskWeight()
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.