|
From: <qua...@us...> - 2010-09-10 14:00:31
|
Revision: 127
http://dsim.svn.sourceforge.net/dsim/?rev=127&view=rev
Author: quannaus
Date: 2010-09-10 14:00:25 +0000 (Fri, 10 Sep 2010)
Log Message:
-----------
[dev] Debugging airsched/dsim.
Modified Paths:
--------------
trunk/dsim/dsim/batches/simulate.cpp
trunk/dsim/dsim/command/Simulator.cpp
Modified: trunk/dsim/dsim/batches/simulate.cpp
===================================================================
--- trunk/dsim/dsim/batches/simulate.cpp 2010-09-07 15:18:51 UTC (rev 126)
+++ trunk/dsim/dsim/batches/simulate.cpp 2010-09-10 14:00:25 UTC (rev 127)
@@ -306,17 +306,7 @@
// Display the airlines stored in the database
dsimService.displayAirlineListFromDB();
- } catch (const DSIM::RootException& otexp) {
- std::cerr << "Standard exception: " << otexp.what() << std::endl;
- return -1;
-
- } catch (const std::exception& stde) {
- std::cerr << "Standard exception: " << stde.what() << std::endl;
- return -1;
-
- } catch (...) {
- return -1;
- }
+ } CATCH_ALL_EXCEPTIONS
return 0;
}
Modified: trunk/dsim/dsim/command/Simulator.cpp
===================================================================
--- trunk/dsim/dsim/command/Simulator.cpp 2010-09-07 15:18:51 UTC (rev 126)
+++ trunk/dsim/dsim/command/Simulator.cpp 2010-09-10 14:00:25 UTC (rev 127)
@@ -100,12 +100,15 @@
// Get the fare quote for each travel solution.
// Get the availability for each travel solution.
//ioSIMCRS_Service.getAvailability (lTravelSolutionList);
+
// Hardcode a travel solution choice.
- // Make a sale.
- // ioSIMCRS_Service.sell (lChosenTravelSolution, lNbOfSeats);
stdair::TravelSolutionList_T::iterator itTS = lTravelSolutionList.begin();
const stdair::TravelSolutionStruct& lChosenTS = *itTS;
STDAIR_LOG_DEBUG ("Chosen TS: " << lChosenTS);
+
+ // Make a sale.
+ const stdair::NbOfSeats_T& lPartySize = iBookingRequest.getPartySize();
+ ioSIMCRS_Service.sell (lChosenTS, lPartySize);
} else {
// DEBUG
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|