All Downloads are FREE. Search and download functionalities are using the official Maven repository.

library.EcuAdditionalVamData.kt Maven / Gradle / Ivy

Go to download

This is a kotlin based domain specific language (dsl), to quickly and intuitively write custom DoIP ECU simulations.

There is a newer version: 0.15.1
Show newest version
package library

data class EcuAdditionalVamData(
    val eid: EID,
    val gid: GID? = null,
    val vin: VIN? = null,
) {
    fun toVam(ecuConfig: EcuConfig, entityConfig: DoipEntityConfig): DoipUdpVehicleAnnouncementMessage =
        DoipUdpVehicleAnnouncementMessage(
            eid = this.eid,
            gid = this.gid ?: entityConfig.gid,
            vin = this.vin ?: entityConfig.vin,
            logicalAddress = ecuConfig.physicalAddress,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy