Logo 

Compiling High-level Access Interfaces for Multi-site Software (CHAIMS)

Logo 

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:  

    The demo works in the following way:

  1. The megaprogram contacts the RouteInfo module to get the default city pair (source and destination)
  2. 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
  3. Once this is done, the megaprogram gets the list of possible routes between these cities by using the GetRoutes method of the RouteInfo module
  4. 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.
  5. 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
  6. Now, the megaprogram sends these costs along with all the possible routes to the BestRoute module.  This module will compute the best possible route.
  7. 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)