Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

LOW_compTwinSwitch Class Reference

#include <LOW_compTwinSwitch.h>

Inheritance diagram for LOW_compTwinSwitch:

Inheritance graph
[legend]
Collaboration diagram for LOW_compTwinSwitch:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< LOW_compTwinSwitch *> compTwinSwitchPtrVec_t

Public Methods

 class_DERIVE_FROM_EXCEPTION (compTwinSwitch_error, component_error)
 LOW_compTwinSwitch (const LOW_devDS2406 &inPIODevice, actionReceiver &inActionRcv, const bool inDetectShortClicks)
virtual ~LOW_compTwinSwitch ()
virtual void handleAlarm ()
void alarmPollLoop ()
bool getDetectShortClicks ()
const LOW_devDS2406getPioDevice () const

Private Methods

void setAlarmCondition ()
void readStatus (LOW_devDS2406::cmd_ChannelAccess::channelInfo_t &outChannelInfo)
void resetLatches (LOW_devDS2406::cmd_ChannelAccess::channelInfo_t &outChannelInfo)
void doSwitchAction (const unsigned int inSwitchNum, const bool inSensedLevel)

Private Attributes

const LOW_devDS2406pioDevice
actionReceiveractionRcv
const bool detectShortClicks
std::vector< bool > switchStatesVec

Detailed Description

Todo:
Documentation of class.

Author:
Harald Roelle

Definition at line 31 of file LOW_compTwinSwitch.h.


Member Typedef Documentation

typedef std::vector<LOW_compTwinSwitch*> LOW_compTwinSwitch::compTwinSwitchPtrVec_t
 

Definition at line 50 of file LOW_compTwinSwitch.h.


Constructor & Destructor Documentation

LOW_compTwinSwitch::LOW_compTwinSwitch const LOW_devDS2406   inPIODevice,
actionReceiver   inActionRcv,
const bool    inDetectShortClicks
 

Definition at line 29 of file LOW_compTwinSwitch.cpp.

References LOW_netSegment::getHasExternalPower(), LOW_devDS2406::getHasPioB(), LOW_device::getNetSegment(), pioDevice, resetLatches(), setAlarmCondition(), and switchStatesVec.

LOW_compTwinSwitch::~LOW_compTwinSwitch   [virtual]
 

Definition at line 50 of file LOW_compTwinSwitch.cpp.


Member Function Documentation

void LOW_compTwinSwitch::alarmPollLoop  
 

Definition at line 83 of file LOW_compTwinSwitch.cpp.

References pioDevice, and LOW_device::verifyDevice().

LOW_compTwinSwitch::class_DERIVE_FROM_EXCEPTION compTwinSwitch_error   ,
component_error   
 

Reimplemented in LOW_compToggleSwitch.

void LOW_compTwinSwitch::doSwitchAction const unsigned int    inSwitchNum,
const bool    inSensedLevel
[private]
 

Definition at line 162 of file LOW_compTwinSwitch.cpp.

References actionRcv, detectShortClicks, LOW_compTwinSwitch::actionReceiver::shortSwitchAction(), LOW_compTwinSwitch::actionReceiver::switchAction(), and switchStatesVec.

Referenced by handleAlarm().

bool LOW_compTwinSwitch::getDetectShortClicks  
 

Definition at line 89 of file LOW_compTwinSwitch.cpp.

References detectShortClicks.

const LOW_devDS2406 & LOW_compTwinSwitch::getPioDevice   const
 

Definition at line 94 of file LOW_compTwinSwitch.cpp.

References pioDevice.

void LOW_compTwinSwitch::handleAlarm   [virtual]
 

Definition at line 61 of file LOW_compTwinSwitch.cpp.

References LOW_devDS2406::cmd_ChannelAccess::channelInfo_t::activityLatch_pioA, LOW_devDS2406::cmd_ChannelAccess::channelInfo_t::activityLatch_pioB, doSwitchAction(), LOW_devDS2406::getHasPioB(), pioDevice, readStatus(), resetLatches(), LOW_devDS2406::cmd_ChannelAccess::channelInfo_t::sensedLevel_pioA, and LOW_devDS2406::cmd_ChannelAccess::channelInfo_t::sensedLevel_pioB.

void LOW_compTwinSwitch::readStatus LOW_devDS2406::cmd_ChannelAccess::channelInfo_t   outChannelInfo [private]
 

Definition at line 114 of file LOW_compTwinSwitch.cpp.

References LOW_devDS2406::cmd_ChannelAccess::asyncInterleaveMode, LOW_devDS2406::chanBothSelect, LOW_devDS2406::cmd_ChannelAccess, LOW_devDS2406::cmd_ChannelAccess::CRC_disable, LOW_devDS2406::cmd_ChannelAccess::getChannelInfo(), LOW_devDS2406::cmd_ChannelAccess::noResetLatches, LOW_devDS2406::cmd_ChannelAccess::noToggleMode, pioDevice, and LOW_devDS2406::cmd_ChannelAccess::readMode.

Referenced by handleAlarm().

void LOW_compTwinSwitch::resetLatches LOW_devDS2406::cmd_ChannelAccess::channelInfo_t   outChannelInfo [private]
 

Definition at line 128 of file LOW_compTwinSwitch.cpp.

References LOW_devDS2406::cmd_ChannelAccess::asyncInterleaveMode, LOW_devDS2406::chanBothSelect, LOW_devDS2406::cmd_ChannelAccess, LOW_devDS2406::cmd_ChannelAccess::CRC_disable, LOW_devDS2406::cmd_ChannelAccess::getChannelInfo(), LOW_devDS2406::cmd_ChannelAccess::noToggleMode, pioDevice, LOW_devDS2406::cmd_ChannelAccess::readMode, and LOW_devDS2406::cmd_ChannelAccess::resetLatches.

Referenced by handleAlarm(), and LOW_compTwinSwitch().

void LOW_compTwinSwitch::setAlarmCondition   [private]
 

Definition at line 106 of file LOW_compTwinSwitch.cpp.

References LOW_devDS2406::activeHigh, LOW_devDS2406::chanBothSelect, LOW_devDS2406::latchSelect, pioDevice, LOW_devDS2406::pioTransistorOff, and LOW_devDS2406::setSearchCondition().

Referenced by LOW_compTwinSwitch().


Member Data Documentation

actionReceiver& LOW_compTwinSwitch::actionRcv [private]
 

Definition at line 108 of file LOW_compTwinSwitch.h.

Referenced by doSwitchAction().

const bool LOW_compTwinSwitch::detectShortClicks [private]
 

Definition at line 109 of file LOW_compTwinSwitch.h.

Referenced by doSwitchAction(), and getDetectShortClicks().

const LOW_devDS2406& LOW_compTwinSwitch::pioDevice [private]
 

Definition at line 107 of file LOW_compTwinSwitch.h.

Referenced by alarmPollLoop(), getPioDevice(), handleAlarm(), LOW_compTwinSwitch(), readStatus(), resetLatches(), and setAlarmCondition().

std::vector<bool> LOW_compTwinSwitch::switchStatesVec [private]
 

Definition at line 110 of file LOW_compTwinSwitch.h.

Referenced by doSwitchAction(), and LOW_compTwinSwitch().


The documentation for this class was generated from the following files:
Generated on Mon Oct 27 22:56:27 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001