Public Member Functions

wosh::bundles::WeatherBundle Class Reference
[WOSH Bundles]

Collects and store Weather conditions, providing access and search features to WOSH system. More...

#include <H:/WOSH/win32_vc2010/src/bundles/Weather/WeatherBundle.h>

List of all members.

Public Member Functions

 WeatherBundle ()
 Empty constructor, init bundle and vars, Properties and Methods.
virtual ~WeatherBundle ()
 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.
Setters
void updatedWeather (const WeatherInfo *newInfo, double similarity, WeatherWorker *source)
void updatedForecast (const std::vector< WeatherInfo * > &newForecast, WeatherWorker *source)

Detailed Description

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, [..]

History
History is never updated by forecast. It may be (partially) updated by realtime info and today's information.

Implemented Sources:

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

Customization
First you should look for online weather services offering stats about your place, probably Google and Yahoo are good starting points.
See also:
wosh::interfaces::various::Weather
Version:
0.8.500
Id:
WeatherBundle.h 3775 2011-01-01 16:38:17Z alex
Author:
Alessandro Polo
Date:
Released on 2010-09-01

Definition at line 98 of file WeatherBundle.h.


Constructor & Destructor Documentation

wosh::bundles::WeatherBundle::WeatherBundle (  )

Empty constructor, init bundle and vars, Properties and Methods.

Definition at line 59 of file WeatherBundle.cpp.

References _METHOD_Retrieve, and wosh::LOG_DEBUG.

wosh::bundles::WeatherBundle::~WeatherBundle (  ) [virtual]

Empty destructor, may (synch) stop bundle and internal threads when still running.

Definition at line 117 of file WeatherBundle.cpp.

References wosh::LOG_INFO, wosh::LOG_VERBOSE, and wosh::LOG_WARNING.


Member Function Documentation

void wosh::bundles::WeatherBundle::busMessage ( const Message message,
const Bus source 
) [virtual]

Method raised by the Bus when it processes a new message. Implementations will probably analyze the message and perform actions.

Parameters:
[in]messagethe incoming message
[in]sourcethe source Bus of the incoming message
Warning:
The current thread is own and managed by the caller Bus. Heavy, dangerous or time expensive operations should be executed asynchronously and not inline!

Reimplemented from wosh::BundleGeneric.

Definition at line 156 of file WeatherBundle.cpp.

References wosh::Message::isEmpty().


The documentation for this class was generated from the following files:

Generated on Tue Feb 8 2011 09:33:37 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework