19 lines
744 B
Plaintext
19 lines
744 B
Plaintext
|
|
#################################################################
|
||
|
|
# Testszenario for testing the operator shortestpath_astarplus
|
||
|
|
#################################################################
|
||
|
|
|
||
|
|
open database networktest;
|
||
|
|
|
||
|
|
## Test 1 ######################
|
||
|
|
# Type Constructor gpoint value(<network_id> <route_id> <position> <side>)
|
||
|
|
query shortest_path([const gpoint value(1 2 0.0 0)],[const gpoint value(1 10 5.0 1)]);
|
||
|
|
|
||
|
|
## Test 2 ######################
|
||
|
|
#query shortestpath_astarplus([const gpoint value(1 2 0.0 0)],[const gpoint value(1 10 5.0 1)]);
|
||
|
|
|
||
|
|
## Test 3 ######################
|
||
|
|
query shortestpath_astarplus([const gpoint value(1 2 0.0 0)],[const gpoint value(1 2 0.0 0)],fun(c: real, d:real, l:real) (c -(2* d) + 20) );
|
||
|
|
|
||
|
|
|
||
|
|
close database;
|