new EVProfile(objOrCarModel)
A class that represents a profile for an Electric Vehicle (EV).
This class provides properties and methods to manage EV profiles. It extends the EVCarModel
class with additional properties and methods.
Parameters:
PropertiesName | Type | Description |
---|---|---|
objOrCarModel | Module. | If the first argument is an instance of |
Name | Type | Description |
---|---|---|
carModel | gem. | The car model of the EV. |
batteryCapacity | number | The battery capacity of the EV. |
chargeSpeed | number | The charge speed of the EV. |
- Source
Example
```javascript
let evProfile = new gem.routesAndNavigation.EVProfile(gem.routesAndNavigation.EVCarModel, 100, 50);
console.log(evProfile.carModel); // Outputs: EVCarModel
console.log(evProfile.batteryCapacity); // Outputs: 100
console.log(evProfile.chargeSpeed); // Outputs: 50
```