Sensix
Wireless Sensor Network Middleware



   Home


   Project Page


   Download


   CVS




 Hosted by
Get SENSIX at SourceForge.net. Fast, secure 
and Free Open Source software downloads

Phenomenon Class Reference

#include <sim_phenomena.h>

Inheritance diagram for Phenomenon:

Accel AmbientPhenomenon Light Mag Rad Sound AmbientLight AmbientRad AmbientSound AmbientTemp

List of all members.

Public Member Functions

 Phenomenon (Phenom t=NONE, std::string s=phenoms[NONE], std::string c="white", bool amb=false, bool glob=false)
virtual ~Phenomenon ()
bool isGlobal ()
const char * toString (bool cfg=false)
Phenom getType ()
unsigned short getRate ()
void setRate (unsigned short rate)
const char * getColor ()
bool isAmbient ()
virtual double fadeRate (double dist)
virtual double fadeDistance (double strength)
virtual void toOutput (FILE *stream, unsigned long long time, unsigned short node, unsigned short strength, int x1, int y1, int x2, int y2)

Static Public Member Functions

static PhenomenonPhenomenonFactory (Phenom t)

Protected Attributes

const Phenom _type
const std::string _string
const std::string _color
const bool _ambient
unsigned short _sample_rate
bool _global
int style


Detailed Description

Definition at line 113 of file sim_phenomena.h.


Constructor & Destructor Documentation

Phenomenon::Phenomenon ( Phenom  t = NONE,
std::string  s = phenoms[NONE],
std::string  c = "white",
bool  amb = false,
bool  glob = false 
)

Definition at line 116 of file sim_adc.cpp.

virtual Phenomenon::~Phenomenon (  )  [virtual]

Definition at line 126 of file sim_phenomena.h.


Member Function Documentation

bool Phenomenon::isGlobal (  ) 

Definition at line 127 of file sim_phenomena.h.

const char * Phenomenon::toString ( bool  cfg = false  ) 

Definition at line 119 of file sim_adc.cpp.

Phenom Phenomenon::getType (  ) 

Definition at line 129 of file sim_phenomena.h.

unsigned short Phenomenon::getRate (  ) 

Definition at line 130 of file sim_phenomena.h.

void Phenomenon::setRate ( unsigned short  rate  ) 

Definition at line 131 of file sim_phenomena.h.

const char* Phenomenon::getColor (  ) 

Definition at line 132 of file sim_phenomena.h.

bool Phenomenon::isAmbient (  ) 

Definition at line 133 of file sim_phenomena.h.

virtual double Phenomenon::fadeRate ( double  dist  )  [virtual]

Reimplemented in Sound, Accel, and AmbientPhenomenon.

Definition at line 134 of file sim_phenomena.h.

virtual double Phenomenon::fadeDistance ( double  strength  )  [virtual]

Reimplemented in Sound, Accel, and AmbientPhenomenon.

Definition at line 137 of file sim_phenomena.h.

void Phenomenon::toOutput ( FILE *  stream,
unsigned long long  time,
unsigned short  node,
unsigned short  strength,
int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]

Reimplemented in Accel, and Mag.

Definition at line 139 of file sim_adc.cpp.

Phenomenon * Phenomenon::PhenomenonFactory ( Phenom  t  )  [static]

Definition at line 247 of file sim_adc.cpp.


Member Data Documentation

const Phenom Phenomenon::_type [protected]

Definition at line 115 of file sim_phenomena.h.

const std::string Phenomenon::_string [protected]

Definition at line 116 of file sim_phenomena.h.

const std::string Phenomenon::_color [protected]

Definition at line 117 of file sim_phenomena.h.

const bool Phenomenon::_ambient [protected]

Definition at line 118 of file sim_phenomena.h.

unsigned short Phenomenon::_sample_rate [protected]

Definition at line 119 of file sim_phenomena.h.

bool Phenomenon::_global [protected]

Definition at line 120 of file sim_phenomena.h.

int Phenomenon::style [protected]

Definition at line 121 of file sim_phenomena.h.


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


© 2008, Los Alamos National Security, LLC.