Package fr.soleil.salsa.entity.scan1d

Examples of fr.soleil.salsa.entity.scan1d.IRange1D


     *
     * @param integrationtime
     */
    public void computeIntegrationTimeChange(Double integrationTime, int jPosition) {

        IRange1D range = this.rangeModelsList.get(jPosition);
        range.setIntegrationTime(integrationTime);

        ITrajectory1D trajectory = (ITrajectory1D) ((IConfig1D) config).getDimensionX()
                .getRangesXList().get(jPosition).getTrajectoriesList().get(0);

        ITrajectory trajectoryImpl = getPartialTrajectory(trajectory);

        // IRange1D rangeImpl = getPartialRange(range);
        ITrajectory1D trajectoryResult = (ITrajectory1D) Config1DApi
                .computeIntegrationTimeChange(trajectoryImpl);

        IRange1D rangeResult = trajectoryResult.getRange();

        if (rangeResult.getTrajectoriesList().size() == range.getTrajectoriesList().size()) {

            int size = rangeResult.getTrajectoriesList().size();
            for (int i = 0; i < size; i++) {
                ITrajectory1D dst = (ITrajectory1D) range.getTrajectoriesList().get(i);
                ITrajectory1D src = (ITrajectory1D) rangeResult.getTrajectoriesList().get(i);
                swapTrajectory(dst, src);
            }

        }

View Full Code Here


     *
     * @param StepsNumbe
     */
    public void computeStepsNumberChange(Integer stepsNumber, int jPosition) {

        IRange1D range = this.rangeModelsList.get(jPosition);
        range.setStepsNumber(stepsNumber);

        ITrajectory1D trajectory = (ITrajectory1D) ((IConfig1D) config).getDimensionX()
                .getRangesXList().get(jPosition).getTrajectoriesList().get(0);

        ITrajectory trajectoryImpl = getPartialTrajectory(trajectory);

        // IRange1D rangeImpl = getPartialRange(range);
        ITrajectory1D trajectoryResult = (ITrajectory1D) Config1DApi
                .computeStepsNumberChange(trajectoryImpl);

        IRange1D rangeResult = trajectoryResult.getRange();

        if (rangeResult.getTrajectoriesList().size() == range.getTrajectoriesList().size()) {

            int size = rangeResult.getTrajectoriesList().size();
            for (int i = 0; i < size; i++) {
                ITrajectory1D dst = (ITrajectory1D) range.getTrajectoriesList().get(i);
                ITrajectory1D src = (ITrajectory1D) rangeResult.getTrajectoriesList().get(i);
                swapTrajectory(dst, src);
            }

        }

View Full Code Here

        Trajectory1DImpl trajectoryImpl = getPartialTrajectory(itrajectory);
        trajectoryImpl.setDelta(delta);

        ITrajectory1D result = (ITrajectory1D) Config1DApi.computeDeltaChange(trajectoryImpl);

        IRange1D resultRange = result.getRange();
        IRange1D range = itrajectory.getRange();
        range.setStepsNumber(resultRange.getStepsNumber());
        range.setIntegrationTime(resultRange.getIntegrationTime());

        if (resultRange.getTrajectoriesList().size() == range.getTrajectoriesList().size()) {

            int size = resultRange.getTrajectoriesList().size();
            for (int i = 0; i < size; i++) {
                ITrajectory1D dst = (ITrajectory1D) range.getTrajectoriesList().get(i);
                ITrajectory1D src = (ITrajectory1D) resultRange.getTrajectoriesList().get(i);
                swapTrajectory(dst, src);
            }

        }
View Full Code Here

            IDimension1D dimension = ((IConfig1D) config).getDimensionX();
            rangeToAdd.setIntegrationTime(1.0);
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig1D) config).getDimensionX().getRangesXList().add(rangeToAdd);
            IRange1D range = ((IConfig1D) config).getDimensionX().getRangesXList().get(
                    ((IConfig1D) config).getDimensionX().getRangesXList().size() - 1);
            ((Range1DModel) range).addListener(listenerRange1D);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                Trajectory1DModel trajectory1DModelToAdd = new Trajectory1DModel();
View Full Code Here

                            List<IActuator> listActuator = dimensionX.getActuatorsList();
                            // System.out.println("Actuator Size=" + listActuator.size());
                            List<IRange1D> range1d = dimensionX.getRangesXList();
                            // System.out.println("range1d=" + range1d.size());
                            for (int rangeIndex = 0; rangeIndex < range1d.size(); rangeIndex++) {
                                IRange1D range1D = range1d.get(rangeIndex);
                                List<ITrajectory> listTrajectory = range1D.getTrajectoriesList();
                                int trajectorySize = listTrajectory.size();
                                // System.out.println("Trajectory Size=" + trajectorySize);
                                if (listActuator.size() <= trajectorySize) {
                                    // System.out.println("Trajectory Size=" + trajectorySize);
                                    for (int trajectoryIndex = 0; trajectoryIndex < trajectorySize; trajectoryIndex++) {
View Full Code Here

        if (this.rangeModelsList.size() == 0) {
            this.notifyNewRangeAction();
        }
        for (int i = 0; i < this.rangeModelsList.size(); i++) {
            Range1DModel range = rangeModelsList.get(i);
            IRange1D range1D = range1DList.get(i);
            Trajectory1DModel trajectory1DModelToAdd = new Trajectory1DModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));
            range.getTrajectoriesList().add(trajectory1DModelToAdd);
            range1D.getTrajectoriesList().add(trajectory1DModelToAdd);
            dimension.getTrajectoriesList().add(trajectory1DModelToAdd);
            trajectory1DModelToAdd.addListener(listenerTrajectory1D);
            trajectory1DModelToAdd.setActuator(actuatorModel);
        }
        this.notifyAddActuator(actuatorModel.getName(), true);
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

    /**
     *
     */
    public void setRange(IRange1D range) {
        IRange1D oldValue = this.baseBean.getRange();
        this.baseBean.setRange(range);
        this.firePropertyChange("range", oldValue, range);
    }
View Full Code Here

                            IDimension1D dimensionX = config1d.getDimensionX();
                            List<IActuator> listActuator = dimensionX.getActuatorsList();
                            // System.out.println("Actuator Size=" + listActuator.size());
                            List<IRange1D> range1d = dimensionX.getRangesXList();
                            for (int rangeIndex = 0; rangeIndex < range1d.size(); rangeIndex++) {
                                IRange1D range1D = range1d.get(rangeIndex);
                                List<ITrajectory> listTrajectory = range1D.getTrajectoriesList();
                                int trajectorySize = listTrajectory.size();
                                // System.out.println("Trajectory Size=" + trajectorySize);
                                for (int trajectoryIndex = 0; trajectoryIndex < trajectorySize; trajectoryIndex++) {
                                    IActuator actuator = listActuator.get(trajectoryIndex);
                                    if (actuator != null && actuator.isEnabled()) {
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.scan1d.IRange1D

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.