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

PowSensor Class Reference

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

Detailed Description

class for dealing with the power setting on a motor sensor data

Definition at line 12 of file PowSensor.h.

Public Member Functions

 PowSensor (char *senName, int senID)
 constructor for a power sensor

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

PowSensor::PowSensor char *  senName,
int  senID
 

constructor for a power sensor

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


Member Function Documentation

int PowSensor::getID  )  [virtual]
 

the id of the sensor

Return values:
the ID of the sensor

Implements Sensor.

char* PowSensor::getName  )  [virtual]
 

get the name of the sensor

Return values:
the name of the sensor

Implements Sensor.

Status PowSensor::getStatus  )  [virtual]
 

get the status of the sensor

Return values:
current status of the sensor

Implements Sensor.

int PowSensor::getValue  )  [virtual]
 

the current value of the sensor

Return values:
the current value of the sensor

Implements Sensor.

void PowSensor::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