Collects and store Weather conditions, providing access and search features to WOSH system. More...
|Empty constructor, init bundle and vars, Properties and Methods. |
|Empty destructor, may (synch) stop bundle and internal threads when still running. |
|void||busMessage (const Message &message, const Bus *source)|
|Method raised by the Bus when it processes a new message. Implementations will probably analyze the message and perform actions. |
|void||updatedWeather (const WeatherInfo *newInfo, double similarity, WeatherWorker *source)|
|void||updatedForecast (const std::vector< WeatherInfo * > &newForecast, WeatherWorker *source)|
Collects and store Weather conditions, providing access and search features to WOSH system.
Weather information are usually collected from the Internet or custom drivers (as implemented WeatherSource). The service periodically updates data of each source, when some news are available, they are merged (data fusion/integration) with other sources and stored and the official WOSH Weather conditions.
Basically, they are classified as:
Each WeatherSource may support one or more type of information, forecast and history are usually loaded in same session, sources may also be disabled and have an independent update-frequency (step=1 second).
Data-fusion is implemented by WeatherDataFusion class, [..]
These classes implements WeatherSource interface, they are configured on Bundle-start by an XML file (through standard persistence architecture). By default, database-file is /var/database/weather.sources.xml
|void wosh::bundles::WeatherBundle::busMessage||(||const Message &||message,|
|const Bus *||source|
|[in]||message||the incoming message|
|[in]||source||the source Bus of the incoming message|
Reimplemented from wosh::BundleGeneric.