Package fr.soleil.salsa.entity.scanhcs

Examples of fr.soleil.salsa.entity.scanhcs.IRangeHCS


        if (this.config != null) {
            RangeHCSModel rangeToAdd = new RangeHCSModel();
            rangeToAdd.setDimension(((IConfigHCS) config).getDimensionX());
            this.rangeModelsList.add(rangeToAdd);
            ((IConfigHCS) config).getDimensionX().getRangesXList().add(rangeToAdd);
            IRangeHCS range = ((IConfigHCS) config).getDimensionX().getRangesXList()
                    .get(((IConfigHCS) config).getDimensionX().getRangesXList().size() - 1);
            ((RangeHCSModel) range).addListener(listenerRangeHCS);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
                trajectoryHCSModelToAdd.setBeginPosition(0.0);
                trajectoryHCSModelToAdd.setEndPosition(0.0);
                trajectoryHCSModelToAdd.setDelta(0.0);
                trajectoryHCSModelToAdd.setRelative(false);
                trajectoryHCSModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectoryHCSModelToAdd);
                trajectoryHCSModelToAdd.setRange(rangeToAdd);
                trajectoryHCSModelToAdd.setActuator(actuatorModelsList.get(i));

                ((TrajectoryHCSModel) range.getTrajectoriesList().get(i)).addListener(listenerTrajectoryHCS);

            }
            if (view != null) {
                view.addRange();
            }
View Full Code Here


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

                    IDimensionHCS dimension = config.getDimensionX();
                    if (dimension != null) {
                        List<IRangeHCS> rangeList = dimension.getRangesXList();
                        if ((rangeList != null) && !rangeList.isEmpty()) {
                            IRangeHCS range = rangeList.get(0);
                            nbOfPoint = range.getStepsNumber();
                        }
                    }

                    setAttribute("hwContinuousNbPt", nbOfPoint, false);
View Full Code Here

        if (this.config != null) {
            RangeHCSModel rangeToAdd = new RangeHCSModel();
            rangeToAdd.setDimension(((IConfigHCS) config).getDimensionX());
            this.rangeModelsList.add(rangeToAdd);
            ((IConfigHCS) config).getDimensionX().getRangesXList().add(rangeToAdd);
            IRangeHCS range = ((IConfigHCS) config).getDimensionX().getRangesXList().get(
                    ((IConfigHCS) config).getDimensionX().getRangesXList().size() - 1);
            ((RangeHCSModel) range).addListener(listenerRangeHCS);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
                trajectoryHCSModelToAdd.setBeginPosition(0.0);
                trajectoryHCSModelToAdd.setEndPosition(0.0);
                trajectoryHCSModelToAdd.setDelta(0.0);
                trajectoryHCSModelToAdd.setRelative(false);
                trajectoryHCSModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectoryHCSModelToAdd);
                trajectoryHCSModelToAdd.setRange(rangeToAdd);
                trajectoryHCSModelToAdd.setActuator(actuatorModelsList.get(i));

                ((TrajectoryHCSModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectoryHCS);

            }
            this.trajectoryListView.addRange();
            startListening(config);
View Full Code Here

        if (!this.actuatorModelsList.isEmpty())
            computeRelativeChange(relative, iPosition, jPosition);
    }

    private IRangeHCS getRange(int rIndex) {
        IRangeHCS range = this.rangeModelsList.get(rIndex);
        return range;
    }
View Full Code Here

     * Called when begin value changes.
     */
    @Override
    public void notifyFromValueChanged(String value, int iPosition, int jPosition, boolean deltaLock) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRangeHCS range = getRange(jPosition);
            ITrajectoryHCS trajectory = getTrajectory(range, iPosition);
            boolean firstRange = (jPosition == 0);
            this.computeBeginPositionChange(trajectory, Double.valueOf(value), deltaLock,
                    firstRange);
        }
View Full Code Here

     * Called when end value changes.
     */
    @Override
    public void notifyToValueChanged(String value, int iPosition, int jPosition, boolean deltaLock) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRangeHCS range = getRange(jPosition);
            ITrajectoryHCS trajectory = getTrajectory(range, iPosition);
            boolean firstRange = (jPosition == 0);
            this.computeEndPositionChange(trajectory, Double.valueOf(value), deltaLock, firstRange);
        }
    }
View Full Code Here

    public void notifyIntegrationTimeHCSChanged(String value) {
        IConfigHCS configHCS = (IConfigHCS) config;
        IDimensionHCS dimHCS = configHCS.getDimensionX();
        if (dimHCS.getActuatorsList() != null && dimHCS.getActuatorsList().size() > 0
                && dimHCS.getRangesXList() != null && dimHCS.getRangesXList().size() > 0) {
            IRangeHCS range = dimHCS.getRangesXList().get(0);
            computeIntegrationTimeChange(range, Double.valueOf(value));
        }
    }
View Full Code Here

    public void notifyNumberOfPointChanged(String value) {
        IConfigHCS configHCS = (IConfigHCS) config;
        IDimensionHCS dimHCS = configHCS.getDimensionX();
        if (dimHCS.getActuatorsList() != null && dimHCS.getActuatorsList().size() > 0
                && dimHCS.getRangesXList() != null && dimHCS.getRangesXList().size() > 0) {
            IRangeHCS range = dimHCS.getRangesXList().get(0);
            computeNumberOfPointsChange(range, Integer.valueOf(value));
        }

    }
View Full Code Here

                    config = new ConfigHCSImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfigHCS) config).setDimensionX(new DimensionHCSImpl());
                    // Creates one range for a new HCS config.
                    IRangeHCS rangeHCSToAdd = new RangeHCSImpl();
                    rangeHCSToAdd.setDimension(((IConfigHCS) config).getDimensionX());
                    ((IConfigHCS) config).getDimensionX().getRangesXList().add(rangeHCSToAdd);
                    break;

                case SCAN_K:
                    config = new ConfigKImpl();
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scanhcs.IRangeHCS

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.