/// <summary> /// Gets a value indicating whether the detector detects the <paramref name="vehicle" />. /// </summary> /// <param name="vehicle">The vehicle that should be checked.</param> public override bool DetectsVehicle(Vehicle vehicle) => vehicle.Kind == VehicleKind.OverheightVehicle && vehicle.Lane == _lane && vehicle.IsAtPosition(_position);
/// <summary> /// Gets a value indicating whether the detector detects the <paramref name="vehicle" />. /// </summary> /// <param name="vehicle">The vehicle that should be checked.</param> public override bool DetectsVehicle(Vehicle vehicle) => vehicle.Kind != VehicleKind.PassengerCar && vehicle.Lane == _lane && vehicle.IsAtPosition(_position);