Interface DifferentialMechanism.DeviceConstructor<DeviceT>

Type Parameters:
DeviceT - Type of the device to construct
Enclosing class:
DifferentialMechanism<MotorT extends CommonTalon>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DifferentialMechanism.DeviceConstructor<DeviceT>
Functional interface for device constructors.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int id, CANBus canbus)
    Constructs the device.
  • Method Details

    • create

      DeviceT create(int id, CANBus canbus)
      Constructs the device.
      Parameters:
      id - Device ID
      canbus - Device CAN bus
      Returns:
      New device instance