Examples of Sample


Examples of fr.soleil.bean.samplesbean.model.Sample

    super(proxy);
  }

        public void cleanCurrentConfiguration(List<Sample> samples) throws DevFailed{
            for (Iterator<Sample> it = samples.iterator(); it.hasNext();) {
                Sample sample = it.next();
                String name = sample.getSampleName();
                DeviceData dd = new DeviceData();
                dd.insert(name);
                proxy.command_inout("RemovePositionFromList",dd);
            }
        }
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

                model.setActuatorsNames(actuators);

               
    List<Sample> listSampleConfiguration = facadeService.getSampleList();
    for (Iterator<Sample> iterator = listSampleConfiguration.iterator(); iterator.hasNext();) {
      Sample sample = (Sample) iterator.next();
      // We substract 1 to make the rackNumber match the rackNumber of the
      // rackTabbedPane.
      int rackNumber = sample.getRackNumber() - 1;
      Rack rack = model.get(rackNumber);
      rack.addSample(sample);
    }
   
  }
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

  public static boolean checkForDuplicatedSampleNames(Collection<Sample> sampleList) {
    boolean result = true;
    List<String> names = new ArrayList<String>();
    for (Iterator<Sample> iterator = sampleList.iterator(); iterator.hasNext();) {
      Sample sample = iterator.next();
      String sampleName = sample.getSampleName();
      if (!names.contains(sampleName)) {
        names.add(sampleName);
      } else {
        result = false;
        break;
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

  public static boolean checkForDuplicatedSampleOrders(Collection<Sample> sampleList) {
    boolean result = true;
    List<Integer> orders = new ArrayList<Integer>();
    for (Iterator<Sample> iterator = sampleList.iterator(); iterator.hasNext();) {
      Sample sample = iterator.next();
      List<Integer> sampleOrders = sample.getOrderList();
      for (Iterator<Integer> iterator2 = sampleOrders.iterator(); iterator2.hasNext();) {
        Integer sampleOrder = iterator2.next();
        if (!orders.contains(sampleOrder)) {
          orders.add(sampleOrder);
        } else {
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

    for (int i = 1; i <= lastIndex; i++) {
      if (i != 1) {
        result += ",";
      }
      Sample sample = sampleOrderMap.get(i);
      if (sample != null) {
        result += sample.getSampleName();

      }
    }
    return result;
  }
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

  public DefaultMutableTreeTableNode generateTreeTableModel() {
    List<Cell> cellList = rack.getCellList();

    DefaultMutableTreeTableNode aRoot = new DefaultMutableTreeTableNode(
        new Sample());
    for (Iterator<Cell> iterator = cellList.iterator(); iterator.hasNext();) {
      Cell cell = iterator.next();
      cell.addObserver(this);
      if (!cell.hasChildren()) {
        aRoot.add(new DefaultMutableTreeTableNode(cell));
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

                model.setActuatorsNames(actuators);

               
    List<Sample> listSampleConfiguration = facadeService.getSampleList();
    for (Iterator<Sample> iterator = listSampleConfiguration.iterator(); iterator.hasNext();) {
      Sample sample = (Sample) iterator.next();
      // We substract 1 to make the rackNumber match the rackNumber of the
      // rackTabbedPane.
      int rackNumber = sample.getRackNumber() - 1;
      Rack rack = model.get(rackNumber);
      rack.addSample(sample);
    }
   
  }
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

  public static boolean checkForDuplicatedSampleNames(Collection<Sample> sampleList) {
    boolean result = true;
    List<String> names = new ArrayList<String>();
    for (Iterator<Sample> iterator = sampleList.iterator(); iterator.hasNext();) {
      Sample sample = iterator.next();
      String sampleName = sample.getSampleName();
      if (!names.contains(sampleName)) {
        names.add(sampleName);
      } else {
        result = false;
        break;
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

  public static boolean checkForDuplicatedSampleOrders(Collection<Sample> sampleList) {
    boolean result = true;
    List<Integer> orders = new ArrayList<Integer>();
    for (Iterator<Sample> iterator = sampleList.iterator(); iterator.hasNext();) {
      Sample sample = iterator.next();
      List<Integer> sampleOrders = sample.getOrderList();
      for (Iterator<Integer> iterator2 = sampleOrders.iterator(); iterator2.hasNext();) {
        Integer sampleOrder = iterator2.next();
        if (!orders.contains(sampleOrder)) {
          orders.add(sampleOrder);
        } else {
View Full Code Here

Examples of fr.soleil.bean.samplesbean.model.Sample

    for (int i = 1; i <= lastIndex; i++) {
      if (i != 1) {
        result += ",";
      }
      Sample sample = sampleOrderMap.get(i);
      if (sample != null) {
        result += sample.getSampleName();

      }
    }
    return result;
  }
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.