Package fr.soleil.salsa.entity.event

Examples of fr.soleil.salsa.entity.event.ConfigKModel


                                .addListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.addListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.addListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
View Full Code Here


                                .removeListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.removeListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.removeListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
View Full Code Here

                                .addListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.addListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.addListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
View Full Code Here

                                .removeListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.removeListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.removeListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
View Full Code Here

        setType(ScanType.SCAN_K);
    }

    @Override
    protected IConfig<IDimensionK> initModel() {
        ConfigKModel configKModel = new ConfigKModel(this);
        IDimensionK dimension = (IDimensionK) getDimensionX();
        if (dimension != null) {
            IDimensionK dimensionModel = (IDimensionK) dimension.toModel();
            List<IActuator> actuatorList = dimension.getActuatorsList();
            List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
            dimensionModel.setActuatorsList(actuatorListModel);

            IRangeK rangeK = dimension.getRangeX();
            IRangeK rangeModelK = (IRangeK) rangeK.toModel();
            dimension.setRangeX(rangeModelK);

            configKModel.setDimensionX(dimensionModel);
        }
        return configKModel;
    }
View Full Code Here

        setType(ScanType.SCAN_K);
    }

    @Override
    protected IConfig<IDimensionK> initModel() {
        ConfigKModel configKModel = new ConfigKModel(this);
        IDimensionK dimension = (IDimensionK) getDimensionX();
        if (dimension != null) {
            IDimensionK dimensionModel = (IDimensionK) dimension.toModel();
            List<IActuator> actuatorList = dimension.getActuatorsList();
            List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
            dimensionModel.setActuatorsList(actuatorListModel);

            IRangeK rangeK = dimension.getRangeX();
            IRangeK rangeModelK = (IRangeK) rangeK.toModel();
            dimension.setRangeX(rangeModelK);

            configKModel.setDimensionX(dimensionModel);
        }
        return configKModel;
    }
View Full Code Here

        setType(ScanType.SCAN_K);
    }

    @Override
    protected IConfig<IDimensionK> initModel() {
        ConfigKModel configKModel = new ConfigKModel(this);
        IDimensionK dimension = (IDimensionK) getDimensionX();
        if (dimension != null && dimension instanceof IObjectImpl<?>) {
            IDimensionK dimensionModel = (IDimensionK) ((IObjectImpl<?>) dimension).toModel();
            List<IActuator> actuatorList = dimension.getActuatorsList();
            List<IActuator> actuatorListModel = convertActuatorListToModel(actuatorList);
            dimensionModel.setActuatorsList(actuatorListModel);
            configKModel.setDimensionX(dimensionModel);
        }
        return configKModel;
    }
View Full Code Here

                                .addListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.addListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).addListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.addListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
View Full Code Here

                                .removeListener(listenerTrajectoryEnergy);
                    }
                    break;

                case SCAN_K:
                    ConfigKModel configKModel = (ConfigKModel) config;
                    configKModel.removeListener(listenerConfigK);
                    for (ISensor sensor : config.getSensorsList()) {
                        ((SensorModel) sensor).removeListener(listenerSensor);
                    }
                    DimensionKModel dimensionKModel = (DimensionKModel) configKModel
                            .getDimensionX();
                    dimensionKModel.removeListener(listenerDimensionK);
                    for (IActuator actuator : dimensionKModel.getActuatorsList()) {
                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.ConfigKModel

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.