bmps::BMPPointSrcFactory类 参考

Base class of point source BMPs. 更多...

#include <BMPPointSourceFactory.h>

类 bmps::BMPPointSrcFactory 继承关系图:
bmps::BMPFactory ccgl::Interface

Public 成员函数

 BMPPointSrcFactory (int scenarioId, int bmpId, int subScenario, int bmpType, int bmpPriority, vector< string > &distribution, const string &collection, const string &location)
 Constructor
 
 ~BMPPointSrcFactory ()
 Destructor
 
void loadBMP (MongoClient *conn, const string &bmpDBName) OVERRIDE
 Load BMP parameters from MongoDB
 
void Dump (std::ostream *fs) OVERRIDE
 Output
 
void ReadPointSourceManagements (MongoClient *conn, const string &bmpDBName)
 Load point BMP location related parameters from MongoDB 更多...
 
void ReadPointSourceLocations (MongoClient *conn, const string &bmpDBName)
 Load point BMP location related parameters from MongoDB 更多...
 
- Public 成员函数 继承自 bmps::BMPFactory
 BMPFactory (int scenario_id, int bmp_id, int sub_scenario, int bmp_type, int bmp_priority, vector< string > &distribution, const string &collection, const string &location, bool effectivenessChangeable=false, time_t changeFrequency=-1, int variableTimes=-1)
 Constructor
 
 ~BMPFactory ()
 Destructor
 
virtual void setRasterData (map< string, IntRaster * > &sceneRsMap)
 Set raster data if needed This function is not required for each BMP, so DO NOT define as pure virtual function. 更多...
 
virtual int * GetRasterData ()
 Get raster data if needed This function is not required for each BMP, so DO NOT define as pure virtual function.
 
int bmpType ()
 Get BMP type 1 - reach BMPs which are attached to specific reaches and will change the character of the reach. 更多...
 
int bmpPriority ()
 Get BMP priority
 
int GetSubScenarioId ()
 Get subScenario ID
 

额外继承的成员函数

- Protected 属性 继承自 bmps::BMPFactory
const int m_scenarioId
 Scenario ID
 
const int m_bmpId
 BMP ID
 
const int m_subScenarioId
 SubScenario ID within one BMP iD
 
const int m_bmpType
 BMP Type
 
const int m_bmpPriority
 BMP Priority
 
vector< string > m_distribution
 Distribution vector of BMP Origin format is [distribution data type]|[distribution parameter name]|Collection name|...
 
const string m_bmpCollection
 Collection name
 
const string m_location
 Define where the BMP will be applied
 

详细描述

Base class of point source BMPs.

Actually, include point pollution sources, such as sewage outlet of animal farm.

成员函数说明

◆ ReadPointSourceLocations()

void bmps::BMPPointSrcFactory::ReadPointSourceLocations ( MongoClient conn,
const string &  bmpDBName 
)

Load point BMP location related parameters from MongoDB

参数
[in]connMongoClient instance
[in]bmpDBNameBMP Scenario database

◆ ReadPointSourceManagements()

void bmps::BMPPointSrcFactory::ReadPointSourceManagements ( MongoClient conn,
const string &  bmpDBName 
)

Load point BMP location related parameters from MongoDB

参数
[in]connMongoClient instance
[in]bmpDBNameBMP Scenario database

该类的文档由以下文件生成: