INetworkFunctionEvaluator Interface

Provides access to members that specify the properties of a function evaluator.

Description

Members

Name Description
Read/write property FirstArgument The attribute name or constant value representing the first argument of the function.
Method GetOperators Get the list of supported binary operator names.
Read/write property Operator The operator used in the function.
Read/write property SecondArgument The parameter name or constant value representing the second argument of the function.

INetworkFunctionEvaluator.FirstArgument Property

The attribute name or constant value representing the first argument of the function.

Public Property FirstArgument As Object
public object FirstArgument {get; set;}

Remarks

The FirstArgument must be the name of a INetworkAttribute or a constant value.

If the FirstArgument is a constant value, it should be of the same DataType for the network attribute to which this evaluator is assigned.

INetworkFunctionEvaluator.GetOperators Method

Get the list of supported binary operator names.

Public Function GetOperators ( _
    ByVal returnDataType As esriNetworkAttributeDataType _
) As IEnumBSTR
public IEnumBSTR GetOperators (
    esriNetworkAttributeDataType returnDataType
);

Remarks

GetOperators returned the list of valid operators that can be used in a NetworkFunctionEvaluator for a given network attribute DataType.

For numeric data types, the valid operators are:

  • * (multiplication)
  • / (division)

For the Boolean data type, the valid operators are

  • < (less than)
  • <= (less than or equal)
  • > (greater than)
  • >= (greater than or equal)
  • == (equal)
  • != (not equal)

INetworkFunctionEvaluator.Operator Property

The operator used in the function.

Public Property Operator As String
public string Operator {get; set;}

Remarks

The Operator must be set to one of the operators returned in GetOperators.

INetworkFunctionEvaluator.SecondArgument Property

The parameter name or constant value representing the second argument of the function.

Public Property SecondArgument As Object
public object SecondArgument {get; set;}

Remarks

The SecondArgument must be the name of a NetworkAttributeParameter or a constant value.

If the SecondArgument is a constant value, it should be of the same DataType for the network attribute to which this evaluator is assigned.

Classes that implement INetworkFunctionEvaluator

Classes Description
NetworkFunctionEvaluator A container for describing a network evaluator function.

Remarks

The INetworkFunctionEvaluator interface is used to access the arguments and operator assigned by thisNetworkFunctionEvaluator object.

The must be the name of aor a constant value.

The must be the name of aor a constant value.**If theor is a constant value, it should be of the same for the network attribute to which this evaluator is assigned.**The must be set to one of the operators returned in .**Example: _Set a numeric network attribute equal to the_ DriveTime _network attribute multiplied by_ 1.25_._- FirstArgument: DriveTime**

  • Operator: *
  • SecondArgument: 1.25**Example: _Set a restriction network attribute equal to_ True _when the_Vehicle Height _network parameter exceeds the_MaxHeight _network attribute._- FirstArgument: MaxHeight**
  • Operator: &<
  • SecondArgument: Vehicle Height****

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