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();
                        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

                    // 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

   
    /**
     *
     */
    public void setDimensionX(IDimensionK dimensionX) {
        IDimensionK oldValue = this.baseBean.getDimensionX();
        this.baseBean.setDimensionX(dimensionX);
        this.firePropertyChange("dimensionX", oldValue, dimensionX);
    }
View Full Code Here

        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

        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

                    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();
                                    IRangeK tmpRangeK = dimensionK.getRangeX();
                                    actuatorList = dimensionK.getActuatorsList();
                                    modifyTrajectory(tmpRangeK, actuatorList, actuatorTrajectoryMap);
                                    break;

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

    /**
     *
     */
    public void setDimensionX(IDimensionK dimensionX) {
        IDimensionK oldValue = this.baseBean.getDimensionX();
        this.baseBean.setDimensionX(dimensionX);
        this.firePropertyChange("dimensionX", oldValue, dimensionX);
    }
View Full Code Here

    public void setConfig(IConfig<?> aconfig) {
        this.config = null;
        this.trajectory = null;
        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

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.