Package fr.soleil.salsa.entity.scank

Examples of fr.soleil.salsa.entity.scank.IDimensionK


                    // Actuators
                    List<IActuator> actuatorsList;
                    List<String> actuatorsNamesList;
                    String[] actuatorsNamesArray;
                    IDimensionK dimension = config.getDimensionX();
                    actuatorsList = dimension.getActuatorsList();
                    actuatorsNamesList = new ArrayList<String>(actuatorsList.size());
                    for (IActuator actuator : actuatorsList) {
                        if (actuator.isEnabled()) {
                            actuatorsNamesList.add(actuator.getName());
                        }
View Full Code Here


    }

    @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);
View Full Code Here

        if (dimensionEnergy == null) {
            dimensionEnergy = new DimensionEnergyImpl();
            configEnergy.setDimensionX(dimensionEnergy);
        }

        IDimensionK dimensionK = configK.getDimensionX();
        if (dimensionK == null) {
            dimensionK = new DimensionKImpl();
            configK.setDimensionX(dimensionK);
        }
View Full Code Here

                            }
                            break;

                        case SCAN_K:
                            IConfigK configK = (IConfigK) config;
                            IDimensionK dimensionK = configK.getDimensionX();
                            ITrajectoryK trajectoryK = dimensionK.getRangeX().getTrajectory();
                            List<IActuator> listTrajectory = dimensionK.getActuatorsList();
                            for (int i = 0; i < listTrajectory.size(); i++) {
                                IActuator actuatork = listTrajectory.get(i);
                                if (actuatork != null && actuatork.isEnabled()) {
                                    ITrajectory trajectory = copyToTrajectoryImpl(actuatork,
                                            trajectoryK);
View Full Code Here

            view.setEnabled(false);
        }

        if (aconfig != null && aconfig instanceof IConfigK) {
            config = (IConfigK) aconfig;
            IDimensionK dimension = config.getDimensionX();
            if (dimension != null) {
                trajectory = dimension.getTrajectory();
            }
            // Get Database information
            try {
                IConfigK dbconfig = (IConfigK) SalsaAPI.getConfigById(config.getId(), true);
                if (dbconfig != null && dbconfig.getDimensionX() != null) {
View Full Code Here

                            }
                            break;

                        case SCAN_K:
                            IConfigK configK = (IConfigK) config;
                            IDimensionK dimensionK = configK.getDimensionX();
                            ITrajectoryK trajectoryK = dimensionK.getRangeX().getTrajectory();
                            List<IActuator> listTrajectory = dimensionK.getActuatorsList();
                            for (int i = 0; i < listTrajectory.size(); i++) {
                                IActuator actuatork = listTrajectory.get(i);
                                if (actuatork != null && actuatork.isEnabled()) {
                                    ITrajectory trajectory = copyToTrajectoryImpl(actuatork,
                                            trajectoryK);
View Full Code Here

        if (dimensionEnergy == null) {
            dimensionEnergy = new DimensionEnergyImpl();
            configEnergy.setDimensionX(dimensionEnergy);
        }

        IDimensionK dimensionK = configK.getDimensionX();
        if (dimensionK == null) {
            dimensionK = new DimensionKImpl();
            configK.setDimensionX(dimensionK);
        }
View Full Code Here

                    // Actuators
                    List<IActuator> actuatorsList;
                    List<String> actuatorsNamesList;
                    String[] actuatorsNamesArray;
                    IDimensionK dimension = config.getDimensionX();
                    actuatorsList = dimension.getActuatorsList();
                    actuatorsNamesList = new ArrayList<String>(actuatorsList.size());
                    for (IActuator actuator : actuatorsList) {
                        if (actuator.isEnabled()) {
                            actuatorsNamesList.add(actuator.getName());
                        }
View Full Code Here

    }

    @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);
View Full Code Here

                            }
                        }
                    }
                    else if (config instanceof IConfigK) {
                        IConfigK configK = (IConfigK) config;
                        IDimensionK dimensionK = configK.getDimensionX();
                        ITrajectoryK trajectoryK = dimensionK.getRangeX().getTrajectory();
                        List<IActuator> listTrajectory = dimensionK.getActuatorsList();
                        for (int i = 0; i < listTrajectory.size(); i++) {
                            IActuator actuatork = listTrajectory.get(i);
                            if (actuatork != null && actuatork.isEnabled()) {
                                ITrajectory trajectory = copyToTrajectoryImpl(actuatork,
                                        trajectoryK);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scank.IDimensionK

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.