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

    Public Functions

    AttributeParameterValue()
    AttributeParameterValue(const Esri::ArcGISRuntime::AttributeParameterValue &other)
    AttributeParameterValue(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)
    Esri::ArcGISRuntime::AttributeParameterValue &operator=(const Esri::ArcGISRuntime::AttributeParameterValue &other)
    Esri::ArcGISRuntime::AttributeParameterValue &operator=(Esri::ArcGISRuntime::AttributeParameterValue &&other)

    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()

    Default constructor.

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

    Copy constructor from other AttributeParameterValue.

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

    Move constructor 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().

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

    Assignment operator from other AttributeParameterValue.

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

    Move operator from other AttributeParameterValue.

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