// order the used Ingredients by LiquidClass priority then LiquidClass name
Collections.sort(parentRobotDriver.usedIngredients(),parentRobotDriver.usedIngredients());
// Make the Working List that means do 2 things
// write the Aspirate and Dispense commands
// And give to each used ingredient a Holder and a position in Holder
PipetIngredientList thePipetIngredientList = parentRobotDriver.usedIngredients().prepareAndBuildPipetIngredientList();
try {
thePipetIngredientList.generateWorkingList(parentRobotDriver.tecanSettings(), parentRobotDriver.thePlate(), parentRobotDriver.tecanHolders(), parentRobotDriver.wasteHolder());
} catch (RobotDriverException rbde) {
SimpleErrorDialog simpleDialog = new SimpleErrorDialog(parentRobotDriver, "Robot Driver ERROR",
true, "This Error occurred:\n" + rbde.getMessage() + " -The Working List Can Not be Generated!");
simpleDialog.pack();
simpleDialog.setLocationRelativeTo(parentRobotDriver);