gem.routesAndNavigation. EVCarModel

new EVCarModel(obj)

A class that represents a model of an Electric Vehicle (EV).

This class provides properties and methods to manage EV car models.

Parameters:
NameTypeDescription
objModule.EVCarModel | object

If the argument is an instance of Module.EVCarModel, it will be used to initialize the object. Otherwise, a new Module.EVCarModel object will be created.

Properties
NameTypeDescription
idnumber

The ID of the EV car model.

namestring

The name of the EV car model.

batteryCapacitynumber

The battery capacity of the EV car model.

towbarPossibleboolean

Indicates whether the EV car model can have a towbar.

portsArray

The ports of the EV car model.

vehicleRangenumber

The range of the EV car model.

efficiencynumber

The efficiency of the EV car model.

fastChargeboolean

Indicates whether the EV car model supports fast charging.

Example
```javascript
let evCarModel = new gem.routesAndNavigation.EVCarModel({id: 1, name: 'Model S', batteryCapacity: 100, towbarPossible: true, ports: [], vehicleRange: 500, efficiency: 0.85, fastCharge: true});
console.log(evCarModel.name); // Outputs: Model S
console.log(evCarModel.batteryCapacity); // Outputs: 100
console.log(evCarModel.towbarPossible); // Outputs: true
console.log(evCarModel.vehicleRange); // Outputs: 500
console.log(evCarModel.efficiency); // Outputs: 0.85
console.log(evCarModel.fastCharge); // Outputs: true
```

Extends

Methods

delete()

calls emscripten object destructor

Inherited From

getRawPointer() → {object}

Returns emscripten object

Returns:
Type: 
object

isDeleted() → {boolean}

Check if emscripten object has been deleted

Inherited From
Returns:
Type: 
boolean