English

How To: Dynamic Segmentation demo No. 4

Procedure

Dynamic Segmentation basic demos 1, 2 and 3 must be gone through before attempting this.

Instructions provided describe how to create two different route systems within the same line coverage.

For this example, BUS and GAS are the two route systems.

Each route system is comprised of 2 routes:

Route System BUS
============================================
$routeid = 10
$routeid = 20
Route System GAS
============================================
$routeid = 300
$routeid = 400

Here is how the line coverage C looks:

|--------|--------|--------|
| | | |
| | | |
| | | |
|--------|--------|--------|
| | | |
| | | |
| | | |
|--------|--------|--------|
| | | |
| | | |
| | | |
|--------|--------|--------|

This is a simple 3x3 grid that can be generated as follows:

arc60>cw demo4
w demo4
generate c
grid
0,0
0,1
10,10
3,3
q
clean c # # # line
tables
SEL C.AAT
LIST
CALC C-ID = C#
Q STOP
idedit c line
list c.aat

For example, the first route system is named BUS. Examine the following
diagrams:
end
|--------#####>####--------|
| # | |
| # | |
| # | |
|--------#--------|--------|
| # | |
| ^ | |
| # | |
|--------#--------|--------|
| # | |
| # | |
| # | |
|--------#--------|--------|
start
$routeid = 10

*****<*****************<****
* | | *
* | | *
* | | *
*--------|--------|--------* start
* | | | $routeid = 20
V | | |
* | | |
end *--------|--------|--------|
| | | |
| | | |
| | | |
|--------|--------|--------|

Go into arcedit and create the routesystem with the name BUS:

arc60>&term 9999
display 9999
ae
editc c
de arc ids node section.bus measures route.bus arrows
setdrawsym 11 2
draw

The arcs should be numbered as follows:

|---2---|---1---|---7---|
| | | |
| 3 5 |
| | | |
|---4---|---6---|---8---|
| | | |
9 10 12 14
| | | |
|--11---|--13---|--15---|
| | | |
| 16 18 |
| | | |
|--17---|--19---|--20---|

createf section.bus
add

Select sections that make up $routeid = 10 press [1] to select an arc, and press [3] to make the full arc a section.

Select arcs 16, 10, 3 and 1
press [9] to quit.

list $all
makeroute 10 * Move your cursor to the start point of $routeid = 10
sel all
list $all
res $routeid = 0
delete
nsel
list $all
drawsel
draw
list arclink# f-meas t-meas

Note that arcs 16, 10, 3 and 1 are each 10 units in length.

sel all
nsel

add

Select the sections that make up $routeid = 20. Select arcs 7, 1, 2 and 9.

list $all
makeroute 20 * Enter the start point of $routeid = 20 with your cursor
sel all
list $all
res $routeid = 0
delete
nsel
list $all
res $routeid = 20
list $all
drawsel
draw
list arclink# f-meas t-meas

Note:
While arcs 1 and 9 are 10 units in length, arcs 7 and 2 measure 20 units each. Hence the total length of $routeid = 20 is 60 units.

save
q
describe c
list c.ratbus
list c.secbus

The route system is now successfully entered.

Next, enter the second route system named GAS. Examine the diagram below:

|-------|-------|-------|
| | | |
| | | |
| end | | |
|---&&&&&-------|-------|
| & | |
| & | |
| & | |
|-------&&&&----|-------|
| | start of $routeid = 300
| | | |
| | | |
|-------|-------|-------|
start of $routeid = 400
|-------|-------#-------|
| | # |
| V V |
| # # |
| # # |
|-------####<####-------|
| # | |
| # | |
| V | |
| # | |
|-------####>########---|
| | | end |
| | | |
| | | |
|-------|-------|-------|

For $routeid = 400, partial sections have been used on arcs 3 and 15, while on $routeid = 300 partial sections have been used on arcs 4 and 13.

Make a note of the route directions shown by the following symbols:

^ up
V down
< left
> right

Also, make a special note of $routeid = 400. The partial section on arc #3 is pointing downwards. While using the makeroute command, the program automatically assigns route directions that diverge or grow outwards.

This means the route direction on this section points upwards. The FLIP command fixes this is problem.

ae
ec c
de arc ids node section.gas measures route.gas arrows
setdrawsym 11 2
draw
createf section.gas
add

Select the 3 sections that make up $routeid = 300:

arc #13 is a partial section: Use options 1 and 2 arc #10 is a full section: Use options 1 and 3 arc #4 is a partial section: Use options 1 and 2
hit 9 to quit

list $all
makeroute 300 * Enter start point of $routeid = 300

sel all
list $all
res $routeid = 0
delete
nsel
list $all
drawsel
draw
list arclink# f-meas t-meas
sel all
nsel
add

Select sections for $routeid = 400:

arc #5 is a full section: Use options 1 and 3
arc #5 is a full section: Use options 1 and 3
arc #10 is a full section: Use options 1 and 3
arc #13 is a full section: Use options 1 and 3
arc #15 is a partial section: Use options 1 and 2
arc #3 is a partial section: Use options 1 and 2
hi