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 SummaryFieldsModifier and TypeFieldDescriptionprivate final InputContextprivate static final org.slf4j.Loggerprivate final Responderprivate final RouteDetailsRepositoryprivate final RouteRepository
- 
Constructor SummaryConstructorsConstructorDescriptionRouteServiceImpl(Responder responder, RouteRepository routeRepository, RouteDetailsRepository routeDetailsRepository, InputContext in) 
- 
Method SummaryModifier 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- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
responder
- 
routeRepository
- 
routeDetailsRepository
- 
in
 
- 
- 
Constructor Details- 
RouteServiceImplRouteServiceImpl(@Autowired(required=false) Responder responder, RouteRepository routeRepository, RouteDetailsRepository routeDetailsRepository, InputContext in) 
 
- 
- 
Method Details- 
findByRouteIdFind and return aRouteidentified by its givenrouteId.- Specified by:
- findByRouteIdin interface- RouteService
- Parameters:
- routeId- The route id
- Returns:
- The instance (optional)
 
- 
routeExistsWithLocationIdChecks if aRouteexists that uses aLocationwith the givenlocationId.- Specified by:
- routeExistsWithLocationIdin interface- RouteService
- Parameters:
- locationId- The location ID to check for.
- Returns:
- trueif a route exists with the given location ID,- falseotherwise.
 
- 
sendToNextLocationpublic void sendToNextLocation()Send a RES_ telegram to the next location that is defined in the static Route Details.- Specified by:
- sendToNextLocationin interface- RouteService
 
- 
changeRouteChanges the determined route due to error etc.- Specified by:
- changeRoutein interface- RouteService
- Parameters:
- routeId- The route id
 
 
-