forMotor

fun <T : Any> forMotor(motorClass: KClass<out T>): MotorCompatibility

Factory method to retrieve the appropriate MotorCompatibility implementation for a given motor class.

Return

The MotorCompatibility implementation for the motor class.

Parameters

motorClass

The class of the motor.

Throws

If the motor class is unsupported.