From: <qua...@us...> - 2010-02-17 09:21:36
|
Revision: 146 http://stdair.svn.sourceforge.net/stdair/?rev=146&view=rev Author: quannaus Date: 2010-02-17 09:21:30 +0000 (Wed, 17 Feb 2010) Log Message: ----------- [Dev] Fixed a bug Modified Paths: -------------- trunk/stdair/stdair/basic/RandomGenerationContext.cpp trunk/stdair/stdair/basic/RandomGenerationContext.hpp trunk/stdair/stdair/bom/DemandStreamContent.hpp Modified: trunk/stdair/stdair/basic/RandomGenerationContext.cpp =================================================================== --- trunk/stdair/stdair/basic/RandomGenerationContext.cpp 2010-02-16 16:50:19 UTC (rev 145) +++ trunk/stdair/stdair/basic/RandomGenerationContext.cpp 2010-02-17 09:21:30 UTC (rev 146) @@ -26,7 +26,7 @@ // ////////////////////////////////////////////////////////////////////// void RandomGenerationContext::incrementGeneratedRequestsCounter () { - _numberOfRequestsGeneratedSoFar++; + ++_numberOfRequestsGeneratedSoFar; } } Modified: trunk/stdair/stdair/basic/RandomGenerationContext.hpp =================================================================== --- trunk/stdair/stdair/basic/RandomGenerationContext.hpp 2010-02-16 16:50:19 UTC (rev 145) +++ trunk/stdair/stdair/basic/RandomGenerationContext.hpp 2010-02-17 09:21:30 UTC (rev 146) @@ -23,7 +23,7 @@ } /** Get the number of requests generated so far. */ - const Count_T& getNumberOfRequestsGeneratedSoFar() const { + const Count_T& getNumberOfRequestsGeneratedSoFar () const { return _numberOfRequestsGeneratedSoFar; } Modified: trunk/stdair/stdair/bom/DemandStreamContent.hpp =================================================================== --- trunk/stdair/stdair/bom/DemandStreamContent.hpp 2010-02-16 16:50:19 UTC (rev 145) +++ trunk/stdair/stdair/bom/DemandStreamContent.hpp 2010-02-17 09:21:30 UTC (rev 146) @@ -111,8 +111,8 @@ } /** Get the number of requests generated so far. */ - const Count_T getNumberOfRequestsGeneratedSoFar() const { - return _randomGenerationContext.getCumulativeProbabilitySoFar();; + const Count_T& getNumberOfRequestsGeneratedSoFar() const { + return _randomGenerationContext.getNumberOfRequestsGeneratedSoFar(); } /** Get the seed of the random generator for the number of requests. */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |