Trace

Top  Previous  Next

This method can be used for tracing in a network. It will start from a link and trace in all directions until a node is reached that is marked with True in the Valves input parameter.

 

Oneway restrictions are ignored.

 

This method is only useful for utility networks, such as sewers, water pipes etc. It has little relevance for street networks.

 

Output parameter ValvesReached shows which of the valves was reached.

Output parameter LinksReached shows which of the links was reached.

 

Syntax: Trace(link: integer; Valves, ValvesReached, LinksReached: TBitArray)

 

See also DownStream and UpStream

 

Example:

Input:

Start link: 1 (red labels)

Valves: 1, 11, 15, 16, 17 (blue dots)

 

Output:

ValvesReached: 1, 11

LinksReached: 1, 2, 3, 4, 5.

trace