-
- All Implemented Interfaces:
public final class EHServiceOption.Builder
-
-
Constructor Summary
Constructors Constructor Description EHServiceOption.Builder()
-
Method Summary
Modifier and Type Method Description final EHServiceOption.BuildersetServiceMode(EHServiceMode serviceMode)Set EH service working mode. final EHServiceOption.BuilderenableSelfPropellingUponWeakGPS(Boolean enabled)Enable/Disable the self propelling upon weak gps. final EHServiceOption.BuilderenableLog(Boolean enabled)Enable ADAS log final EHServiceOption.BuildersetLogStorePath(String path)Set ADAS log path, the directory must exist final EHServiceOption.BuildersetLogLevel(EHLogLevel level)Set EH service log level final EHServiceOption.BuilderenableLogCompressed(Boolean enabled)Enable/Disable the compressed EH service log 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)Set EH service's sub-path level. 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)Enable function of data collector final EHServiceOption.BuildersetIntersectionDetectDistance(Integer distance)Sets the distance for intersection detection in the EH service. final EHServiceOption.BuildersetNavigationSyncAddress(String address)Configures the broker server address for navigation content synchronization. final EHServiceOption.BuilderenableAddonLaunchAutoMode(Boolean enabled)Enable addon service auto launch mode; final EHServiceOption.BuilderenablePathAvoidRestriction(Boolean enabled)Enable function of path avoid restriction final EHServiceOption.BuilderenablePathBeyondRestriction(Boolean enabled)Enable function of path beyond restriction final EHServiceOptionbuild()Create EHServiceOption object -
-
Method Detail
-
setServiceMode
final EHServiceOption.Builder setServiceMode(EHServiceMode serviceMode)
Set EH service working mode.
- Parameters:
serviceMode- : see EHServiceMode, the default is STANDALONE
-
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)
Enable ADAS log
- Parameters:
enabled- true to enable and false to close,the default is 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.
-
setLogLevel
final EHServiceOption.Builder setLogLevel(EHLogLevel level)
Set EH service log level
- Parameters:
level- : the log level, default value is EHLogLevel.SIMPLIFIED.
-
enableLogCompressed
final EHServiceOption.Builder enableLogCompressed(Boolean enabled)
Enable/Disable the compressed EH service log
- Parameters:
enabled- : true to enable and false to close,the default is false.
-
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)
Set EH service's sub-path level.
- Parameters:
level- : the level of sub path.
-
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)
Enable function of data collector
- Parameters:
enabled- true to enable and false to close,the default is true.
-
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".
-
enableAddonLaunchAutoMode
final EHServiceOption.Builder enableAddonLaunchAutoMode(Boolean enabled)
Enable addon service auto launch mode;
- Parameters:
enabled- true to enable and false to disable,the default is true.
-
enablePathAvoidRestriction
final EHServiceOption.Builder enablePathAvoidRestriction(Boolean enabled)
Enable function of path avoid restriction
- Parameters:
enabled- true to enable and false to close,the default is true.
-
enablePathBeyondRestriction
final EHServiceOption.Builder enablePathBeyondRestriction(Boolean enabled)
Enable function of path beyond restriction
- Parameters:
enabled- true to enable and false to close,the default is false.
-
build
final EHServiceOption build()
Create EHServiceOption object
-
-
-
-