User Manual, Developers Guide and API Documentation

glue::Pilot Class Reference

#include <Pilot.hpp>

Inheritance diagram for glue::Pilot:

Inheritance graph
[legend]
Collaboration diagram for glue::Pilot:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void attach (Observer *observer)
void detach (Observer *observer)
void disable ()
void enable ()
 Pilot (wns::ldk::fun::FUN *fun, wns::pyconfig::View &config)
void sendBeacon ()
virtual ~Pilot ()

Private Types

typedef std::list< Observer * > ObserverList

Private Member Functions

Observer::Information createObserverInformation (const wns::ldk::CompoundPtr &compound)
virtual bool doIsAccepting (const wns::ldk::CompoundPtr &compound) const
virtual void doOnData (const wns::ldk::CompoundPtr &compound)
virtual void doSendData (const wns::ldk::CompoundPtr &compound)
virtual void doWakeup ()
void notifyObservers (const Observer::Information &info)
virtual void periodically ()
 Your callback. Implement this!

Private Attributes

bool delayedSend
bool enabled
wns::logger::Logger logger
ObserverList observers
double timeout

Classes

class  Observer


Detailed Description

Definition at line 30 of file Pilot.hpp.


Member Typedef Documentation

typedef std::list<Observer*> glue::Pilot::ObserverList [private]

Definition at line 98 of file Pilot.hpp.


Constructor & Destructor Documentation

Pilot::Pilot ( wns::ldk::fun::FUN fun,
wns::pyconfig::View config 
)

Definition at line 21 of file Pilot.cpp.

Pilot::~Pilot (  )  [virtual]

Definition at line 32 of file Pilot.cpp.


Member Function Documentation

void Pilot::attach ( Observer observer  ) 

Definition at line 51 of file Pilot.cpp.

Pilot::Observer::Information Pilot::createObserverInformation ( const wns::ldk::CompoundPtr compound  )  [private]

Definition at line 122 of file Pilot.cpp.

void Pilot::detach ( Observer observer  ) 

Definition at line 57 of file Pilot.cpp.

void Pilot::disable (  ) 

Definition at line 44 of file Pilot.cpp.

bool Pilot::doIsAccepting ( const wns::ldk::CompoundPtr compound  )  const [private, virtual]

Definition at line 88 of file Pilot.cpp.

void Pilot::doOnData ( const wns::ldk::CompoundPtr compound  )  [private, virtual]

Definition at line 106 of file Pilot.cpp.

void Pilot::doSendData ( const wns::ldk::CompoundPtr compound  )  [private, virtual]

Definition at line 94 of file Pilot.cpp.

void Pilot::doWakeup (  )  [private, virtual]

Definition at line 100 of file Pilot.cpp.

void Pilot::enable (  ) 

Definition at line 37 of file Pilot.cpp.

void Pilot::notifyObservers ( const Observer::Information info  )  [private]

Definition at line 129 of file Pilot.cpp.

void Pilot::periodically (  )  [private, virtual]

The deriver is forced to implement this method. It gets called periodically, whenever the timer fires.

Implements wns::events::PeriodicTimeout.

Definition at line 116 of file Pilot.cpp.

void Pilot::sendBeacon (  ) 

Definition at line 63 of file Pilot.cpp.


Member Data Documentation

Definition at line 103 of file Pilot.hpp.

Definition at line 100 of file Pilot.hpp.

Definition at line 104 of file Pilot.hpp.

Definition at line 102 of file Pilot.hpp.

Definition at line 101 of file Pilot.hpp.


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

Generated on Sat May 26 03:32:30 2012 for openWNS by  doxygen 1.5.5