Schnittstelle VehicleCommAdapterFactory

Alle Superschnittstellen:
Lifecycle

public interface VehicleCommAdapterFactory extends Lifecycle
Provides communication adapter instances for vehicles to be controlled.
  • Methodendetails

    • getDescription

      Returns a VehicleCommAdapterDescription for the factory/the adapters provided.
      Gibt zurück:
      A VehicleCommAdapterDescription for the factory/the adapters provided.
    • providesAdapterFor

      boolean providesAdapterFor(@Nonnull Vehicle vehicle)
      Checks whether this factory can provide a communication adapter for the given vehicle.
      Parameter:
      vehicle - The vehicle to check for.
      Gibt zurück:
      true if, and only if, this factory can provide a communication adapter to control the given vehicle.
    • getAdapterFor

      @Nullable VehicleCommAdapter getAdapterFor(@Nonnull Vehicle vehicle)
      Returns a communication adapter for controlling the given vehicle.
      Parameter:
      vehicle - The vehicle to be controlled.
      Gibt zurück:
      A communication adapter for controlling the given vehicle, or null, if this factory cannot provide an adapter for it.