public class RouteChangedEvent
extends org.springframework.context.ApplicationEvent
source| Constructor and Description |
|---|
RouteChangedEvent(Object source,
Distance distance,
List<Long> vehicleIds,
Long depotId,
List<Long> visitIds,
Collection<ShallowRoute> routes)
Create a new ApplicationEvent.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
depotId()
The depot ID.
|
Distance |
distance()
Routing plan distance.
|
Collection<ShallowRoute> |
routes()
Routes of all vehicles.
|
List<Long> |
vehicleIds()
IDs of all vehicles.
|
List<Long> |
visitIds() |
getSource, toStringpublic RouteChangedEvent(Object source, Distance distance, List<Long> vehicleIds, Long depotId, List<Long> visitIds, Collection<ShallowRoute> routes)
source - the object on which the event initially occurred (never null)distance - total distance of all vehicle routesvehicleIds - vehicle IDsdepotId - depot ID (may be null if there are no locations)visitIds - IDs of visitsroutes - vehicle routespublic Collection<ShallowRoute> routes()
public Distance distance()
null)Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.