EMMutableSoftDcvOathSettings

Objective-C

@protocol EMMutableSoftDcvOathSettings <EMSoftDcvOathSettings>

Swift

protocol EMMutableSoftDcvOathSettings : EMSoftDcvOathSettings

Protocol for changeable DCV settings.

Since

4.1
  • The DCV length. Allowed range is 3-4 digits.

    @exception NSInvalidArgumentException When dcvLength is not in allowed range.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger dcvLength;

    Swift

    var dcvLength: Int { get set }
  • The hash algorithm for DCV. See EMOathHashAlgorithm.

    @exception NSInvalidArgumentException When hash algorithm is not supported.

    Declaration

    Objective-C

    @property (nonatomic) EMOathHashAlgorithm dcvHashAlgorithm;

    Swift

    var dcvHashAlgorithm: EMOathHashAlgorithm { get set }
  • The T0 value for DCV. Value to start counting the time steps. Default: 0

    @exception NSInvalidArgumentException When dcvStartTime is negative.

    Declaration

    Objective-C

    @property (nonatomic) int64_t dcvStartTime;

    Swift

    var dcvStartTime: Int64 { get set }
  • The time step size for DCV. Default: 20

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger dcvTimestepSize;

    Swift

    var dcvTimestepSize: Int { get }
  • The time step type for DCV. Default: Minutes.

    Declaration

    Objective-C

    @property (nonatomic, readonly) EMOathTimestepType dcvTimestepType;

    Swift

    var dcvTimestepType: EMOathTimestepType { get }
  • Sets the DCV time settings.

    @exception NSInvalidArgumentException If one of the following conditions is true:

    • timestepType is not equal to EMOathTimestepTypeNone and timestepSize is less than or equal to zero.
    • timestepType is not equal to EMOathTimestepTypeNone and startTime is less than zero.
    • timestepType is equal to EMOathTimestepTypeSeconds and timestepSize is greater than 59.
    • timestepType is equal to EMOathTimestepTypeMinutes and timestepSize is greater than 59.
    • timestepType is equal to EMOathTimestepTypeHours and timestepSize is greater than 48.

    Declaration

    Objective-C

    - (void)setDcvTimeSettingsWithTimestepSize:(NSInteger)timestepSize
                                  timestepType:(EMOathTimestepType)timestepType;

    Swift

    func setDcvTimeWithTimestepSize(_ timestepSize: Int, timestepType: EMOathTimestepType)

    Parameters

    timestepType

    The time step type, set to EMOathTimestepTypeNone to not use it.

    timestepSize

    The time step size, it is ignored if timestepType is EMOathTimestepTypeNone.