Class RouteServiceImpl
java.lang.Object
org.openwms.tms.routing.routes.impl.RouteServiceImpl
- All Implemented Interfaces:
RouteService
A RouteServiceImpl is a transactional Spring managed bean that operated on
Routes.- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputContextprivate static final org.slf4j.Loggerprivate final Responderprivate final RouteDetailsRepositoryprivate final RouteRepository -
Constructor Summary
ConstructorsConstructorDescriptionRouteServiceImpl(Responder responder, RouteRepository routeRepository, RouteDetailsRepository routeDetailsRepository, InputContext in) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeRoute(String routeId) Changes the determined route due to error etc.findByRouteId(@NotBlank String routeId) Find and return aRouteidentified by its givenrouteId.booleanrouteExistsWithLocationId(@NotBlank String locationId) Checks if aRouteexists that uses aLocationwith the givenlocationId.voidSend 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
-
findByRouteId
Find and return aRouteidentified by its givenrouteId.- Specified by:
findByRouteIdin interfaceRouteService- Parameters:
routeId- The route id- Returns:
- The instance (optional)
-
routeExistsWithLocationId
Checks if aRouteexists that uses aLocationwith the givenlocationId.- Specified by:
routeExistsWithLocationIdin interfaceRouteService- Parameters:
locationId- The location ID to check for.- Returns:
trueif a route exists with the given location ID,falseotherwise.
-
sendToNextLocation
public void sendToNextLocation()Send a RES_ telegram to the next location that is defined in the static Route Details.- Specified by:
sendToNextLocationin interfaceRouteService
-
changeRoute
Changes the determined route due to error etc.- Specified by:
changeRoutein interfaceRouteService- Parameters:
routeId- The route id
-