Interface RouteService

All Known Implementing Classes:
RouteServiceMain

public interface RouteService
  • Method Details

    • create

      RouteDTO create(RouteDTO routeDTO)
      Creates a new route configuration.
      Parameters:
      routeDTO - the route configuration to be created (id must be null)
      Returns:
      the created RouteDTO
    • update

      RouteDTO update(Long id, RouteDTO routeDTO)
      Updates an existing route configuration.
      Parameters:
      id - the unique identifier of the route to update
      routeDTO - the route configuration with updated data
      Returns:
      the updated RouteDTO
    • findAll

      List<RouteDTO> findAll()
      Retrieves all route configurations.
      Returns:
      a list of RouteDTO representing all route configurations
    • findById

      RouteDTO findById(Long id)
      Finds a route configuration by its unique identifier.
      Parameters:
      id - the unique identifier of the route configuration
      Returns:
      the RouteDTO corresponding to the provided id
    • getRouteMetrics

      RouteMetricsDTO getRouteMetrics(Long routeId)