Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

TempSensor Class Reference

Inheritance diagram for TempSensor:
[legend]
Collaboration diagram for TempSensor:
[legend]
List of all members.

Detailed Description

class for dealing with temperature sensor data

Definition at line 12 of file TempSensor.h.

Public Member Functions

 TempSensor (char *senName, int senID)
 constructor for a temperature sensor

 ~TempSensor ()
 Destructor for a sensor.

Status getStatus ()
 get the status of the sensor

char * getName ()
 get the name of the sensor

int getID ()
 the id of the sensor

int getValue ()
 the current value of the sensor

void setValue (int newVal)
 set the value of the sensor


Constructor & Destructor Documentation

TempSensor::TempSensor char *  senName,
int  senID
 

constructor for a temperature sensor

Parameters:
senName name for the new sensor
senID id of the sensor


Member Function Documentation

int TempSensor::getID  )  [virtual]
 

the id of the sensor

Return values:
the ID of the sensor

Implements Sensor.

char* TempSensor::getName  )  [virtual]
 

get the name of the sensor

Return values:
the name of the sensor

Implements Sensor.

Status TempSensor::getStatus  )  [virtual]
 

get the status of the sensor

Return values:
current status of the sensor

Implements Sensor.

int TempSensor::getValue  )  [virtual]
 

the current value of the sensor

Return values:
the current value of the sensor

Implements Sensor.

void TempSensor::setValue int  newVal  )  [virtual]
 

set the value of the sensor

Parameters:
newVal to set the sensor to

Implements Sensor.


The documentation for this class was generated from the following file:
Generated on Fri Mar 25 23:48:46 2005 for CS498EmbeddedSystemsProgramming by doxygen 1.3.6