Examples of RangeImpl


Examples of com.sun.grid.jgdi.configuration.RangeImpl

// [-pe pe-name slot_range]                 request slot range for parallel jobs
    @OptionAnnotation(value = "-pe", min = 2)
    public void setPE(final OptionInfo oi) throws JGDIException {
        job.setPe(oi.getFirstArg());
        String[] range = oi.getFirstArg().split("[-]");
        Range apeRange = new RangeImpl();
        if (range[0] != null && range[0].length() > 0) {
            apeRange.setMin(Integer.parseInt(range[0]));
        }
        if (range.length > 1 && range[1] != null && range[1].length() > 0) {
            apeRange.setMax(Integer.parseInt(range[1]));
        }
        job.addPeRange(apeRange);
    }
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.RangeImpl

    //[-pe pe-name slot_range]                 request slot range for parallel jobs
    @OptionAnnotation(value="-pe",min=2)
    public void setPE(final OptionInfo oi) throws JGDIException {
        ar.setPe(oi.getFirstArg());
        String range[] = oi.getFirstArg().split("[-]");
        Range apeRange = new RangeImpl();
        if(range[0] != null && range[0].length()>0){
            apeRange.setMin(Integer.parseInt(range[0]));
        }
        if(range.length>1 && range[1] != null && range[1].length()>0){
            apeRange.setMax(Integer.parseInt(range[1]));
        }
        ar.addPeRange(apeRange);
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.RangeImpl

    /**
     * Default constructor, that creates a new instance of RangeImpl and wraps it.
     */
    public RangeModel() {
        this(new RangeImpl());
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.RangeImpl

    /**
     * Default constructor, that creates a new instance of RangeImpl and wraps it.
     */
    public RangeModel() {
        this(new RangeImpl());
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.RangeImpl

   
    /**
     * Default constructor, that creates a new instance of RangeImpl and wraps it.
     */
    public RangeModel() {
        this(new RangeImpl());
    }
View Full Code Here

Examples of fr.soleil.salsa.entity.impl.RangeImpl

                rangeList = new ArrayList<IRange>();
            }

            if (rangeList.isEmpty()) {
                // Have at list one range
                IRange range = new RangeImpl();
                ((List<IRange>) rangeList).add(range);
                dimension.setRangeList(rangeList);
            }

            // Fly Scan can have only one range
            IRange range = rangeList.get(0);
            List<ITrajectory> trajectoryList = range.getTrajectoriesList();
            if (trajectoryList == null) {
                trajectoryList = new ArrayList<ITrajectory>();
            }

            int actuatorSize = actuatorList.size();
            int trajectorySize = trajectoryList.size();
            if (trajectorySize < actuatorSize) {
                ITrajectory trajectory = null;
                IActuator tmpActuator = null;
                for (int i = trajectorySize; i < actuatorSize; i++) {
                    tmpActuator = actuatorList.get(i);
                    trajectory = new TrajectoryImpl();
                    trajectory.setName(tmpActuator.getName());
                    trajectoryList.add(trajectory);
                }
                range.setTrajectoriesList(trajectoryList);
            }
        }
    }
View Full Code Here

Examples of org.zkoss.zss.model.impl.RangeImpl

    return newRange(firstSheet, lastSheet, tRow, lCol, bRow, rCol);
  }
 
  private static Range newRange(Worksheet firstSheet, Worksheet lastSheet, int tRow, int lCol, int bRow, int rCol) {
    return tRow == bRow && lCol == rCol ?
        new RangeImpl(tRow, lCol, firstSheet, lastSheet):
        new RangeImpl(tRow, lCol, bRow, rCol, firstSheet, lastSheet);
  }
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.