Examples of Dish


Examples of com.supinfo.youfood.dto.Dish

        if (type.equals("filtered")) {
            PrintWriter out = resp.getWriter();
            ArrayList<YFDish> dish = (ArrayList<YFDish>) this.dishService.getDishesBeginingBy(req.getParameter("begin"));
            ArrayList<Dish> dishes = new ArrayList<Dish>();
            for(YFDish d : dish) {
                Dish di = new Dish();
                di.setId(d.getId());
                di.setName(d.getName());
               
                dishes.add(di);
            }
           
            Gson dishGson = new Gson();
View Full Code Here

Examples of org.mcisb.beacon.experiment.Dish

        ArrayList dishes = expDetails.getDishes();
       
        for (int i =0; i<dishes.size(); i++) {
          //We need a record model for this dish.
          RecordModel dishNode = recordModelFactory.createRecordModel("Dish"); //$NON-NLS-1$
          Dish currentDish = (Dish)dishes.get(i);
         
          //Sort out what we know about the dish
          ArrayList spotReadings = currentDish.getSpotReadings();
          Microscope microscope = currentDish.getMicroscope();
         
          //Set the top level nodes we can
          RecordModel microscopeNode = recordModelFactory.createRecordModel("Microscope"); //$NON-NLS-1$
          RecordModel objectiveNode = recordModelFactory.createRecordModel("Objective_Details"); //$NON-NLS-1$
         
          //Do the microscope:
          objectiveNode.setValue("name", microscope.getName(), false); //$NON-NLS-1$
          objectiveNode.setValue("lensNA", microscope.getLens(), false); //$NON-NLS-1$
          objectiveNode.setValue("magnification", microscope.getMagnification(), false); //$NON-NLS-1$
         
          //Assemble the node
          microscopeNode.addChild("Objective_Details", objectiveNode, false); //$NON-NLS-1$
         
          //Add it to the dish
          dishNode.addChild("Microscope", microscopeNode, false); //$NON-NLS-1$
          dishNode.setValue("dishNumber", Integer.toString(currentDish.getDishNumber()), false); //$NON-NLS-1$
         
          //And now the spot readings...
         
          for (int j =0; j<spotReadings.size();j++) {
            SpotReading currentSpot = (SpotReading)spotReadings.get(j);
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.