Package fr.soleil.salsa.entity.scanhcs

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


    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


                    tmpHCS.setDimensionX(new DimensionHCSImpl());

                    // ((IConfigHCS) configModel).setDimensionX(new DimensionHCSModel());

                    // Creates one range for a new HCS config.
                    IRangeHCS rangeHCSToAdd = new RangeHCSImpl();
                    rangeHCSToAdd.setDimension(((IConfigHCS) tmpHCS).getDimensionX());
                    ((IConfigHCS) tmpHCS).getDimensionX().getRangesXList().add(rangeHCSToAdd);

                    configModel = wrap(tmpHCS);
                    break;
                case SCAN_K:
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

    /**
     *
     */
    public void setRange(IRangeHCS range) {
        IRangeHCS oldValue = this.baseBean.getRange();
        this.baseBean.setRange(range);
        this.firePropertyChange("range", oldValue, range);
    }
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);

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

                    tmpHCS.setDimensionX(new DimensionHCSImpl());

                    // ((IConfigHCS) configModel).setDimensionX(new DimensionHCSModel());

                    // Creates one range for a new HCS config.
                    IRangeHCS rangeHCSToAdd = new RangeHCSImpl();
                    rangeHCSToAdd.setDimension(((IConfigHCS) tmpHCS).getDimensionX());
                    ((IConfigHCS) tmpHCS).getDimensionX().getRangesXList().add(rangeHCSToAdd);

                    configModel = wrap(tmpHCS);
                    break;
                case SCAN_K:
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

     *
     * @return
     */
    public Double getIntegrationTime() {
        Double integrationTime = 1.0;
        IRangeHCS rangeHCS = getIRangeHCS();
        if (rangeHCS != null) {
            integrationTime = rangeHCS.getIntegrationTime();
        }
        return integrationTime;
    }
View Full Code Here

     * Set the unique integration time.
     *
     * @param dimensionX
     */
    public void setIntegrationTime(Double integrationTime) {
        IRangeHCS rangeHCS = getIRangeHCS();
        if (rangeHCS != null) {
            rangeHCS.setIntegrationTime(integrationTime);
        }
    }
View Full Code Here

     *
     * @return
     */
    public Integer getNumberOfPoints() {
        Integer stepNumber = 1;
        IRangeHCS rangeHCS = getIRangeHCS();
        if (rangeHCS != null) {
            stepNumber = rangeHCS.getStepsNumber();
        }
        return stepNumber;
    }
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.