Package fr.soleil.salsa.entity.scank

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


                                    }
                                    break;

                                case SCAN_K:
                                    IConfigK configK = (IConfigK) config;
                                    IDimensionK dimensionK = configK.getDimensionX();
                                    IRangeK tmpRangeK = dimensionK.getRangeX();
                                    actuatorList = dimensionK.getActuatorsList();
                                    modifyTrajectory(tmpRangeK, actuatorList, actuatorTrajectoryMap);
                                    break;

                                case SCAN_ENERGY:
                                    IConfigEnergy configE = (IConfigEnergy) config;
View Full Code Here


            view.setEnabled(false);
        }

        if (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();
                    List<IActuator> listTrajectory = dimensionK.getActuatorsList();
                    for (int i = 0; i < listTrajectory.size(); i++) {
                        String tempId = dimensionK.getActuatorsList().get(i).getName();
                        StringTokenizer st = new StringTokenizer(tempId, "/");
                        String id = null;
                        while (st.hasMoreTokens()) {
                            id = st.nextToken();
                        }
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

                            }
                            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

    }

    @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

            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

            tmpRangeList = dimensionEnergy.getRangesEnergyList();
        } else if (this instanceof IDimensionHCS) {
            IDimensionHCS dimensionHCS = ((IDimensionHCS) this);
            tmpRangeList = dimensionHCS.getRangesXList();
        } else if (this instanceof IDimensionK) {
            IDimensionK dimensionK = ((IDimensionK) this);
            tmpRangeList = dimensionK.getRangesXList();
        } else {
            tmpRangeList = rangeList;
        }
        return tmpRangeList;
    }
View Full Code Here

            dimensionEnergy.setRangesEnergyList((List<IRangeEnergy>) arangeList);
        } else if (this instanceof IDimensionHCS) {
            IDimensionHCS dimensionHCS = ((IDimensionHCS) this);
            dimensionHCS.setRangesXList((List<IRangeHCS>) arangeList);
        } else if (this instanceof IDimensionK) {
            IDimensionK dimensionK = ((IDimensionK) this);
            dimensionK.setRangesXList((List<IRangeK>) arangeList);
        } else {
            this.rangeList = (List<IRange>) arangeList;
        }
    }
View Full Code Here

            } else if ((this instanceof IDimensionHCS) && (range instanceof IRangeHCS)) {
                IDimensionHCS dimensionHCS = ((IDimensionHCS) this);
                List<IRangeHCS> tmpRangeList = dimensionHCS.getRangesXList();
                tmpRangeList.add((IRangeHCS) range);
            } else if ((this instanceof IDimensionK) && (range instanceof IRangeK)) {
                IDimensionK dimensionK = ((IDimensionK) this);
                List<IRangeK> tmpRangeList = dimensionK.getRangesXList();
                tmpRangeList.add((IRangeK) range);
            }
        }
    }
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.