Class ReferencePnpJobProcessor.AbstractOptimizationNozzlesStep

    • Constructor Detail

    • Method Detail

      • optimizePlacements

        protected java.util.List<PnpJobPlanner.PlannedPlacement> optimizePlacements​(ReferencePnpJobProcessor.Locator sortLocator,
                                                                                    ReferencePnpJobProcessor.Locator endLocator)
        Sort the list of planned placements for better performance this is done by first collecting the locations where the head will move to when executing this step and then using a traveling salesman to optimize the list.
        Parameters:
        sortLocator - An interface that shall return the location of a PlannedPlacement used to optimize for
        endLocator - An interface that shall return the location of a PlannedPlacement to be considered the end location. The center between all this end location of all PlannedPlacements will be used as endLocation for the optimization.
        Returns: