Package org.openpnp.spi

Examples of org.openpnp.spi.Feeder


    while ((solutions = jobPlanner.getNextPlacementSolutions(head)) != null) {
        LinkedHashMap<PlacementSolution, Location> placementSolutionLocations = new LinkedHashMap<PlacementSolution, Location>();
        for (PlacementSolution solution : solutions) {
                BoardLocation bl = solution.boardLocation;
                Part part = solution.placement.getPart();
                Feeder feeder = solution.feeder;
                Placement placement = solution.placement;
                Nozzle nozzle = solution.nozzle;
                NozzleTip nozzleTip = solution.nozzleTip;
               
                firePartProcessingStarted(solution.boardLocation, solution.placement);
View Full Code Here


        Set<PlacementSolution> solutions;
        while ((solutions = jobPlanner.getNextPlacementSolutions(head)) != null) {
            for (PlacementSolution solution : solutions) {
                BoardLocation bl = solution.boardLocation;
                Part part = solution.placement.getPart();
                Feeder feeder = solution.feeder;
                Placement placement = solution.placement;
                Nozzle nozzle = solution.nozzle;
                NozzleTip nozzleTip = solution.nozzleTip;
     
                if (nozzle == null) {
View Full Code Here

                break;
            }
            PlacementSolution solution = i.next();
            i.remove();
            // Feeder can be null if no applicable Feeder was found.
            Feeder feeder = getFeederSolution(Configuration.get().getMachine(), nozzle, solution.placement.getPart());
            // NozzleTip can be null if no applicable NozzleTip was found.
            NozzleTip nozzleTip = getNozzleTipSolution(Configuration.get().getMachine(), nozzle, solution.placement.getPart(), feeder);
            solution = new PlacementSolution(solution.placement, solution.boardLocation, solution.head, nozzle, nozzleTip, feeder);
            results.add(solution);
        }
View Full Code Here

        }
        if (feeders.size() < 1) {
            return null;
        }
        // For now we just take the first Feeder that can feed the part.
        Feeder feeder = feeders.get(0);
        return feeder;
    }
View Full Code Here

      while ((solutions = jobPlanner.getNextPlacementSolutions(head)) != null) {
          for (PlacementSolution solution : solutions) {
         
          BoardLocation bl = solution.boardLocation;
          Part part = solution.placement.getPart();
          Feeder feeder = solution.feeder;
          Placement placement = solution.placement;
          Nozzle nozzle = solution.nozzle;
          NozzleTip nozzletip = solution.nozzleTip;

          if (nozzle == null) {
View Full Code Here

        for (PlacementSolution solution : solutions) {
        firePartProcessingStarted(solution.boardLocation, solution.placement);
       
        BoardLocation bl = solution.boardLocation;
        Part part = solution.placement.getPart();
        Feeder feeder = solution.feeder;
        Placement placement = solution.placement;
        Nozzle nozzle = solution.nozzle;
        NozzleTip nozzleTip = solution.nozzleTip;

        // Determine where we will place the part
View Full Code Here

          public void valueChanged(ListSelectionEvent e) {
            if (e.getValueIsAdjusting()) {
              return;
            }

            Feeder feeder = getSelectedFeeder();

            feederSelectedActionGroup.setEnabled(feeder != null);

            configurationPanel.removeAll();
            if (feeder != null) {
              Wizard wizard = feeder.getConfigurationWizard();
              if (wizard != null) {
                wizard.setWizardContainer(FeedersPanel.this);
                JPanel panel = wizard.getWizardPanel();
                configurationPanel.add(panel);
              }
View Full Code Here

  }
 
  @Override
  public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
    try {
      Feeder feeder = feeders.get(rowIndex);
      if (columnIndex == 2) {
        feeder.setEnabled((Boolean) aValue);
      }
      configuration.setDirty(true);
    }
    catch (Exception e) {
      // TODO: dialog, bad input
View Full Code Here

TOP

Related Classes of org.openpnp.spi.Feeder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.