in source/simulator/lib/device/generators/vehicle/generator.js [15:27]
constructor(options) {
this.options = options;
this.VIN = options.staticValues?.VIN || this._createVIN();
this.tripId = options.staticValues?.tripId || nanoid();
let dynamicsModelParams = {}
dynamicsModelParams.snapshot = options.currentState || {};
this.dynamicsModel = new DynamicsModel(dynamicsModelParams);
this.isRunning = true;
this.messages = [];
this.lastCalc = moment();
this.currentState = options.currentState || {};
this.staticValues = options.staticValues || { VIN: this.VIN, tripId: this.tripId };
}