Public Member Functions | Protected Attributes

wosh::building::Appliance Class Reference

#include <H:/WOSH/win32_vc2010/src/framework/building/Appliance.h>

List of all members.

Public Member Functions

 Appliance ()
 Empty constructor.
 Appliance (const Appliance &m)
 Copy constructor.
virtual ~Appliance ()
 Empty destructor.
Appliance Interface
virtual WRESULT turnOn (const SecurityToken *security=NULL)
virtual WRESULT turnOff (const SecurityToken *security=NULL)
virtual WRESULT fade (double dimvalue, const SecurityToken *security=NULL)
virtual WRESULT dim (double value, const SecurityToken *security=NULL)
virtual WRESULT bright (double value, const SecurityToken *security=NULL)
Appliance Interface - Getters
virtual
wosh::interfaces::building::APPLIANCE_STATE 
getApplianceState () const
 Get last known appliance state (opened, closed, unknown)
virtual double getLevel () const
virtual const
wosh::interfaces::building::Switch
getSwitch () const
virtual
wosh::interfaces::building::Switch
getSwitch ()
wosh::interfaces::building::ApplianceListener * getApplianceListener ()
Appliance Interface - Setters
WRESULT setSwitch (wosh::interfaces::building::Switch *ptr)
WRESULT setApplianceListener (wosh::interfaces::building::ApplianceListener *ptr)
SwitchListener interface
virtual void switch_state (const wosh::interfaces::building::SwitchStateChanged *switch_event, const SecurityToken *token, wosh::interfaces::building::Switch *switch_source)
IPropertiesProviderListener interface
virtual bool updatingProperty (bool &do_update, const Variant &value_proposed, Property &property_current, const PropertiesProvider *source)

Protected Attributes

wosh::interfaces::building::APPLIANCE_STATE state
 level as enum, fade level is saved in Properties[_Appliance_KEY_Level] and level field
double level
 Properties[_Appliance_KEY_Level] is shadow var.

Private Member Functions

Hosted mehods
WRESULT mmDoTurnOn (const SecurityToken *security)
WRESULT mmDoTurnOff (const SecurityToken *security)
ResponsemmDoFade (const Message *requestMessage)
ResponsemmDoDim (const Message *requestMessage)
ResponsemmDoBright (const Message *requestMessage)

Internal mehods

void initAppliance ()
virtual void childrenChanged_ ()

Detailed Description

See also:
wosh::bundles::BuildingManagerBundle
Version:
Id:
Appliance.h 3775 2011-01-01 16:38:17Z alex
Author:
Alessandro Polo

Definition at line 49 of file framework/building/Appliance.h.


Constructor & Destructor Documentation

wosh::building::Appliance::Appliance (  )

Empty constructor.

Definition at line 58 of file Appliance.cpp.

wosh::building::Appliance::Appliance ( const Appliance m )

Copy constructor.

Parameters:
m[in] the source object to be copied

Definition at line 65 of file Appliance.cpp.

References wosh::building::BuildingBlock::getProperties(), level, and state.

wosh::building::Appliance::~Appliance (  ) [virtual]

Empty destructor.

Reimplemented from wosh::interfaces::building::Appliance.

Definition at line 77 of file Appliance.cpp.

References wosh::building::BuildingBlock::Log, and wosh::LOG_DEBUG.


Member Function Documentation

virtual wosh::interfaces::building::APPLIANCE_STATE wosh::building::Appliance::getApplianceState (  ) const [inline, virtual]

Get last known appliance state (opened, closed, unknown)

Returns:
current appliance state (enum)

Implements wosh::interfaces::building::Appliance.

Definition at line 105 of file framework/building/Appliance.h.

References state.


Member Data Documentation

Properties[_Appliance_KEY_Level] is shadow var.

Definition at line 165 of file framework/building/Appliance.h.

Referenced by Appliance().

wosh::interfaces::building::APPLIANCE_STATE wosh::building::Appliance::state [protected]

level as enum, fade level is saved in Properties[_Appliance_KEY_Level] and level field

Definition at line 164 of file framework/building/Appliance.h.

Referenced by Appliance(), and getApplianceState().


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

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