Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.ITrajectory


     */
    private List<ITrajectory> findActuatorTrajectories(IDimension1D dimension, int index) {
        List<ITrajectory> actuatorTrajectoriesList = new ArrayList<ITrajectory>(dimension
                .getRangesXList().size());
        for (IRange1D range : dimension.getRangesXList()) {
            ITrajectory trajectory = range.getTrajectoriesList().get(index);
            actuatorTrajectoriesList.add(trajectory);
        }
        return actuatorTrajectoriesList;
    }
View Full Code Here


            }

            for (int i = 0; i < ((IConfig2D) config).getDimensionY().getRangesList().size(); i++)
                for (int j = 0; j < ((IConfig2D) config).getDimensionY().getRangesList().get(i)
                        .getTrajectoriesList().size(); j++) {
                    ITrajectory t = ((IConfig2D) config).getDimensionY().getRangesList().get(i)
                            .getTrajectoriesList().get(j);
                    this.view.setBeginPosition(j, i, t.getBeginPosition() + "");
                    this.view.setEndPosition(j, i, t.getEndPosition() + "");
                    this.view.setDelta(j, i, t.getDelta() + "");
                    this.view.setSpeed(j, i, t.getSpeed() + "");
                    this.view.setRelative(j, i, t.getRelative());
                    this.view.setDeltaconstant(j, i, ((ITrajectory2DY) t).getDeltaConstant());
                }
            this.view.setEnableSpeedControl(((IConfig2D) config).isEnableScanSpeed());
            this.view.setOnTheFly(((IConfig2D) config).isOnTheFly());
View Full Code Here

            }

            for (int j = 0; j < ((IConfig2D) config).getDimensionY().getRangesList().size(); j++) {
                for (int i = 0; i < ((IConfig2D) config).getDimensionY().getActuatorsList().size(); i++) {

                    ITrajectory t = ((IConfig2D) config).getDimensionY().getRangesList().get(j)
                            .getTrajectoriesList().get(i);
                    t.setBeginPosition(Double.valueOf(this.view.getBeginPosition(i, j)));

                    t.setEndPosition(Double.valueOf(this.view.getEndPosition(i, j)));
                    t.setDelta(Double.valueOf(this.view.getDelta(i, j)));

                    t.setSpeed(Double.valueOf(this.view.getSpeed(i, j)));

                    t.setRelative(this.view.getRelative(i, j));
                }

            }
        }
    }
View Full Code Here

     * @param delta
     */
    public void computeRelativeChange(Boolean relative, int iPosition, int jPosition) {
        this.rangeModelsList.get(jPosition).getTrajectoriesList().get(iPosition).setRelative(
                relative);
        ITrajectory t1 = ((IConfig2D) config).getDimensionY().getRangesList().get(jPosition)
                .getTrajectoriesList().get(iPosition);
        t1.setRelative(relative);

        write();
        refresh();

    }
View Full Code Here

     */
    public void computeDeltaConstantChange(Boolean deltaConstant, int iPosition, int jPosition) {
        ((ITrajectory2DY) this.rangeModelsList.get(jPosition).getTrajectoriesList().get(iPosition))
                .setDeltaConstant(deltaConstant);

        ITrajectory t1 = ((IConfig2D) config).getDimensionY().getRangesList().get(jPosition)
                .getTrajectoriesList().get(iPosition);
        ((ITrajectory2DY) t1).setDeltaConstant(deltaConstant);

        write();
        refresh();
View Full Code Here

            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));
            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectory1DModelToAdd);
            ITrajectory t = ((IConfig2D) config).getDimensionY().getRangesList().get(i)
                    .getTrajectoriesList().get(
                            ((IConfig2D) config).getDimensionY().getRangesList().get(i)
                                    .getTrajectoriesList().size() - 1);
            ((Trajectory2DYModel) t).addListener(listenerTrajectory2DY);
            ((ITrajectory2DY) t).setActuator(newList.get(newList.size() - 1));
View Full Code Here

            if (model != null) {
                List<ITrajectory> trajectoryList = getTrajectoriesList();
                if (trajectoryList != null) {
                    List<ITrajectory> trajectoryModelList = new ArrayList<ITrajectory>();
                    for (ITrajectory trajectory : trajectoryList) {
                        ITrajectory trajectoryModel = trajectory.toModel();
                        if (trajectoryModel instanceof IActuatorTrajectory) {
                            IActuator actuator = ((IActuatorTrajectory) trajectory).getActuator();
                            ((IActuatorTrajectory) trajectoryModel)
                                    .setActuator((IActuator) actuator.toModel());
                        }
View Full Code Here

        if (this.rangeModelsList != null && this.actuatorModelsList != null && view != null) {

            for (int i = 0; i < ((IConfigHCS) config).getDimensionX().getRangesXList().size(); i++)
                for (int j = 0; j < ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
                        .getTrajectoriesList().size(); j++) {
                    ITrajectory t = ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
                            .getTrajectoriesList().get(j);
                    this.view.setBeginPosition(j, i, t.getBeginPosition() + "");
                    this.view.setEndPosition(j, i, t.getEndPosition() + "");
                    this.view.setSpeed(j, i, t.getSpeed() + "");
                }
            this.view.setEnableSpeedControl(((IConfigHCS) config).isEnableScanSpeed());
            this.view.setOnTheFly(((IConfigHCS) config).isOnTheFly());
        }
    }
View Full Code Here

     */
    private List<ITrajectory> findActuatorTrajectories(IDimensionEnergy dimension, int index) {
        List<ITrajectory> actuatorTrajectoriesList = new ArrayList<ITrajectory>(dimension
                .getRangesEnergyList().size());
        for (IRangeEnergy range : dimension.getRangesEnergyList()) {
            ITrajectory trajectory = range.getTrajectoriesList().get(index);
            actuatorTrajectoriesList.add(trajectory);
        }
        return actuatorTrajectoriesList;
    }
View Full Code Here

            for (int j = 0, k = 0; j < ((IConfigHCS) config).getDimensionX().getRangesXList()
                    .size(); j++) {
                for (int i = 0; i < ((IConfigHCS) config).getDimensionX().getActuatorsList().size(); i++, k++) {
                    if (((IConfigHCS) config).getDimensionX().getTrajectoriesList().size() > k) {
                        ITrajectory t = ((IConfigHCS) config).getDimensionX().getTrajectoriesList()
                                .get(k);
                        t.setBeginPosition(Double.valueOf(this.view.getBeginPosition(i, j)));

                        t.setEndPosition(Double.valueOf(this.view.getEndPosition(i, j)));
                        t.setDelta(Double.valueOf(this.view.getDelta(i, j)));

                        t.setSpeed(Double.valueOf(this.view.getSpeed(i, j)));

                        t.setRelative(this.view.getRelative(i, j));
                    }

                }
            }
        }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.ITrajectory

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.