Package mbj.robotdriver

Examples of mbj.robotdriver.RobotDriverException


    int numByte = 0;
    // if pipInfo.positionInHolder is using a Holder which is Not TopLeft_Down throw Error
    // because we need to get another selectedPosition; So for Now we do not support input Holders that are Not TopLeft_Down
    // TODO for future support input Holders other than TopLeft_Down
    if (!pipInfo.holder().numberingMode().equals("TopLeft_Down")) {
      throw new RobotDriverException("The current Version of RobotDriver Does not support input Holders that are not numbered TopLeft_Down,\n" +
          "Change the TecanHolders.xml file and Restart.\n");
    }
    Integer selectedIntegerPosition = new Integer(pipInfo.selectedPosition());
    int selectedPosition = selectedIntegerPosition.intValue()-1;
    for (int i=0; i<pipInfo.holder().positionList().size(); i++) {
View Full Code Here


          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);
View Full Code Here

        holderAndPosition = generateSubWorkingList(aIngredientList, holderAndPosition, tecanSettings, targetHolder, holderList, wasteHolder, workListWriter);
      }
      workListWriter.write("Comment(\"End\");\n");
      workListWriter.close();
    } catch (FileNotFoundException e) {
      throw new RobotDriverException("Problem to access the File " + tecanSettings.getProperty("workingListReferencePath") +
          " or the file" + tecanSettings.getProperty("workingListExportPath") + "\n" + "Details: " + e.getMessage());
    } catch (IOException e) {
      throw new RobotDriverException("Problem to access the File " + tecanSettings.getProperty("workingListReferencePath") +
          " or the file" + tecanSettings.getProperty("workingListExportPath") + "\n" + "Details: " + e.getMessage());
    }
  }
View Full Code Here

      if (fileURL != null) {
        editorPane.setPage(fileURL);
        Document doc = editorPane.getDocument();
        doc.putProperty(Document.StreamDescriptionProperty, null);
      } else {
        throw new RobotDriverException("Couldn't find file: " + fileURL);
      }
    } catch (Exception e) {
      // If a problem occur here it is a big problem
      // Display an Error dialog and End On ERROR
      UnHandledErrorDialog errdialog = new UnHandledErrorDialog(parentRobotDriver, "Robot Driver ERROR",
View Full Code Here

      out = new PrintWriter(new FileOutputStream(settingsFile));
      out.write(GoTecanSettings.this.editorPane.getText());
      out.close();
      parentRobotDriver.readTecanSettings();
    } catch (FileNotFoundException e) {
      throw new RobotDriverException("Problem while saving the file " + settingsFile.getAbsolutePath());
    }
    parentRobotDriver.readWasteHolder();
  }
View Full Code Here

      if (fileURL != null) {
        editorPane.setPage(fileURL);
        Document doc = editorPane.getDocument();
        doc.putProperty(Document.StreamDescriptionProperty, null);
      } else {
        throw new RobotDriverException("Couldn't find file: " + fileURL);
      }   
    } catch (Exception e) {
      // If a problem occur here it is a big problem
      // Display an Error dialog and End On ERROR
      UnHandledErrorDialog errdialog = new UnHandledErrorDialog(parentRobotDriver, "Robot Driver ERROR",
View Full Code Here

      out = new PrintWriter(new FileOutputStream(liquidClassFile));
      out.write(GoTecanLiquidClass.this.editorPane.getText());
      out.close();
      parentRobotDriver.readTecanLiquidClass();
    } catch (FileNotFoundException e) {
      throw new RobotDriverException("Problem while saving the file " + liquidClassFile.getAbsolutePath());
    }   
  }
View Full Code Here

      if (fileURL != null) {
        editorPane.setPage(fileURL);
        Document doc = editorPane.getDocument();
        doc.putProperty(Document.StreamDescriptionProperty, null);
      } else {
        throw new RobotDriverException("Couldn't find file: " + fileURL);
      }   
    } catch (Exception e) {
      // If a problem occur here it is a big problem
      // Display an Error dialog and End On ERROR
      UnHandledErrorDialog errdialog = new UnHandledErrorDialog(parentRobotDriver, "Robot Driver ERROR",
View Full Code Here

      out = new PrintWriter(new FileOutputStream(chemicalLiquidClassFile));
      out.write(GoChemicalLiquidClassAssociation.this.editorPane.getText());
      out.close();
      parentRobotDriver.readTecanChemicalLiquidClasses();
    } catch (FileNotFoundException e) {
      throw new RobotDriverException("Problem while saving the file " + chemicalLiquidClassFile.getAbsolutePath() + "\nCONTROL THE FILE!!!");
    }   
  }
View Full Code Here

              theVolume, theIngredient.chemical().pipettingInfo().liquidClass().name());
          return outDispInfo;
        }
      } 
    }
    throw new RobotDriverException("Problem Trying to generate Dispense Info because aIngredient does not appear anymore in the plate.");
  }
View Full Code Here

TOP

Related Classes of mbj.robotdriver.RobotDriverException

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.