Package fr.soleil.salsa.entity.scanenergy

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


                                    modifyTrajectory(tmpRangeK, actuatorList, actuatorTrajectoryMap);
                                    break;

                                case SCAN_ENERGY:
                                    IConfigEnergy configE = (IConfigEnergy) config;
                                    IDimensionEnergy dimensionE = configE.getDimensionX();
                                    actuatorList = dimensionE.getActuatorsList();
                                    List<IRangeEnergy> rangeListE = dimensionE
                                            .getRangesEnergyList();

                                    for (int rangeid = 0; rangeid < rangeListE.size(); rangeid++) {
                                        modifyTrajectory(rangeListE.get(rangeid), actuatorList,
                                                actuatorTrajectoryMap);
View Full Code Here


        if (beginPosition == null) {
            return;
        }

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

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

        if (delta == null) {
            return;
        }

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

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

        if (endPosition == null) {
            return;
        }

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

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

        if (integrationTime == null) {
            return;
        }

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

        if (integrationTime == rangeEnergy.getIntegrationTime()) {
View Full Code Here

        if (stepsNumber == null) {
            return;
        }

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

        if (stepsNumber == rangeEnergy.getStepsNumber()) {
View Full Code Here

            return;
        }

        // The current config
        config = (IConfigEnergy) iconfig;
        IDimensionEnergy dimensionEnergy = config.getDimensionEnergy();

        // The first range
        if (config.getDimensionEnergy().getRangesEnergyList() == null) {
            List<IRangeEnergy> rangesList = new ArrayList<IRangeEnergy>();
            ListModel<IRangeEnergy, DimensionModel> rangesModelList = new ListModel<IRangeEnergy, DimensionModel>(
                    rangesList, ((DimensionModel) config.getDimensionEnergy()), "rangeEnergy");
            dimensionEnergy.setRangesEnergyList(rangesModelList);
        }

        syncTrajectoriesWithActuators();

        ((DimensionEnergyModel) dimensionEnergy).addListener(actuatorsListListener);

        for (IRangeEnergy rangeEnergy : dimensionEnergy.getRangesEnergyList()) {
            castAndAddMultiListener(rangeEnergy);
            for (ITrajectory trajectoryEnergy : rangeEnergy.getTrajectoriesList()) {
                castAndAddMultiListener(trajectoryEnergy);
            }
        }
View Full Code Here

     * The trajectory is created or deleted according to the existence or not of the actuator.
     */
    private void syncTrajectoriesWithActuators() {

        if (config != null) {
            IDimensionEnergy dimensionEnergy = config.getDimensionEnergy();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() == 0) {
                dimensionEnergy.getRangesEnergyList().clear();
                view.enableButtons(false);
            }
            else {
                view.enableButtons(true);
            }
View Full Code Here

     * The new range button has been clicked.
     */
    @Override
    public void notifyNewRange() {
        if (config != null) {
            IDimensionEnergy dimensionEnergy = config.getDimensionEnergy();
            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

     * The delete range button has been clicked.
     */
    @Override
    public void notifyDeleteRange(int row) {
        if (row != -1) {
            IDimensionEnergy dimensionEnergy = config.getDimensionEnergy();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                dimensionEnergy.getRangesEnergyList().remove(row);
            }
        }
        refresh();
    }
View Full Code Here

TOP

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

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.