MODULE "room_res" DCE ninja1.stanford.edu "room_res" MODULE "RR" CORBA ORBIX sole "RR" MODULE "MyChaimsRap" CORBA ORBIX sole "CHAIMS_ORBIX_RAP" MODULE "io" CORBA OMNIBROKER sole "io" /* this is the general io-megamodule that allows input and output for text-based data. The data may be structured over several hierarchies. As the default format for exchanging data between megamodules contains type and name for each data-element, the io-megamodule has no problem to display data correctly. Not yet implemented are features like displaying pictures (e.g. gif-files), or inputting data from a file. */ /* The following modules are used with the trans demo */ MODULE "AirMM" CORBA ORBIX sole "AirModule" /* Computes Air Costs */ MODULE "GroundMM" CORBA ORBIX sole "GroundModule" /* Computes Ground Costs */ MODULE "BestRouteMM" CORBA ORBIX sole "BestRouteModule" /* Picks Best Route */ MODULE "RouteInfoMM" CORBA ORBIX sole "RouteInfoModule" /* Gets Route Info */ MODULE "CHAIMSRAP" CORBA ORBIX sole "CHAIMSRAP_V1_0" /* Really just a testing module for testing the compiler and wrappers */ MODULE "CHAIMSRAP_whp" CORBA ORBIX sole "CHAIMSRAP3" /* Really just a testing module for testing the compiler and wrappers */ MODULE "AirInterface" JAVA tree0.stanford.edu "airService1" MODULE "ChaimsWrapper" JAVA bigeye.stanford.edu "ChaimsWrapper" MODULE "ChaimsWrapper2" JAVA bigeye.stanford.edu "ChaimsWrapper2" /* For the java demo */ MODULE "CHAIMSRAP_TEST" CORBA ORBIX sole "CHAIMSRAP_V1_2_2_TEST" /* For testing the wrapper */ METHOD CHAIMSRAP_TEST.GetName(IN addr, RES name) /* Given an address, this will return the name of that individual */ METHOD CHAIMSRAP_TEST.GetAddress(IN name, RES addr) /* Given a name, this will return the address of that individual */ METHOD CHAIMSRAP_TEST.GetBoth(IN which, RES addr, RES name) /* Given which one (an integer), this will return the name and address of that individual. */ PARAM CHAIMSRAP_TEST.addr OPAQUE /* data containing a street name and room name */ PARAM CHAIMSRAP_TEST.name STRING /* A string name of a person: "Bill1" */ PARAM CHAIMSRAP_TEST.which INT /* An integer (0-4) specifying a person */ MODULE "DateTimeMM" CORBA ORBIX sole "DateTimeMM" /* date module */ METHOD CHAIMSRAP.GetName(IN addr, RES name) /* Given an address, this will return the name of that individual */ METHOD CHAIMSRAP.GetAddress(IN name, RES addr) /* Given a name, this will return the address of that individual */ METHOD CHAIMSRAP.GetBoth(IN which, RES addr, RES name) /* Given the number of an individual (0-4), this will return both their name and address */ PARAM CHAIMSRAP.addr OPAQUE /* data containing a street name and room name */ PARAM CHAIMSRAP.name STRING /* A string name of a person: "Bill1" */ PARAM CHAIMSRAP.which INT /* An integer (0-4) specifying a person */ METHOD AirInterface.Route(IN Source, IN Destination, RES RouteList) /*calculates all the possible routes between the two cities Source and Destination */ METHOD io.ask(IN text, IN value, RES result) METHOD io.write(IN text, IN value) PARAM io.value OPAQUE /* default-data containing name, type and default-values of the data to be asked for or name, type, and values of data to be displayed */ PARAM io.result OPAQUE /* datablob containing user input; types and names are equal to the ones in the parameter io.value, values may be equal or changed by user */ METHOD room_res.make_reservation(IN room, IN date, RES res_status) METHOD room_res.occupancy_list(IN rooms, IN date, RES occupancy_list) PARAM io.room OPAQUE /* one room number */ PARAM io.rooms OPAQUE /* list of room numbers */ METHOD AirMM.GetTravelCost(IN CityPairList, RES TravelCost) METHOD GroundMM.GetTravelCost(IN CityPairList, RES TravelCost) PARAM AirMM.CityPairList OPAQUE /* data containing a city pair list */ PARAM GroundMM.CityPairList OPAQUE /* data containing a city pair list */ PARAM AirMM.TravelCost OPAQUE /* data containing a travelcost */ PARAM GroundMM.TravelCost OPAQUE /* data containing a travelcost */ SYNONYM AirMM.CityPairList = GroundMM.CityPairList SYNONYM AirMM.TravelCost = GroundMM.TravelCost METHOD RouteInfoMM.GetRoutes(IN CityPair, RES Routes) /* gets all routes between 2 cities */ METHOD RouteInfoMM.GetCityPairList(IN Routes, RES CityPairList) /* Gets all city pairs from routes */ PARAM RouteInfoMM.CityPair OPAQUE /* data containing a city pair */ PARAM RouteInfoMM.Routes OPAQUE /* data containing routes */ PARAM RouteInfoMM.CityPairList OPAQUE /* data containing a city pair list */ SYNONYM AirMM.CityPairList = RouteInfoMM.CityPairList METHOD BestRouteMM.PickBestRoute(IN Routes, IN TravelCost1, IN TravelCost2, RES BestRoute) PARAM BestRouteMM.Routes OPAQUE /* data containing routes */ PARAM BestRouteMM.TravelCost1 OPAQUE /* data containing a travelcost */ PARAM BestRouteMM.TravelCost2 OPAQUE /* data containing a travelcost */ PARAM BestRouteMM.BestRoute STRING /* The best route between 2 cities */ SYNONYM BestRouteMM.Routes = RouteInfoMM.Routes SYNONYM BestRouteMM.TravelCost1 = AirMM.TravelCost SYNONYM BestRouteMM.TravelCost2 = AirMM.TravelCost