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

AmpsSensor Class Reference

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

Detailed Description

class for dealing with amp sensor data

Definition at line 12 of file AmpsSensor.h.

Public Member Functions

 AmpsSensor (char *senName, int senID)
 constructor for a amp sensor

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

AmpsSensor::AmpsSensor char *  senName,
int  senID
 

constructor for a amp sensor

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


Member Function Documentation

int AmpsSensor::getID  )  [virtual]
 

the id of the sensor

Return values:
the ID of the sensor

Implements Sensor.

char* AmpsSensor::getName  )  [virtual]
 

get the name of the sensor

Return values:
the name of the sensor

Implements Sensor.

Status AmpsSensor::getStatus  )  [virtual]
 

get the status of the sensor

Return values:
current status of the sensor

Implements Sensor.

int AmpsSensor::getValue  )  [virtual]
 

the current value of the sensor

Return values:
the current value of the sensor

Implements Sensor.

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