Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wrapping a Weather Module into a CHAIMS MegaModule Mike Laskin Tools and Process for Software Stanford University - CS 446 - Fall 1998 December 2, 1998.

Similar presentations


Presentation on theme: "Wrapping a Weather Module into a CHAIMS MegaModule Mike Laskin Tools and Process for Software Stanford University - CS 446 - Fall 1998 December 2, 1998."— Presentation transcript:

1

2 Wrapping a Weather Module into a CHAIMS MegaModule Mike Laskin Tools and Process for Software Stanford University - CS 446 - Fall 1998 December 2, 1998

3 Wrap a weather service so it can be used as a CHAIMS- compliant megamodule - Simple, Right? Which weather service?Which weather service? Interface: CHAIMS Weather ServiceInterface: CHAIMS Weather Service Wrapping a MegaModuleWrapping a MegaModule TestingTesting

4 Typical Scenario A general has to ship troops and/or various material from San Diego NOSC to Washington DC: –different kind of material: criteria for preferred transport differ –not every airport equally suited –congestion, prices –actual weather –certain due or ready dates

5 Typical Scenario (cont.) Today:Today: –calling different companies –looking up information on the web –reservations by hand TomorrowTomorrow –system proposes possibilities that take into account various conditions

6 Weather Data over TCP/IP http://www.wunderground.com/http://www.wunderground.com/ http://cirrus.sprl.umich.edu/wxnet/http://cirrus.sprl.umich.edu/wxnet/ Colorado Weather Underground Contel DUAT System Cornell University Weather & Climate Data NCDC Hurricane System NOAA Master Directory Southern Regional Climate Center...Colorado Weather Underground Contel DUAT System Cornell University Weather & Climate Data NCDC Hurricane System NOAA Master Directory Southern Regional Climate Center...

7

8 Weather Data Types GeoLocation: City / Airport abbreviation / State / lattitude & longitudeGeoLocation: City / Airport abbreviation / State / lattitude & longitude ConditionsConditions –Min/Max/Avg Temperature in °F and °C –Cloud Cover level –Wind speed, direction

9 Weather Data API WeatherToday(GeoLocation)WeatherToday(GeoLocation) 5DayWeather (GeoLocation)5DayWeather (GeoLocation) ClosestWeather(Conditions)ClosestWeather(Conditions) Weather(City, Day)Weather(City, Day) 5DayWeatherFrom(City, Day)5DayWeatherFrom(City, Day)

10 Architecture: Overview Distribution System (CORBA, RMI…) CHAIMS Repository adds information to e d a b c MEGA modules wraps non-CHAIMS compliant megamodules` Wrapper Templates writes Megaprogrammer CSRT (compiled megaprogram) Megaprogram (in CHAIMS language) CHAIMS Compiler generates information Megamodule Provider

11 Megaprogram Example: Code weather_mmh = SETUP (”Weather") route_mmh = SETUP ("RouteInfo")... dayweather_ih = weather_mmh.INVOKE (”WeatherToday”, city = “Palo Alto, CA”) WHILE (dayweather_ih.EXAMINE() != DONE) {} outweather = dayweather_ih.EXTRACT()...weather_mmh.TERMINATE() // Setup connections to megamodules. // Get information from // megaprogram user // about the city. // Get the weather for the // next day // Terminate all // invocations

12 In Closing CHAIMS is a viable architectureCHAIMS is a viable architecture The weather service can be implementedThe weather service can be implemented In the future: Will finish the weather service implementationWill finish the weather service implementation Updated documentation for CHAIMS would be of great helpUpdated documentation for CHAIMS would be of great help

13 Questions???


Download ppt "Wrapping a Weather Module into a CHAIMS MegaModule Mike Laskin Tools and Process for Software Stanford University - CS 446 - Fall 1998 December 2, 1998."

Similar presentations


Ads by Google