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

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


            switch (type) {
                case SCAN_1D:
                    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);
View Full Code Here


            switch (type) {
                case SCAN_1D:
                    IConfig<?> tmp = new Config1DImpl();
                    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);
View Full Code Here

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

            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        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);

            }
        }

        return nc;
View Full Code Here

            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        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);
               
            }
        }
       
        return nc;
View Full Code Here

            s.setName("/mon/sensor/" + i);
            s.setEnabled(i % 2 == 1);
            nc.getSensorsList().add(s);
        }
        // Dimension
        Dimension1DImpl dim = new Dimension1DImpl();
        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);

            }
        }

        return nc;
View Full Code Here

            switch (type) {
            case SCAN_1D:
                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);
View Full Code Here

            configK.setDimensionX(dimensionK);
        }

        IDimension1D dimension1D = config1D.getDimensionX();
        if (dimension1D == null) {
            dimension1D = new Dimension1DImpl();
            config1D.setDimensionX(dimension1D);
        }
    }
View Full Code Here

            switch (type) {
                case SCAN_1D:
                    IConfig<?> tmp = new Config1DImpl();
                    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);
View Full Code Here

            switch (type) {
                case SCAN_1D:
                    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);
View Full Code Here

TOP

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

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.