HardwareDelegate

public class HardwareDelegate<T extends Object, Device extends Object> extends CommandOpMode.InitializerDelegate<T>

Constructors

Link copied to clipboard
public CommandOpMode.HardwareDelegate<T, Device> CommandOpMode.HardwareDelegate<T extends Any, Device extends Any>(KClass<Device> deviceType, String deviceName, Function1<Device, T> map)

Properties

Link copied to clipboard
private final String deviceName
Link copied to clipboard
private final KClass<Device> deviceType

Functions

Link copied to clipboard
protected T fallback()
Link copied to clipboard
public final String getDeviceName()
Link copied to clipboard
public final KClass<Device> getDeviceType()
Link copied to clipboard
public final CommandOpMode.HardwareDelegate<T, Device> init(Function1<Device, Unit> init)
Link copied to clipboard
public final CommandOpMode.HardwareDelegate<R, Device> map<R extends Any>(Function1<Device, R> newMap)