1 package se.citerus.dddsample.domain.service; 2 3 import se.citerus.dddsample.domain.model.cargo.Itinerary; 4 import se.citerus.dddsample.domain.model.cargo.RouteSpecification; 5 6 import java.util.List; 7 8 /** 9 * Routing service. 10 * 11 */ 12 public interface RoutingService { 13 14 /** 15 * @param routeSpecification route specification 16 * @return A list of itineraries that satisfy the specification. May be an empty list if no route is found. 17 */ 18 List<Itinerary> fetchRoutesForSpecification(RouteSpecification routeSpecification); 19 20 }