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

VoltSensor Class Reference

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

Detailed Description

class for dealing with voltage sensor data

Definition at line 12 of file VoltSensor.h.

Public Member Functions

 VoltSensor (char *senName, int senID)
 constructor for a voltage sensor

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

VoltSensor::VoltSensor char *  senName,
int  senID
 

constructor for a voltage sensor

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


Member Function Documentation

int VoltSensor::getID  )  [virtual]
 

the id of the sensor

Return values:
the ID of the sensor

Implements Sensor.

char* VoltSensor::getName  )  [virtual]
 

get the name of the sensor

Return values:
the name of the sensor

Implements Sensor.

Status VoltSensor::getStatus  )  [virtual]
 

get the status of the sensor

Return values:
current status of the sensor

Implements Sensor.

int VoltSensor::getValue  )  [virtual]
 

the current value of the sensor

Return values:
the current value of the sensor

Implements Sensor.

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