Interface INetworkScriptEvaluator
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that specify the properties of a network attribute evaluator whose values are derived from VBScript expressions.
[Guid("9603B546-894D-4DCD-93ED-A2E046FAF32C")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface INetworkScriptEvaluator
Remarks
The INetworkScriptEvaluator interface accesses the code used by a NetworkScriptEvaluator object for calculating the attribute value for a network element. Any setup computations needed prior to calculate the attribute value are specified in the preLogic parameter. The value of the attribute is computed from the expression.
The example below shows the preLogic and expression for penalizing all left turns 20 seconds:
- PreLogic:
addedTime = 0 a = Turn.Angle If a > 210 And a < 330 Then addedTime = 20 End If
- Expression:
addedTime
Properties
Expression
Sets the VBScript calculator expression for this network evaluator.
string Expression { get; set; }
Property Value
ExpressionPreLogic
Sets the pre-logic used to derive the values for this network evaluator.
string ExpressionPreLogic { get; set; }
Property Value
Language
Sets the script language
string Language { get; set; }