Wiselib
Public Member Functions | Protected Member Functions
Sensor Class Reference

#include <_old_Sensor.h>

List of all members.

Public Member Functions

 Sensor ()
virtual ~Sensor ()
virtual error_code_t initialize (Timer::self_pointer_t timer, Radio::self_pointer_t radio, MessageQueue *mqueue, Os::Debug::self_pointer_t debug, Os::Clock::self_pointer_t clock, NeighborDiscovery &neighbor_discovery)
virtual error_code_t handle (TopologyMessage *msg)
nodeid_t cluster_head ()
nodeid_t parent ()
uint8_t hops ()
nodeid_t cluster_id ()

Protected Member Functions

void doWork (void *)
void doBlink (void *)
void scheduleWorkCallback ()
void scheduleBlinkCallback ()
bool shouldAccept (Message *)
uint8_t distanceToNode (nodeid_t node)
void resetTopology ()
bool shouldAssumeLeadership (const topology_record_t &)
error_code_t handleAllMessages ()
nodeid_t findLeader ()
error_code_t broadcastTopology ()

Constructor & Destructor Documentation

Sensor::Sensor ( )
Sensor::~Sensor ( ) [virtual]

Member Function Documentation

error_code_t Sensor::broadcastTopology ( ) [protected]
nodeid_t Sensor::cluster_head ( )
nodeid_t Sensor::cluster_id ( )
uint8_t Sensor::distanceToNode ( nodeid_t  node) [protected]
void Sensor::doBlink ( void *  ) [protected]

TODO turn the LED on/off according to _led_state.

void Sensor::doWork ( void *  ) [protected]
nodeid_t Sensor::findLeader ( ) [protected]
error_code_t Sensor::handle ( TopologyMessage *  msg) [virtual]
error_code_t Sensor::handleAllMessages ( ) [protected]
uint8_t Sensor::hops ( )
error_code_t Sensor::initialize ( Timer::self_pointer_t  timer,
Radio::self_pointer_t  radio,
MessageQueue *  mqueue,
Os::Debug::self_pointer_t  debug,
Os::Clock::self_pointer_t  clock,
NeighborDiscovery neighbor_discovery 
) [virtual]
nodeid_t Sensor::parent ( )
void Sensor::resetTopology ( ) [protected]
void Sensor::scheduleBlinkCallback ( ) [protected]
void Sensor::scheduleWorkCallback ( ) [protected]
bool Sensor::shouldAccept ( Message msg) [protected]
bool Sensor::shouldAssumeLeadership ( const topology_record_t record) [protected]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines