/***********************************************************
     Copyright 2003 Rick Miller - Pulp Free Press 
     
     This source code accompanies the text C++ For Artists
     and is provided for instructional purposes only. No 
     warranty concerning the quality of the code is expressed
     or implied.

	 You are free to use this code in your programs so long
	 as this copyright notice is included in its entirety.

**********************************************************/

#include "oxygensensor.h"
#include "engineutils.h"

OxygenSensor::OxygenSensor(PartStatus the_status, short the_engine_number) :
						  Sensor(the_status, the_engine_number), its_reading(0){
    #if MESSAGE_TRACE 
 	  cout<<"OxygetSensor Object Created!"<<endl;
 	 #endif
}

OxygenSensor::~OxygenSensor(){
  #if MESSAGE_TRACE 
 	cout<<"OxygenSensor Object Destroyed!"<<endl;
 #endif

}

char* OxygenSensor::getComponentType(){ return "Oxygen Sensor";}

float OxygenSensor::getReading(){return its_reading;}

void OxygenSensor::setReading(float reading){ its_reading = reading;}

