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

BattSensor Class Reference

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

Detailed Description

class for dealing with battery sensor data

Definition at line 12 of file BattSensor.h.

Public Member Functions

 BattSensor (char *senName, int senID)
 constructor for a battery sensor

 ~BattSensor ()
 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

BattSensor::BattSensor char *  senName,
int  senID
 

constructor for a battery sensor

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


Member Function Documentation

int BattSensor::getID  )  [virtual]
 

the id of the sensor

Return values:
the ID of the sensor

Implements Sensor.

char* BattSensor::getName  )  [virtual]
 

get the name of the sensor

Return values:
the name of the sensor

Implements Sensor.

Status BattSensor::getStatus  )  [virtual]
 

get the status of the sensor

Return values:
current status of the sensor

Implements Sensor.

int BattSensor::getValue  )  [virtual]
 

the current value of the sensor

Return values:
the current value of the sensor

Implements Sensor.

void BattSensor::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:45 2005 for CS498EmbeddedSystemsProgramming by doxygen 1.3.6