Contents

init(timestamp:measurement:session:device:)

Creates an electric vehicle load event.

Declaration

init(timestamp: Date, measurement: ElectricVehicleLoadEvent.ElectricalMeasurement, session: ElectricVehicleLoadEvent.Session, device: ElectricalLoadDevice)

Parameters

  • timestamp:

    The time when the event occurs.

  • measurement:

    The electricity consumption or generation of the device.

  • session:

    The session information.

  • device:

    The identifier of the Electricalloaddevice instance.

Discussion