|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that specify the properties of a network attribute evaluator whose values are derived from object field attributes.
The INetworkFieldEvaluator interface accesses the code used by a NetworkFieldEvaluator 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 determining the direction of travel based on a string field named One_way:
restricted = False
Select Case UCase([One_way])
Case "N", "TF", "T": restricted = True
End Select
restricted
| Method Summary | |
void |
getExpression(java.lang.String[] expression,
java.lang.String[] preLogic)
Gets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator. |
void |
setExpression(java.lang.String expression,
java.lang.String preLogic)
Sets the VBScript calculator expression and pre-logic used to derive the values for this network evaluator. |
| Method Detail |
public void setExpression(java.lang.String expression,
java.lang.String preLogic)
throws java.io.IOException,
AutomationException
expression - The expression (in)preLogic - The preLogic (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getExpression(java.lang.String[] expression,
java.lang.String[] preLogic)
throws java.io.IOException,
AutomationException
When examining the preLogic parameter for code with multiple lines, the CarriageReturn-LineFeed character is at the line breaks.
expression - The expression (in/out: use single element array)preLogic - The preLogic (in/out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||