Package fr.soleil.salsa.entity.scan2D

Examples of fr.soleil.salsa.entity.scan2D.IRange2DY


     * Called when end value changes.
     */
    @Override
    public void notifyToValueChanged(String value, int iPosition, int jPosition, boolean deltaLock) {
        if (!this.actuatorModelsList.isEmpty()) {
            IRange2DY range = getRange(jPosition);
            ITrajectory2DY trajectory = getTrajectory(range, iPosition);
            this.computeEndPositionChange(trajectory, Double.valueOf(value), deltaLock);
        }
    }
View Full Code Here


     */
    public void read() {
        if (this.config != null && view != null) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionY().getRangesList().size(); j++) {
                IRange2DY r = ((IConfig2D) config).getDimensionY().getRangesList().get(j);
                r.setStepsNumber(Integer.valueOf(view.getStepNumber(j)));
            }

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

View Full Code Here

            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList()
                    .get(((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                Trajectory2DYModel trajectory2DYModelToAdd = new Trajectory2DYModel();
                trajectory2DYModelToAdd.setBeginPosition(0.0);
                trajectory2DYModelToAdd.setEndPosition(0.0);
                trajectory2DYModelToAdd.setDelta(0.0);
                trajectory2DYModelToAdd.setRelative(false);
                trajectory2DYModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectory2DYModelToAdd);
                trajectory2DYModelToAdd.setRange(rangeToAdd);
                trajectory2DYModelToAdd.setActuator(actuatorModelsList.get(i));

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i)).addListener(listenerTrajectory2DY);

            }
            if (view != null) {
                view.addRange();
            }
View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DY range) {
        IRange2DY oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DY range) {
        IRange2DY oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DY range) {
        IRange2DY oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

     */
    public void refresh() {
        if (this.rangeModelsList != null && this.actuatorModelsList != null && view != null) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionY().getRangesList().size(); j++) {
                IRange2DY r = ((IConfig2D) config).getDimensionY().getRangesList().get(j);
                view.setStepNumber(j, r.getStepsNumber() + "");
            }

            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++) {
View Full Code Here

     */
    public void read() {
        if (this.config != null && view != null) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionY().getRangesList().size(); j++) {
                IRange2DY r = ((IConfig2D) config).getDimensionY().getRangesList().get(j);
                r.setStepsNumber(Integer.valueOf(view.getStepNumber(j)));
            }

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

View Full Code Here

        trajectoryImpl.setDelta(delta);

        ITrajectory2DY result = (ITrajectory2DY) Config2DApi.computeDeltaChange(trajectoryImpl,
                true, 1);

        IRange2DY resultRange = result.getRange();
        IRange2DY range = trajectory.getRange();
        range.setNumberOfSteps(resultRange.getNumberOfSteps());
        range.setStepsNumber(resultRange.getStepsNumber());
        swapRange(range, resultRange);

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

            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList().get(
                    ((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                Trajectory2DYModel trajectory2DYModelToAdd = new Trajectory2DYModel();
                trajectory2DYModelToAdd.setBeginPosition(0.0);
                trajectory2DYModelToAdd.setEndPosition(0.0);
                trajectory2DYModelToAdd.setDelta(0.0);
                trajectory2DYModelToAdd.setRelative(false);
                trajectory2DYModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectory2DYModelToAdd);
                trajectory2DYModelToAdd.setRange(rangeToAdd);
                trajectory2DYModelToAdd.setActuator(actuatorModelsList.get(i));

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);

            }
            if (view != null) {
                view.addRange();
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scan2D.IRange2DY

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.