NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
battery.h File Reference

This file declares the Battery class. More...

#include <iostream>

Go to the source code of this file.

Classes

class  Battery
 

Detailed Description

This file declares the Battery class.

The Battery class represents a battery used in a train or locomotive. It stores information about the battery's capacity, charge level, state of charge, discharge rate, recharge rate, depth of discharge, and other properties. The Battery class provides methods for setting and retrieving battery properties, consuming and recharging the battery, and checking battery status. The Battery class is intended to be used in a train simulation system. Note: The implementation of the class is not provided in this declaration file. It should be implemented separately in a corresponding source file.

Author
Ahmed Aredah
Date
3/20/2023