fsf::CPulsar Class Reference

The Pulsar class A Pulsar is a special cell type that spontaneously generates empty pulses at regular time intervals. More...

#include <FsfPulsar.h>

Inherits fsf::CCell.

Collaboration diagram for fsf::CPulsar:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Creators
 CPulsar ()
 0-parameter constructor
virtual ~CPulsar ()
 Destructor.
Accessors
virtual void getTypeID (std::string &str)
 Returns the pulsar's factory mapping key.
Manipulators
virtual bool switchCell (bool bOn)
 Switches this pulsar on or off.
void pulse ()
 Creates an empty pulse and sends it to this pulsar's downstream cells.

Protected Attributes

pthread_t m_thread
 pulsar thread

Pulsar thread

void startPulsarThread ()
 Interface function for thread triggering.
static void * pulsarThreadProc (void *pParam)
 Calls pulse at regular time intervals.


Detailed Description

The Pulsar class A Pulsar is a special cell type that spontaneously generates empty pulses at regular time intervals.


Constructor & Destructor Documentation

CPulsar::CPulsar (  ) 

0-parameter constructor

CPulsar::~CPulsar (  )  [virtual]

Destructor.


Member Function Documentation

virtual void fsf::CPulsar::getTypeID ( std::string &  str  )  [inline, virtual]

Returns the pulsar's factory mapping key.

void * CPulsar::pulsarThreadProc ( void *  pParam  )  [static]

Calls pulse at regular time intervals.

void CPulsar::pulse (  ) 

Creates an empty pulse and sends it to this pulsar's downstream cells.

void CPulsar::startPulsarThread (  ) 

Interface function for thread triggering.

Starts a new thread whose entry point is pulsarThreadProc

bool CPulsar::switchCell ( bool  bOn  )  [virtual]

Switches this pulsar on or off.

Reimplemented from fsf::CCell.


Member Data Documentation

pthread_t fsf::CPulsar::m_thread [protected]

pulsar thread


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

Generated on Thu Oct 21 11:47:37 2010 for MFSM by  doxygen 1.5.9