Class RouteChangedEventPublisher


  • @Component
    class RouteChangedEventPublisher
    extends Object
    Converts planning solution to a RouteChangedEvent and publishes it so that it can be processed by other components that listen for this type of event.
    • Constructor Detail

      • RouteChangedEventPublisher

        @Autowired
        RouteChangedEventPublisher​(org.springframework.context.ApplicationEventPublisher eventPublisher)
    • Method Detail

      • solutionToEvent

        static RouteChangedEvent solutionToEvent​(VehicleRoutingSolution solution,
                                                 Object source)
        Convert a planning domain solution to an event that can be published.
        Parameters:
        solution - solution
        source - source of the event
        Returns:
        new event describing the solution