|
From: <qua...@us...> - 2010-05-03 12:01:44
|
Revision: 81
http://dsim.svn.sourceforge.net/dsim/?rev=81&view=rev
Author: quannaus
Date: 2010-05-03 12:01:37 +0000 (Mon, 03 May 2010)
Log Message:
-----------
[Dev] Changed the structure of list of travel solutions.
Modified Paths:
--------------
trunk/dsim/dsim/command/Simulator.cpp
Modified: trunk/dsim/dsim/command/Simulator.cpp
===================================================================
--- trunk/dsim/dsim/command/Simulator.cpp 2010-05-03 09:45:23 UTC (rev 80)
+++ trunk/dsim/dsim/command/Simulator.cpp 2010-05-03 12:01:37 UTC (rev 81)
@@ -101,18 +101,13 @@
// booking request.
stdair::TravelSolutionList_T lTravelSolutionList =
ioSIMCRS_Service.getTravelSolutions (iBookingRequest);
-
- // Hardcode a travel solution choice.
if (lTravelSolutionList.empty() == false) {
- // DEBUG
- STDAIR_LOG_DEBUG ("A travel solution is chosen.");
-
- stdair::TravelSolutionStruct lChosenTravelSolution =
- lTravelSolutionList.at(0);
- // Get the number of seats in the request.
- const stdair::NbOfSeats_T& lNbOfSeats = iBookingRequest.getPartySize();
+ // 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);
+ // ioSIMCRS_Service.sell (lChosenTravelSolution, lNbOfSeats);
} else {
// DEBUG
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|