Package 

Class EHServiceOption.Builder

  • All Implemented Interfaces:

    
    public final class EHServiceOption.Builder
    
                        

    Type used by the SDK for builder.

    See the parent package overview and related service entry points for usage and threading.

    • Constructor Detail

      • EHServiceOption.Builder

        EHServiceOption.Builder()
    • Method Detail

      • enableSelfPropellingUponWeakGPS

         final EHServiceOption.Builder enableSelfPropellingUponWeakGPS(Boolean enabled)

        Enable/Disable the self propelling upon weak gps. If enabled, the self propelling will be triggered when losing GPS signal. GPS signal loss will be determined by either of the following two cases: <br/> 1. Satellite number is 0.<br/> 2. Vehicle Location is not updated to timeout(5s), either no location is fed or the feed location is unchanged.<br/> As a result, a corresponding cause type PeTriggerCause.SELF_PROPELLING will be provided from the location's extra bundle.

        Currently, it only takes effect in tunnel area. It's not recommended to enable it, if there is an external software DR. Location.speed becomes to a mandatory field if user want to use live vehicle speed to predict moving distance in tunnel.User should not update location or update location with negative speed value if user don't want to use live vehicle speed to predict moving distance.

        Parameters:
        enabled - set true to enable self propelling upon weak gps and otherwise set to false.
      • enableLog

         final EHServiceOption.Builder enableLog(Boolean enabled)

        Enables log for this builder.

        Parameters:
        enabled - true to enable the feature, false to disable
      • setMainPathLength

         final EHServiceOption.Builder setMainPathLength(Integer length)

        Set the EH service's horizon depth (main path length). Defines the maximum length of main path ahead the vehicle.

        Parameters:
        length - : the length of main path.
      • setTrailingLength

         final EHServiceOption.Builder setTrailingLength(Integer length)

        Set the EH service's horizon trailing length. Defines the minimum distance back from vehicle before the road can be deleted from path.

        Parameters:
        length - : the length of horizon trailing.
      • setSubPathLength

         final EHServiceOption.Builder setSubPathLength(Integer length)

        Set the EH service's sub-path length. Defines the maximum length of sub path.

        Parameters:
        length - : the length of sub path.
      • setCandidatePathLength

         final EHServiceOption.Builder setCandidatePathLength(Integer length)

        Set the EH service's candidate-path length. Defines the maximum length of candidate path ahead the vehicle.

        Parameters:
        length - : the length of candidate-path.
      • enableTraffic

         final EHServiceOption.Builder enableTraffic(Boolean enabled)

        Enable/Disable EH traffic data. If enabled, the EH service will provide traffic data in EH path.

        Parameters:
        enabled - : true to enable and false to close, the default is false.
      • setPositionMessagePeriod

         final EHServiceOption.Builder setPositionMessagePeriod(Integer milliseconds)

        Set the EH service's position message dispatch period. This setting works only in EH message service with standard ADASIS encoder

        Parameters:
        milliseconds - : the period time of position message in milliseconds; Default Value: 1000; Min: 100; Max: 1000
      • setIntersectionDetectDistance

         final EHServiceOption.Builder setIntersectionDetectDistance(Integer distance)

        Sets the distance for intersection detection in the EH service. Unit: meters. Default Value: 0; Min: 0; Max: the same as main path length. Note: Intersection detection is time consuming and should only be enabled if necessary.

        Parameters:
        distance - : the distance of intersection detect, in meters.
      • build

         final EHServiceOption build()

        Builds and returns the configured instance. Validates required fields; throws if validation fails.