-
- All Implemented Interfaces:
public final class EHServiceOption.BuilderType used by the SDK for builder.
See the parent package overview and related service entry points for usage and threading.
-
-
Constructor Summary
Constructors Constructor Description EHServiceOption.Builder()
-
Method Summary
Modifier and Type Method Description final EHServiceOption.BuildersetServiceMode(EHServiceMode serviceMode)Sets service mode on this builder. final EHServiceOption.BuilderenableSelfPropellingUponWeakGPS(Boolean enabled)Enable/Disable the self propelling upon weak gps. final EHServiceOption.BuilderenableLog(Boolean enabled)Enables log for this builder. final EHServiceOption.BuildersetLogStorePath(String path)Sets log store path on this builder. final EHServiceOption.BuildersetLogLevel(EHLogLevel level)Sets log level on this builder. final EHServiceOption.BuilderenableLogCompressed(Boolean enabled)Enables log compressed for this builder. final EHServiceOption.BuildersetMainPathLength(Integer length)Set the EH service's horizon depth (main path length). final EHServiceOption.BuildersetTrailingLength(Integer length)Set the EH service's horizon trailing length. final EHServiceOption.BuildersetSubPathLevel(Integer level)Sets sub path level on this builder. final EHServiceOption.BuildersetSubPathLength(Integer length)Set the EH service's sub-path length. final EHServiceOption.BuildersetCandidatePathLength(Integer length)Set the EH service's candidate-path length. final EHServiceOption.BuilderenableTraffic(Boolean enabled)Enable/Disable EH traffic data. final EHServiceOption.BuildersetPositionMessagePeriod(Integer milliseconds)Set the EH service's position message dispatch period. final EHServiceOption.BuilderenableAnalyticsCollection(Boolean enabled)Enables analytics collection for this builder. final EHServiceOption.BuildersetIntersectionDetectDistance(Integer distance)Sets the distance for intersection detection in the EH service. final EHServiceOption.BuildersetNavigationSyncAddress(String address)Sets navigation sync address on this builder. final EHServiceOption.BuilderenableAddonLaunchAutoMode(Boolean enabled)Enables addon launch auto mode for this builder. final EHServiceOption.BuilderenablePathAvoidRestriction(Boolean enabled)Enables path avoid restriction for this builder. final EHServiceOption.BuilderenablePathBeyondRestriction(Boolean enabled)Enables path beyond restriction for this builder. final EHServiceOptionbuild()Builds and returns the configured instance. -
-
Method Detail
-
setServiceMode
final EHServiceOption.Builder setServiceMode(EHServiceMode serviceMode)
Sets service mode on this builder.
- Parameters:
serviceMode- service mode
-
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
-
setLogStorePath
final EHServiceOption.Builder setLogStorePath(String path)
Sets log store path on this builder.
- Parameters:
path- path
-
setLogLevel
final EHServiceOption.Builder setLogLevel(EHLogLevel level)
Sets log level on this builder.
- Parameters:
level- level
-
enableLogCompressed
final EHServiceOption.Builder enableLogCompressed(Boolean enabled)
Enables log compressed 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.
-
setSubPathLevel
final EHServiceOption.Builder setSubPathLevel(Integer level)
Sets sub path level on this builder.
- Parameters:
level- level
-
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
-
enableAnalyticsCollection
final EHServiceOption.Builder enableAnalyticsCollection(Boolean enabled)
Enables analytics collection for this builder.
- Parameters:
enabled- true to enable the feature, false to disable
-
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)
Sets navigation sync address on this builder.
- Parameters:
address- address
-
enableAddonLaunchAutoMode
final EHServiceOption.Builder enableAddonLaunchAutoMode(Boolean enabled)
Enables addon launch auto mode for this builder.
- Parameters:
enabled- true to enable the feature, false to disable
-
enablePathAvoidRestriction
final EHServiceOption.Builder enablePathAvoidRestriction(Boolean enabled)
Enables path avoid restriction for this builder.
- Parameters:
enabled- true to enable the feature, false to disable
-
enablePathBeyondRestriction
final EHServiceOption.Builder enablePathBeyondRestriction(Boolean enabled)
Enables path beyond restriction for this builder.
- Parameters:
enabled- true to enable the feature, false to disable
-
build
final EHServiceOption build()
Builds and returns the configured instance. Validates required fields; throws if validation fails.
-
-
-
-