|
Compiling High-level Access Interfaces for Multi-site Software (CHAIMS)
|
|
Transportation Demo
Woody Pollack, July 17, 1998
This page describes what the transportation demo does, as well as how
to run it.
What the transportation demo does
The transportation demo utilizes 5 megamodules:
-
IO
-
responsible for all getting information from the user as well as displaying
results to the user
-
RouteInfo
-
responsible for getting information about routes between 2 points
-
Air
-
responsible for getting air travel costs between points
-
Ground
-
responsible for getting ground travel costs between points
-
BestRoute
-
responsible for calculating the best cost of all possible routes between
2 points
The demo works in the following way:
-
The megaprogram contacts the RouteInfo module to get the default city pair
(source and destination)
-
The megaprogram then sends this to the ask method of the IO module
so the user can specify which 2 cities he is interested int
-
Once this is done, the megaprogram gets the list of possible routes between
these cities by using the GetRoutes method of the RouteInfo module
-
Once the megaprogram has gotten the routes, it then gets the possible city
pairs between these 2 cities. These city pairs will be used to calculate
the air and ground costs of travel.
-
Now, the megaprogram sends the city pair list to the GetTravelCost methods
of both the Air and Ground modules in order to get the air and ground costs
of travel between all of these city pairs
-
Now, the megaprogram sends these costs along with all the possible routes
to the BestRoute module. This module will compute the best possible
route.
-
Finally, the megaprogram takes this best route and outputs it to the user
using the IO module.
The CHAIMS megaprogram for the transportation demo is
located here
How to run the transportation demo
In order to run the transportation demo, you must first
set some things up
(NOTE: It is probably easiest if you log in as chaims)
-
Set up your environment
-
source /db/d8/ftp/www/CHAIMS/Code/Env/chaims.env
-
Start up the IO module (either in a new window or as a background process)
-
change to the IO module directory
-
/db/d8/ftp/www/CHAIMS/Code/HelperModules/IOModule/v1.1/java_io
-
start
the server (make sure DISPLAY is set to where you are)
Now you can run the demo:
-
Change to the demo directory
-
/db/d8/ftp/www/CHAIMS/Code/Examples/trans_1.1/Client1
-
Run it
Here is a list of all possible cities that the transportation
system knows about:
-
austin-tx
-
baltimore
-
houston-tx
-
new-york-city
-
palo-alto
-
san-francisco
-
san-jose
-
orlando-fl
If you have any questions/problems, feel free to contact
me.
7/17/98
wpollack@db.stanford.edu