1 / 12

Wrapping a Weather Module into a CHAIMS MegaModule

Wrapping a Weather Module into a CHAIMS MegaModule. Mike Laskin Tools and Process for Software Stanford University - CS 446 - Fall 1998 December 2, 1998. Wrap a weather service so it can be used as a CHAIMS-compliant megamodule - Simple, Right?. Which weather service?

kostya
Download Presentation

Wrapping a Weather Module into a CHAIMS MegaModule

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Wrapping a Weather Module into a CHAIMS MegaModule Mike LaskinTools and Process for SoftwareStanford University - CS 446 - Fall 1998December 2, 1998

  2. Wrap a weather service so it can be used as a CHAIMS-compliant megamodule - Simple, Right? • Which weather service? • Interface: CHAIMS <=> Weather Service • Wrapping a MegaModule • Testing

  3. 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

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

  5. Weather Data over TCP/IP • http://www.wunderground.com/ • http://cirrus.sprl.umich.edu/wxnet/ • Colorado Weather UndergroundContel DUAT SystemCornell University Weather & Climate Data NCDC Hurricane SystemNOAA Master DirectorySouthern Regional Climate Center...

  6. Weather Data Types • GeoLocation: City / Airport abbreviation / State / lattitude & longitude • Conditions • Min/Max/Avg Temperature in °F and °C • Cloud Cover level • Wind speed, direction

  7. Weather Data API • WeatherToday(GeoLocation) • 5DayWeather (GeoLocation) • ClosestWeather(Conditions) • Weather(City, Day) • 5DayWeatherFrom(City, Day)

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

  9. Megaprogram Example: Code // Setup connections to megamodules. // Get information from // megaprogram user // about the city. // Get the weather for the // next day // Terminate all // invocations 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()

  10. In Closing • CHAIMS is a viable architecture • The weather service can be implemented In the future: • Will finish the weather service implementation • Updated documentation for CHAIMS would be of great help

  11. Questions???

More Related