21 lines
465 B
C++
Raw Normal View History

2016-02-18 16:14:44 -06:00
/******************************************
PURPOSE: (DCBattery)
*******************************************/
#ifndef DCBattery_H
#define DCBattery_H
class DCBattery
{
public:
DCBattery(double initialIdealVoltage, double initialInternalResistance);
void update ();
double getActualVoltage();
void setCurrent(double current);
private:
double idealVoltage;
double internalResistance;
double actualVoltage;
double current;
};
#endif