19 lines
766 B
Plaintext
19 lines
766 B
Plaintext
#################################################################
|
|
# Testszenario for testing the operator shortestpath_astar
|
|
#################################################################
|
|
|
|
open database berlinmod;
|
|
|
|
## Test 1 ######################
|
|
# Type Constructor gpoint value(<network_id> <route_id> <position> <side>)
|
|
query shortest_path([const gpoint value(1 1 0.0 1)],[const gpoint value(1 2536 0.0 1)]);
|
|
|
|
## Test 2 ######################
|
|
query shortestpath_astarplus([const gpoint value(1 1 0.0 1)],[const gpoint value(1 2536 0.0 1)]);
|
|
|
|
## Test 3 ######################
|
|
query shortestpath_astarplus([const gpoint value(1 2 0.0 0)],[const gpoint value(1 2536 0.0 1)],fun(cost: real, duration:real, l:real) (cost -(2* duration) + 2000) );
|
|
|
|
close database;
|
|
|