Interface INetworkFunctionEvaluator

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[Guid("6699C29B-86CC-4C25-B3DD-98959760477B")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface INetworkFunctionEvaluator

Remarks

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

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

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

If the  or 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

Properties

FirstArgument

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

object FirstArgument { get; set; }

Property Value

object

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.

Operator

The operator used in the function.

string Operator { get; set; }

Property Value

string

Remarks

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

SecondArgument

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

object SecondArgument { get; set; }

Property Value

object

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.

Methods

GetOperators(esriNetworkAttributeDataType)

Get the list of supported binary operator names.

IEnumBSTR GetOperators(esriNetworkAttributeDataType returnDataType)

Parameters

returnDataType esriNetworkAttributeDataType

Returns

IEnumBSTR

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)