Package org.openpnp.machine.reference
Class ReferencePnpJobProcessor.AbstractOptimizationNozzlesStep
- java.lang.Object
-
- org.openpnp.machine.reference.ReferencePnpJobProcessor.AbstractOptimizationNozzlesStep
-
- Direct Known Subclasses:
ReferencePnpJobProcessor.OptimizeNozzlesForAlign
,ReferencePnpJobProcessor.OptimizeNozzlesForPick
,ReferencePnpJobProcessor.OptimizeNozzlesForPlace
- Enclosing class:
- ReferencePnpJobProcessor
protected abstract class ReferencePnpJobProcessor.AbstractOptimizationNozzlesStep extends java.lang.Object
This class groups a step for step for multi-nozzle optimization
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOptimizationNozzlesStep(java.util.List<PnpJobPlanner.PlannedPlacement> plannedPlacements)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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.org.openpnp.machine.reference.ReferencePnpJobProcessor.Step
step()
-
-
-
Constructor Detail
-
AbstractOptimizationNozzlesStep
protected AbstractOptimizationNozzlesStep(java.util.List<PnpJobPlanner.PlannedPlacement> plannedPlacements)
-
-
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 forendLocator
- 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:
-
step
public abstract org.openpnp.machine.reference.ReferencePnpJobProcessor.Step step() throws JobProcessor.JobProcessorException
-
-