Package 

Class EHServiceOption.Builder

    • 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.
      • setLogStorePath

         final EHServiceOption.Builder setLogStorePath(String path)

        Set ADAS log path, the directory must exist

        Parameters:
        path - If client doesn't set log path, the default path from config file will be used.
      • 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.
      • 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.
      • setNavigationSyncAddress

         final EHServiceOption.Builder setNavigationSyncAddress(String address)

        Configures the broker server address for navigation content synchronization.

        Parameters:
        address - The server address in the format "tcp://<IPv4>:<port>", e.g., "tcp://127.0.0.1:1234".