Package org.openwms.tms.routing.routes
Class RouteServiceImpl
java.lang.Object
org.openwms.tms.routing.routes.RouteServiceImpl
- All Implemented Interfaces:
RouteService
A RouteServiceImpl is a transactional Spring managed bean that operated on
Route
s.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final InputContext
private static final org.slf4j.Logger
private final Responder
private final RouteDetailsRepository
private final RouteRepository
-
Constructor Summary
ConstructorDescriptionRouteServiceImpl
(Responder responder, RouteRepository routeRepository, RouteDetailsRepository routeDetailsRepository, InputContext in) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeRoute
(String routeId) Changes the determined route due to error etc.boolean
routeExistsWithLocationId
(@NotBlank String locationId) Checks if aRoute
exists that uses aLocation
with the givenlocationId
.void
Send a RES_ telegram to the next location that is defined in the static Route Details.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
responder
-
routeRepository
-
routeDetailsRepository
-
in
-
-
Constructor Details
-
RouteServiceImpl
RouteServiceImpl(@Autowired(required=false) Responder responder, RouteRepository routeRepository, RouteDetailsRepository routeDetailsRepository, InputContext in)
-
-
Method Details
-
routeExistsWithLocationId
Checks if aRoute
exists that uses aLocation
with the givenlocationId
.- Specified by:
routeExistsWithLocationId
in interfaceRouteService
- Parameters:
locationId
- The location ID to check for.- Returns:
true
if a route exists with the given location ID,false
otherwise.
-
sendToNextLocation
public void sendToNextLocation()Send a RES_ telegram to the next location that is defined in the static Route Details.- Specified by:
sendToNextLocation
in interfaceRouteService
-
changeRoute
Changes the determined route due to error etc.- Specified by:
changeRoute
in interfaceRouteService
- Parameters:
routeId
- The route id
-