AttributeParameterValue Class

  • AttributeParameterValue
  • class Esri::ArcGISRuntime::AttributeParameterValue

    A placeholder for attribute values that can change for a particular network analysis. More...

    Header: #include <AttributeParameterValue.h>
    Since: Esri::ArcGISRuntime 100.0

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    AttributeParameterValue(Esri::ArcGISRuntime::AttributeParameterValue &&other)
    AttributeParameterValue(const Esri::ArcGISRuntime::AttributeParameterValue &other)
    AttributeParameterValue()
    Esri::ArcGISRuntime::AttributeParameterValue &operator=(Esri::ArcGISRuntime::AttributeParameterValue &&other)
    Esri::ArcGISRuntime::AttributeParameterValue &operator=(const Esri::ArcGISRuntime::AttributeParameterValue &other)
    ~AttributeParameterValue()
    QString attributeName() const
    QString parameterName() const
    QVariant parameterValue() const
    void setAttributeName(const QString &attributeName)
    void setParameterName(const QString &parameterName)
    void setParameterValue(const QVariant &parameterValue)

    Detailed Description

    Network attribute values sometimes depend on variable conditions. For example, a vehicle's height can determine if a road segment with a low overpass is traversable or not. Present weather conditions may scale down travel speeds and thus affect network time costs. These variables can be overridden with AttributeParameterValues when used in conjunction with a TravelMode for solving network analysis tasks.

    See the Network Analyst documentation for further conceptual details.

    Member Function Documentation

    AttributeParameterValue::AttributeParameterValue(Esri::ArcGISRuntime::AttributeParameterValue &&other)

    Move constructor from other AttributeParameterValue.

    AttributeParameterValue::AttributeParameterValue(const Esri::ArcGISRuntime::AttributeParameterValue &other)

    Copy constructor from other AttributeParameterValue.

    AttributeParameterValue::AttributeParameterValue()

    Default constructor.

    Esri::ArcGISRuntime::AttributeParameterValue &AttributeParameterValue::operator=(Esri::ArcGISRuntime::AttributeParameterValue &&other)

    Move operator from other AttributeParameterValue.

    Esri::ArcGISRuntime::AttributeParameterValue &AttributeParameterValue::operator=(const Esri::ArcGISRuntime::AttributeParameterValue &other)

    Assignment operator from other AttributeParameterValue.

    AttributeParameterValue::~AttributeParameterValue()

    Destructor.

    QString AttributeParameterValue::attributeName() const

    Returns the name of the attribute that you would like to add a parameter for.

    See also setAttributeName().

    QString AttributeParameterValue::parameterName() const

    Returns the name of the parameter.

    See also setParameterName().

    QVariant AttributeParameterValue::parameterValue() const

    Returns the value of the parameter.

    See also setParameterValue().

    void AttributeParameterValue::setAttributeName(const QString &attributeName)

    Sets the name of the attribute that you would like to add a parameter for to attributeName.

    For example, HeightRestriction.

    See also attributeName().

    void AttributeParameterValue::setParameterName(const QString &parameterName)

    Sets the parameter name to parameterName.

    For example, Vehicle Height.

    See also parameterName().

    void AttributeParameterValue::setParameterValue(const QVariant &parameterValue)

    Sets the parameter value to parameterValue.

    For example, in the case where the parameterName is Vehicle Height, the parameterValue could be 0, meaning the vehicle can fit under any clearance.

    See also parameterValue().

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close