Examples of HolderList


Examples of mbj.robotdriver.holder.HolderList

   * @return the new holderNumber and currentPosition to now what is used in the holderList
   * @throws RobotDriverException if not have enough space in input Holders
   */
  public IntPair setHolders(IngredientList compatibleIngredientList, IntPair holderAndPos, HolderList holderList) throws RobotDriverException {
    // give to each used ingredient a Holder and a position in Holder
    HolderList inputHolderList = holderList.getInputHolders();
    int holderNumber = holderAndPos.first;
    Holder inputHolder = inputHolderList.get(holderNumber);
    int maxPosition = inputHolder.xSize() * inputHolder.ySize(); // to handle position in holder
    int currentPosition = holderAndPos.second; // to handle position in holder
    for (Ingredient aIngredient : compatibleIngredientList) {
      if (aIngredient.chemical().pipettingInfo().holder().name().equals("FREE")) {
        if (currentPosition <= maxPosition) {
          aIngredient.chemical().pipettingInfo().setHolder(inputHolder);
          aIngredient.chemical().pipettingInfo().setPositionInHolder(String.valueOf(currentPosition));
          currentPosition += 1;
        } else {
          holderNumber += 1;
          // display error if not enough inputHolders
          if (holderNumber >= inputHolderList.size()) {
            throw new RobotDriverException("You do not have enough space in your input Holders!\n  - You must Cancel and add input Holders to make this screen.\n");
          }
          inputHolder = inputHolderList.get(holderNumber);
          maxPosition = inputHolder.xSize() * inputHolder.ySize();
          currentPosition = 1;
          aIngredient.chemical().pipettingInfo().setHolder(inputHolder);
          aIngredient.chemical().pipettingInfo().setPositionInHolder(String.valueOf(currentPosition));
          currentPosition += 1;
View Full Code Here

Examples of mbj.robotdriver.holder.HolderList

    // the first line
      JPanel targetHolderChoicePanel = new JPanel();
      JLabel numberOfWellsLabel = new JLabel("This Plate contains " + String.valueOf(parentRobotDriver.thePlate().numberOfWells()) + " wells. Choose The Target Holder:");
      targetHolderChoicePanel.add(numberOfWellsLabel);
      // choice of the TargetHolder
      HolderList targetTecanHolders = parentRobotDriver.tecanHolders().getNonInputHoldersOfSize(parentRobotDriver.thePlate().numberOfWells());
      JComboBox targetHolderCB = new JComboBox(targetTecanHolders.toArray());
      targetHolderCB.setSelectedIndex(0);
      parentRobotDriver.thePlate().setTargetHolder(targetTecanHolders.get(0));
      targetHolderCB.addActionListener(
        new AbstractAction() {
          private static final long serialVersionUID = 1L;
          public void actionPerformed(ActionEvent event) {
            JComboBox cb = (JComboBox) event.getSource();
View Full Code Here

Examples of nexj.core.util.HolderList

         return;
      }

      int nBaseCount = base.m_updateMappingSet.size();
      int nDerivedCount = m_updateMappingSet.size();
      HolderList updateMappingSet = new HashHolderList(nBaseCount + nDerivedCount);

      for (int i = 0; i < nBaseCount; i++)
      {
         Object baseUpdateMapping = base.m_updateMappingSet.get(i);
         UpdateMappingCase derivedUpdateMapping = (UpdateMappingCase)m_updateMappingSet.get(baseUpdateMapping);

         if (derivedUpdateMapping != null)
         {
            updateMappingSet.add(derivedUpdateMapping);
            m_updateMappingSet.remove(derivedUpdateMapping);
         }
         else
         {
            updateMappingSet.add(baseUpdateMapping);
         }
      }

      updateMappingSet.addAll(m_updateMappingSet);

      m_updateMappingSet = updateMappingSet;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.