![]() |
Alexa Auto SDK
4.2
|
Public Member Functions | |
virtual CarControlConfiguration & | createEndpoint (const std::string &endpointId)=0 |
virtual CarControlConfiguration & | addAssetId (const std::string &assetId)=0 |
virtual CarControlConfiguration & | addPowerController (bool retrievable)=0 |
virtual CarControlConfiguration & | addToggleController (const std::string &instanceId, bool retrievable)=0 |
virtual CarControlConfiguration & | addActionTurnOn (const std::vector< std::string > &actions)=0 |
virtual CarControlConfiguration & | addActionTurnOff (const std::vector< std::string > &actions)=0 |
virtual CarControlConfiguration & | addRangeController (const std::string &instanceId, bool retrievable, double minimum, double maximum, double precision, const std::string &unit="")=0 |
virtual CarControlConfiguration & | addPreset (double value)=0 |
virtual CarControlConfiguration & | addActionSetRange (const std::vector< std::string > &actions, double value)=0 |
virtual CarControlConfiguration & | addActionAdjustRange (const std::vector< std::string > &actions, double delta)=0 |
virtual CarControlConfiguration & | addModeController (const std::string &instanceId, bool retrievable, bool ordered)=0 |
virtual CarControlConfiguration & | addValue (const std::string &value)=0 |
virtual CarControlConfiguration & | addActionSetMode (const std::vector< std::string > &actions, const std::string &value)=0 |
virtual CarControlConfiguration & | addActionAdjustMode (const std::vector< std::string > &actions, int delta)=0 |
virtual CarControlConfiguration & | createZone (const std::string &zoneId)=0 |
virtual CarControlConfiguration & | addMembers (const std::vector< std::string > &endpointIds)=0 |
virtual CarControlConfiguration & | setDefaultZone (const std::string &zoneId)=0 |
virtual CarControlConfiguration & | addDefaultAssetsPath (const std::string &path)=0 |
virtual CarControlConfiguration & | addCustomAssetsPath (const std::string &path)=0 |
![]() | |
virtual std::shared_ptr< std::istream > | getStream ()=0 |
Static Public Member Functions | |
static std::shared_ptr< CarControlConfiguration > | create () |
The CarControlConfiguration
class programmatically generates the "aace.carControl" aace::core::config::EngineConfiguration
. "aace.carControl" configuration specifies additional endpoints that are connected and controllable through the root endpoint that maintains the connection to the Alexa service. Each connected endpoint represents a controllable component of the vehicle and should be configured with any of the supported capabilities (i.e. PowerController and primitives ModeController, ToggleController, RangeController ) to model how the endpoint can be controlled with voice.
Using the methods on an instance of this class produces configuration data in the format of the following example:
note
This class acts as a configuration builder, so the method calls must be ordered to produce the intended configuration.
|
static |
Create a CarControlConfiguration
instance.
|
pure virtual |
Begin an endpoint definition using the specified endpoint ID. This creates a single entry in the "endpoints" array of 'aace.carControl'.
[in] | endpointId | The unique identifier for the endpoint. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add an asset ID to the enclosing element. This can be called to add an asset ID to the friendly names list for the following elements:
CarControlAssets.h
for a full list of the asset IDs supported by default.[in] | assetId | The identifier of the asset. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add a PowerController capability to the enclosing endpoint. Only one instance is allowed per endpoint.
[in] | retrievable | Whether the state of this instance may be retrieved by the Alexa service. Only false is supported. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add a ToggleController capability to the enclosing endpoint. Multiple instances are allowed per endpoint. Call addAsset()
to add friendly names to the 'capabilityResources' of this instance.
[in] | instanceId | The identifier of this ToggleController instance. Must be unique with respect to the enclosing endpoint. |
[in] | retrievable | Whether the state of this instance may be retrieved by the Alexa service. Only false is supported. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Maps the specified action IDs to the TurnOn directive for the enclosing ToggleController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::turnToggleControllerOn()
is invoked when the user says the additional utterances enabled by the specified action ID(s).
aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the TurnOn directive. |
|
pure virtual |
Maps the specified action IDs to the TurnOff directive for the enclosing ToggleController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::turnToggleControllerOff()
is invoked when the user says the additional utterances enabled by the specified action ID(s).
aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the TurnOff directive. |
|
pure virtual |
Add a RangeController capability to the enclosing endpoint. Multiple instances are allowed per endpoint. Call addAsset()
to add friendly names to the 'capabilityResources' of this instance.
[in] | instanceId | The identifier of this RangeController instance. Must be unique with respect to the enclosing endpoint. |
[in] | retrievable | Whether the state of this instance may be retrieved by the Alexa service. Only false is supported. |
[in] | minimum | The minimum value of the range supported by this instance. |
[in] | minimum | The maximum value of the range supported by this instance. |
[in] | precision | The amount by which the set value changes when iterating through the range. |
[in] | unit | The unit of the measure. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add a 'preset' to the enclosing RangeController instance. A preset describes a value that can be invoked by name. Call addAsset()
to add friendly names to 'presetResources' of this preset.
[in] | value | The value within the range that has an associated named preset. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Maps the specified action IDs to the SetRangeValue directive for the enclosing RangeController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::setRangeControllerValue()
is invoked when the user says the additional utterances enabled by the specified action ID(s).
aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the SetRangeValue directive. |
[in] | value | The value argument of setRangeControllerValue() . The value must be within the configured range of this RangeController instance. |
|
pure virtual |
Maps the specified action IDs to AdjustRangeValue directive for the enclosing RangeController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::adjustRangeControllerValue()
will be invoked when the user says the additional utterances enabled by the specified action ID(s).
aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the AdjustRangeValue directive. |
[in] | delta | The delta argument of adjustRangeControllerValue() . The absolute value must be <= (max - min) configured for this RangeController instance. |
|
pure virtual |
Add a ModeController capability to the enclosing endpoint. Multiple instances are allowed per endpoint. Call addAsset()
to add friendly names to the 'capabilityResources' of this instance.
[in] | instanceId | The identifier of this ModeController instance. Must be unique with respect to the enclosing endpoint. |
[in] | retrievable | Whether the state of this instance may be retrieved by the Alexa service. Only false is supported. |
[in] | Whether | the modes are ordered, enabling iteration through them using the AdjustMode directive. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add a supported mode 'value' to the enclosing ModeController instance. If ordered is true, the order in which modes are created with calls to this method determines the ordering for iteration by voice. Call addAsset()
to add friendly names to 'modeResources' of this mode.
[in] | value | The identifier of the mode. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Maps the specified action IDs to the SetMode directive for the enclosing ModeController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::setModeControllerValue()
is invoked when the user says the additional utterances enabled by the specified action ID(s).
aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the SetMode directive. |
[in] | value | The value argument of setModeControllerValue() specifying the mode to set. The value must be one configured for this ModeController instance. |
|
pure virtual |
Maps the specified action IDs to the AdjustMode directive for the enclosing ModeController. This adds a 'semantics.actionMappings' entry to its definition. aace::carControl::CarControl::adjustModeControllerValue()
is invoked when the user says the additional utterances enabled by the specified action ID(s).
true
for this ModeController instance.aace::carControl::config::action
namespace are supported.[in] | actions | The action IDs to map to the AdjustMode directive. |
[in] | delta | The delta argument of adjustModeControllerValue() specifying the number of modes to advance from the current mode setting. |
|
pure virtual |
Begin a zone definition using the specified zone ID. This creates a single entry in the "zones" array of 'aace.carControl'. Call addMembers()
to add endpoint IDs as members of this zone.
[in] | zoneId | The unique identifier for the zone. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Add the specified endpoint IDs to the definition of the enclosing zone.
[in] | endpointIds | The IDs of the endpoints belonging to this zone. Endpoint IDs used must correspond to endpoints created with createEndpoint() . |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Set the default zone to the specified zone ID. This allows the endpoints in the specified default zone to take precedence over endpoints not in the default zone when the user does not specify any zone in the utterance.
[in] | zoneId | The ID of the default zone. |
CarControlConfiguration
to allow chaining.
|
pure virtual |
Specify the path to a file that defines the default assets. This creates an "assets.defaultAssetsPath" entry in 'aace.carControl'.
CarControlAssets.h
. This method can override the internal asset definitions in online-only use cases (without the LVC extension).[in] | path | The path to the file defining the default assets. |
|
pure virtual |
Specify the path to a file that defines additional assets. This creates an "assets.customAssetsPath" entry in 'aace.carControl'. Specify a path to additional assets if you have endpoints that cannot be modeled using the default asset IDs present in CarControlAssets.h
.
[in] | path | The path to the file defining additional assets. |
Alexa Auto SDK 4.2 - Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0