Package fr.soleil.salsa.entity.scanenergy

Examples of fr.soleil.salsa.entity.scanenergy.IRangeEnergy


            IDimensionEnergy dimensionEnergy = ((IConfigEnergy) config).getDimensionX();

            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange();
                rangeEnergy.setDimension(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory();
                trajectoryEnergy.setRange(rangeEnergy);
                trajectoryEnergy.setActuator(actuator);
                List<ITrajectoryEnergy> trajectoriesEnergyList = dimensionEnergy
                        .getTrajectoriesEnergyList();
                if (trajectoriesEnergyList == null) {
                    trajectoriesEnergyList = new ArrayList<ITrajectoryEnergy>();
                    dimensionEnergy.setTrajectoriesEnergyList(trajectoriesEnergyList);
                }
                trajectoriesEnergyList.add(trajectoryEnergy);

                List<ITrajectory> trajectoryList = rangeEnergy.getTrajectoriesList();
                if (trajectoryList == null) {
                    trajectoryList = new ArrayList<ITrajectory>();
                    rangeEnergy.setTrajectoriesList(trajectoryList);
                }
                trajectoryList.add(trajectoryEnergy);
                dimensionEnergy.getRangesEnergyList().add(rangeEnergy);
                ((IConfigEnergy) config).setDimensionX(dimensionEnergy);
                dimension = dimensionEnergy;
View Full Code Here


            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getBeginPosition() == beginPosition) {
            return;
        }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getDelta() == delta) {
            return;
        }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getEndPosition() == endPosition) {
            return;
        }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (integrationTime == rangeEnergy.getIntegrationTime()) {
            return;
        }

        rangeEnergy.setIntegrationTime(integrationTime);

        ConfigEnergyApiService.computeIntegrationTimeChange(trajectoryEnergy);

        refresh();
    }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (stepsNumber == rangeEnergy.getStepsNumber()) {
            return;
        }

        rangeEnergy.setStepsNumber(stepsNumber);

        ConfigEnergyApiService.computeStepsNumberChange(trajectoryEnergy);

        refresh();
    }
View Full Code Here

        if (config != null) {
            IDimensionEnergy dimensionEnergy = config.getDimensionX();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory(rangeEnergy, actuator);
                List<ITrajectory> trajectoriesList = rangeEnergy.getTrajectoriesList();
                if (trajectoriesList == null) {
                    trajectoriesList = new ArrayList<ITrajectory>();
                    rangeEnergy.setTrajectoriesList(trajectoriesList);
                }
                rangeEnergy.getTrajectoriesList().add(trajectoryEnergy);
                dimensionEnergy.getRangesEnergyList().add(rangeEnergy);
            }
        }
        refresh();
    }
View Full Code Here

        this.firePropertyChange("actuator", oldValue, actuator);
    }

    @Override
    public void setRange(IRangeEnergy range) {
        IRangeEnergy oldValue = this.baseBean.getRange();
        this.baseBean.setRange(range);
        this.firePropertyChange("range", oldValue, range);
    }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getBeginPosition() == beginPosition) {
            return;
        }
View Full Code Here

            return;
        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getDelta() == delta) {
            return;
        }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scanenergy.IRangeEnergy

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.