Package fr.soleil.salsa.entity.impl.scan1d

Examples of fr.soleil.salsa.entity.impl.scan1d.Range1DImpl


                    tmp.setScanAddOn(new ScanAddOnImp());
                    tmp.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig1D) tmp).setDimensionX(new Dimension1DImpl());

                    // Creates one range for a new 1D config.
                    IRange1D range1DToAdd = new Range1DImpl();
                    range1DToAdd.setDimension(((IConfig1D) tmp).getDimensionX());
                    range1DToAdd.setIntegrationTime(1.0);
                    range1DToAdd.setStepsNumber(1);
                    ((IConfig1D) tmp).getDimensionX().getRangesXList().add(range1DToAdd);
                    configModel = wrap(tmp);

                    break;
                case SCAN_2D:
View Full Code Here


                    config = new Config1DImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig1D) config).setDimensionX(new Dimension1DImpl());
                    // Creates one range for a new 1D config.
                    IRange1D range1DToAdd = new Range1DImpl();
                    range1DToAdd.setDimension(((IConfig1D) config).getDimensionX());
                    range1DToAdd.setIntegrationTime(1.0);
                    range1DToAdd.setStepsNumber(1);
                    ((IConfig1D) config).getDimensionX().getRangesXList().add(range1DToAdd);
                    break;

                case SCAN_2D:
                    config = new Config2DImpl();
View Full Code Here

        dim.setTrajectoriesList(new ArrayList<ITrajectory1D>());
        nc.setDimensionX(dim);

        dim.setRangesXList(new ArrayList<IRange1D>());
        for (int i = 0; i < _nbRanges; i++) {
            IRange1D r = new Range1DImpl();
            r.setDimension(dim);
            r.setIntegrationTime(4.5);
            r.setStepsNumber(100);
            List<ITrajectory> traj = new ArrayList<ITrajectory>();
            r.setTrajectoriesList(traj);
            dim.getRangesXList().add(r);
        }

        // Actuators
        for (int i = 0; i < _nbActuators; i++) {
            IActuator a = new ActuatorImpl();
            a.setName("/mon/actuator/" + i);
            a.setEnabled(i % 2 == 0);
            dim.getActuatorsList().add(a);
        }

        for (int i = 0; i < dim.getRangesXList().size(); i++) {
            for (int j = 0; j < dim.getActuatorsList().size(); j++) {
                IActuator a = dim.getActuatorsList().get(j);
                IRange1D r = dim.getRangesXList().get(i);

                ITrajectory1D t = new Trajectory1DImpl();
                t.setBeginPosition(0.0);
                t.setEndPosition(4.0);
                t.setActuator(a);
                t.setRange(r);
                r.getTrajectoriesList().add(t);
                dim.getTrajectoriesList().add(t);

            }
        }
View Full Code Here

            } else if (dimension instanceof IDimensionEnergy) {
                range = new RangeEnergyImpl();
                trajectory = new TrajectoryEnergyImpl();
                ((IDimensionEnergy) dimension).getRangesEnergyList().add((IRangeEnergy) range);
            } else if (dimension instanceof IDimension1D) {
                range = new Range1DImpl();
                trajectory = new Trajectory1DImpl();
                ((IDimension1D) dimension).getRangesXList().add((IRange1D) range);
            }
        }
        if ((range != null) && (trajectory != null)) {
View Full Code Here

                    config = new Config1DImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig1D) config).setDimensionX(new Dimension1DImpl());
                    // Creates one range for a new 1D config.
                    IRange1D range1DToAdd = new Range1DImpl();
                    range1DToAdd.setDimension(((IConfig1D) config).getDimensionX());
                    range1DToAdd.setIntegrationTime(1.0);
                    range1DToAdd.setStepsNumber(1);
                    ((IConfig1D) config).getDimensionX().getRangesXList().add(range1DToAdd);
                    break;

                case SCAN_2D:
                    config = new Config2DImpl();
View Full Code Here

                    tmp.setScanAddOn(new ScanAddOnImp());
                    tmp.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig1D) tmp).setDimensionX(new Dimension1DImpl());

                    // Creates one range for a new 1D config.
                    IRange1D range1DToAdd = new Range1DImpl();
                    range1DToAdd.setDimension(((IConfig1D) tmp).getDimensionX());
                    range1DToAdd.setIntegrationTime(1.0);
                    range1DToAdd.setStepsNumber(1);
                    ((IConfig1D) tmp).getDimensionX().getRangesXList().add(range1DToAdd);
                    configModel = wrap(tmp);

                    break;
                case SCAN_2D:
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.scan1d.Range1DImpl

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.