Package fr.soleil.salsa.entity.scanenergy

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


                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimensionListener
                                .getDimension()).removeListener(dimensionListener);
                    }
                }
                else if (this.config instanceof IConfigEnergy) {
                    IConfigEnergy configEnergy = (IConfigEnergy) this.config;
                    IDimension dimension = configEnergy.getDimensionEnergy();
                    if (dimension != null) {
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimensionListener
                                .getDimension()).removeListener(dimensionListener);
                    }
                }
            }
            this.config = config;
            actuatorListenersList.clear();
            if (config != null) {
                ((IEventSource<EntityPropertyChangedEvent<IConfig>>) this.config)
                        .addListener(configListener);

                if (config instanceof IConfig1D) {
                    IConfig1D config1D = (IConfig1D) config;
                    this.setViewVisible(true);
                    listActuator = config1D.getDimensionX().getActuatorsList();

                    IDimension dimension = config1D.getDimensionX();
                    if (dimension != null) {
                        dimensionListener = new DimensionListener(dimension);
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                .addListener(dimensionListener);
                    }
                }
                else if (config instanceof IConfig2D) {
                    IConfig2D config2D = (IConfig2D) config;
                    if (this.yActuator) { // Case of Y Actuator.
                        this.setViewVisible(true);
                        listActuator = config2D.getDimensionY().getActuatorsList();
                        IDimension dimension = config2D.getDimensionY();
                        if (dimension != null) {
                            dimensionListener = new DimensionListener(dimension);
                            ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                    .addListener(dimensionListener);
                        }
                    }
                    else { // Case of X Actuator.
                        this.setViewVisible(true);
                        listActuator = config2D.getDimensionX().getActuatorsList();
                        IDimension dimension = config2D.getDimensionX();
                        if (dimension != null) {
                            dimensionListener = new DimensionListener(dimension);
                            ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                    .addListener(dimensionListener);
                        }

                    }
                }
                else if (config instanceof IConfigEnergy) {
                    IConfigEnergy configEnergy = (IConfigEnergy) config;
                    this.setViewVisible(true);
                    listActuator = configEnergy.getDimensionEnergy().getActuatorsList();

                    IDimension dimension = configEnergy.getDimensionEnergy();
                    if (dimension != null) {
                        dimensionListener = new DimensionListener(dimension);
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                .addListener(dimensionListener);
                    }
View Full Code Here


                                    actuatorList = dimensionK.getActuatorsList();
                                    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++) {
View Full Code Here

                        break;

                    case SCAN_ENERGY:

                        IConfigEnergy configEnergy = (IConfigEnergy) config;
                        IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                        List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                        ArrayList<ITrajectory> trajectoriesEnergy = new ArrayList<ITrajectory>();

                        List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
View Full Code Here

                                }
                            }

                        }
                        else if (config instanceof IConfigEnergy) {
                            IConfigEnergy configEnergy = (IConfigEnergy) config;
                            IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                            List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                            List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
                            for (int i = 0; i < rangeEnergy.size(); i++) {
                                List<ITrajectory> listTrajectories = rangeEnergy.get(i)
View Full Code Here

                        break;

                    case SCAN_ENERGY:

                        IConfigEnergy configEnergy = (IConfigEnergy) config;
                        IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                        List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                        ArrayList<ITrajectory> trajectoriesEnergy = new ArrayList<ITrajectory>();

                        List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
View Full Code Here

                        break;

                    case SCAN_ENERGY:

                        IConfigEnergy configEnergy = (IConfigEnergy) config;
                        IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                        List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                        ArrayList<ITrajectory> trajectoriesEnergy = new ArrayList<ITrajectory>();

                        List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
View Full Code Here

                            }

                            break;

                        case SCAN_ENERGY:
                            IConfigEnergy configEnergy = (IConfigEnergy) config;
                            IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                            List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                            List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
                            for (int i = 0; i < rangeEnergy.size(); i++) {
                                List<ITrajectory> listTrajectories = rangeEnergy.get(i)
View Full Code Here

                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimensionListener
                                .getDimension()).removeListener(dimensionListener);
                    }
                }
                else if (this.config instanceof IConfigEnergy) {
                    IConfigEnergy configEnergy = (IConfigEnergy) this.config;
                    IDimension dimension = configEnergy.getDimensionX();
                    if (dimension != null) {
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimensionListener
                                .getDimension()).removeListener(dimensionListener);
                    }
                }
            }
            this.config = config;
            deviceListenersList.clear();
            if (config != null) {
                ((IEventSource<EntityPropertyChangedEvent<IConfig<?>>>) this.config)
                        .addListener(configListener);

                if (config instanceof IConfig1D) {
                    IConfig1D config1D = (IConfig1D) config;
                    this.setViewVisible(true);
                    deviceList = config1D.getDimensionX().getActuatorsList();

                    IDimension dimension = config1D.getDimensionX();
                    if (dimension != null) {
                        dimensionListener = new DimensionListener(dimension);
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                .addListener(dimensionListener);
                    }
                }
                else if (config instanceof IConfig2D) {
                    IConfig2D config2D = (IConfig2D) config;
                    if (this.yActuator) { // Case of Y Actuator.
                        this.setViewVisible(true);
                        deviceList = config2D.getDimensionY().getActuatorsList();
                        IDimension dimension = config2D.getDimensionY();
                        if (dimension != null) {
                            dimensionListener = new DimensionListener(dimension);
                            ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                    .addListener(dimensionListener);
                        }
                    }
                    else { // Case of X Actuator.
                        this.setViewVisible(true);
                        deviceList = config2D.getDimensionX().getActuatorsList();
                        IDimension dimension = config2D.getDimensionX();
                        if (dimension != null) {
                            dimensionListener = new DimensionListener(dimension);
                            ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                    .addListener(dimensionListener);
                        }

                    }
                }
                else if (config instanceof IConfigEnergy) {
                    IConfigEnergy configEnergy = (IConfigEnergy) config;
                    this.setViewVisible(true);
                    deviceList = configEnergy.getDimensionX().getActuatorsList();

                    IDimension dimension = configEnergy.getDimensionX();
                    if (dimension != null) {
                        dimensionListener = new DimensionListener(dimension);
                        ((IEventSource<EntityPropertyChangedEvent<? extends IDimension>>) dimension)
                                .addListener(dimensionListener);
                    }
View Full Code Here

                            }

                            break;

                        case SCAN_ENERGY:
                            IConfigEnergy configEnergy = (IConfigEnergy) config;
                            IDimensionEnergy dimensionEnergy = configEnergy.getDimensionX();
                            List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                            List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
                            for (int i = 0; i < rangeEnergy.size(); i++) {
                                List<ITrajectory> listTrajectories = rangeEnergy.get(i)
View Full Code Here

                    break;

                case SCAN_ENERGY:

                    IConfigEnergy configEnergy = (IConfigEnergy) config;
                    IDimensionEnergy dimensionEnergy = configEnergy.getDimensionEnergy();
                    List<IActuator> listActuatorEnergy = dimensionEnergy.getActuatorsList();

                    ArrayList<ITrajectory> trajectoriesEnergy = new ArrayList<ITrajectory>();

                    List<IRangeEnergy> rangeEnergy = dimensionEnergy.getRangesEnergyList();
View Full Code Here

TOP

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

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.