5 #include <rmol/bom/DemandGeneratorList.hpp>
12 init (aDistributionParameterList);
20 init (aDistributionParameterList);
26 init (iDistributionParameterList);
34 void DemandGeneratorList::
37 DistributionParameterList_T::const_iterator itParams =
38 iDistributionParameterList.begin();
39 for ( ; itParams != iDistributionParameterList.end(); itParams++) {
40 const FldDistributionParameters& aParams = *itParams;
42 const Gaussian gaussianGenerator (aParams);
44 _demandGeneratorList.push_back (gaussianGenerator);
53 DemandGeneratorList_T::const_iterator itGenerator =
54 _demandGeneratorList.begin();
55 for ( ; itGenerator != _demandGeneratorList.end(); itGenerator++) {
56 const Gaussian& gaussianGenerator = *itGenerator;
59 const double generatedVariate = gaussianGenerator.generateVariate ();
60 ioVariateList.push_back (generatedVariate);