Package fr.soleil.salsa.entity.scank

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


    /**
     *
     */
    public void setTrajectory(ITrajectoryK trajectory) {
        ITrajectoryK oldValue = this.baseBean.getTrajectory();
        this.baseBean.setTrajectory(trajectory);
        this.firePropertyChange("trajectories", oldValue, trajectory);
    }
View Full Code Here


        return this.baseBean.getTrajectory();
    }

    @Override
    public void setTrajectory(ITrajectoryK trajectory) {
        ITrajectoryK oldValue = this.baseBean.getTrajectory();
        this.baseBean.setTrajectory(trajectory);
        this.firePropertyChange("trajectory", oldValue, trajectory);
    }
View Full Code Here

                    setAttribute("actuators", actuatorsNamesArray);

                    // Dimension
                    // A scan K has a single dimension, a single range, a single trajectory.

                    ITrajectoryK trajectoryK = config.getDimensionX().getRangeX().getTrajectory();
                    double[] trajectoriesPositionsArray = TrajectoryCalculator
                            .calculateKTrajectoriesPosition(trajectoryK);
                    // System.out.println("K Trajectory="
                    // + Arrays.toString(trajectoriesPositionsArray));
                    // System.out.println("K Trajectory size=" + trajectoriesPositionsArray.length);
View Full Code Here

                    setAttribute("actuators", actuatorsNamesArray);

                    // Dimension
                    // A scan K has a single dimension, a single range, a single trajectory.

                    ITrajectoryK trajectoryK = config.getDimensionX().getRangeX().getTrajectory();
                    double[] trajectoriesPositionsArray = TrajectoryCalculator
                            .calculateKTrajectoriesPosition(trajectoryK);
                    double[] integrationsTimesArray = TrajectoryCalculator
                            .calculateIntegrationTimesK(trajectoryK);
                    int pointNumber = trajectoriesPositionsArray.length;
View Full Code Here

                    setAttribute("actuators", actuatorsNamesArray);

                    // Dimension
                    // A scan K has a single dimension, a single range, a single trajectory.

                    ITrajectoryK trajectoryK = config.getDimensionX().getRangeX().getTrajectory();
                    double[] trajectoriesPositionsArray = TrajectoryCalculator
                            .calculateKTrajectoriesPosition(trajectoryK);
                    double[] integrationsTimesArray = TrajectoryCalculator
                            .calculateIntegrationTimesK(trajectoryK);
                    int pointNumber = trajectoriesPositionsArray.length;
View Full Code Here

                        ((ActuatorModel) actuator).addListener(listenerActuator);
                    }
                    IRangeK rangeK = dimensionKModel.getRangeX();
                    ((RangeKModel) rangeK).addListener(listenerRangeK);

                    ITrajectoryK trajectoryK = dimensionKModel.getTrajectory();
                    ((TrajectoryKModel) trajectoryK).addListener(listenerTrajectoryK);

                    break;
            }
        }
View Full Code Here

                        ((ActuatorModel) actuator).removeListener(listenerActuator);
                    }
                    IRangeK rangeK = dimensionKModel.getRangeX();
                    ((RangeKModel) rangeK).removeListener(listenerRangeK);

                    ITrajectoryK trajectoryK = dimensionKModel.getTrajectory();
                    ((TrajectoryKModel) trajectoryK).removeListener(listenerTrajectoryK);
                    break;

            }
            config = null;
View Full Code Here

    /**
     *
     */
    public void setTrajectory(ITrajectoryK trajectory) {
        ITrajectoryK oldValue = this.baseBean.getTrajectory();
        this.baseBean.setTrajectory(trajectory);
        this.firePropertyChange("trajectories", oldValue, trajectory);
    }
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,
View Full Code Here

    private ITrajectory copyToTrajectoryImpl(IActuator actuator, ITrajectory trajectory) {
        ITrajectory trajectoryImpl = null;
        // System.out.println("copyToTrajectoryImpl= " + name + " trajectory= " + trajectory);
        if (trajectory != null && actuator != null) {
            if (trajectory instanceof ITrajectoryK) {
                ITrajectoryK trajectoryK = (ITrajectoryK) trajectory;
                TrajectoryKImpl trajectoryKImpl = new TrajectoryKImpl();
                trajectoryKImpl.setRelative(false);
                trajectoryKImpl.setE0(trajectoryK.getE0());
                trajectoryKImpl.setE1(trajectoryK.getE1());
                trajectoryKImpl.setE2(trajectoryK.getE2());
                trajectoryKImpl.setEDeltaEdge(trajectoryK.getEDeltaEdge());
                trajectoryKImpl.setEDeltaPreEdge(trajectoryK.getEDeltaPreEdge());
                trajectoryKImpl.setEMin(trajectoryK.getEMin());
                trajectoryKImpl.setKDelta(trajectoryK.getKDelta());
                trajectoryKImpl.setKMax(trajectoryK.getKMax());
                trajectoryKImpl.setKMin(trajectoryK.getKMin());
                trajectoryKImpl.setM(trajectoryK.getM());
                trajectoryKImpl.setN(trajectoryK.getN());
                trajectoryImpl = trajectoryKImpl;
            }
            else {
                trajectoryImpl = new TrajectoryImpl();
                Double beginPosition = trajectory.getBeginPosition();
View Full Code Here

TOP

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

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.