Package fr.soleil.salsa.entity.impl.scan1d

Examples of fr.soleil.salsa.entity.impl.scan1d.Trajectory1DImpl


    /**
     * Default constructor, that creates a new instance of Trajectory1DImpl and wraps it.
     */
    public Trajectory1DModel() {
        this(new Trajectory1DImpl());
    }
View Full Code Here


    /**
     * Default constructor, that creates a new instance of Trajectory1DImpl and wraps it.
     */
    public Trajectory1DModel() {
        this(new Trajectory1DImpl());
    }
View Full Code Here

    public static ITrajectory createTrajectory(IConfig<?> config, boolean yActuator) {
        ITrajectory trajectory = null;
        if (config != null) {
            if (config instanceof IConfig1D) {
                trajectory = new Trajectory1DImpl();
                ((ITrajectory1D) trajectory).setDeltaConstant(false);

            } else if (config instanceof IConfig2D) {
                if (yActuator) {
                    trajectory = new Trajectory2DYImpl();
View Full Code Here

    /**
     * Default constructor, that creates a new instance of Trajectory1DImpl and wraps it.
     */
    public Trajectory1DModel() {
        this(new Trajectory1DImpl());
    }
View Full Code Here

        for (int i = 0; i < dim.getRangesXList().size(); i++) {
            for (int j = 0; j < dim.getActuatorsList().size(); j++) {
                IActuator a = dim.getActuatorsList().get(j);
                IRange1D r = dim.getRangesXList().get(i);

                ITrajectory1D t = new Trajectory1DImpl();
                t.setBeginPosition(0.0);
                t.setEndPosition(4.0);
                t.setActuator(a);
                t.setRange(r);
                r.getTrajectoriesList().add(t);
                dim.getTrajectoriesList().add(t);

            }
        }
View Full Code Here

        for(int i = 0; i< dim.getRangesXList().size(); i++) {
            for(int j = 0; j< dim.getActuatorsList().size(); j++) {
                IActuator a = dim.getActuatorsList().get(j);
                IRange1D r = dim.getRangesXList().get(i);
               
                ITrajectory1D t = new  Trajectory1DImpl();
                t.setBeginPosition(0.0);
                t.setEndPosition(4.0);
                t.setActuator(a);
                t.setRange(r);
                r.getTrajectoriesList().add(t);
                dim.getTrajectoriesList().add(t);
               
            }
        }
View Full Code Here

        for (int i = 0; i < dim.getRangesXList().size(); i++) {
            for (int j = 0; j < dim.getActuatorsList().size(); j++) {
                IActuator a = dim.getActuatorsList().get(j);
                IRange1D r = dim.getRangesXList().get(i);

                ITrajectory1D t = new Trajectory1DImpl();
                t.setBeginPosition(0.0);
                t.setEndPosition(4.0);
                t.setActuator(a);
                t.setRange(r);
                r.getTrajectoriesList().add(t);
                dim.getTrajectoriesList().add(t);

            }
        }
View Full Code Here

        t1.setRelative(t2.getRelative());
        t1.setSpeed(t2.getSpeed());
    }

    private Trajectory1DImpl getPartialTrajectory(ITrajectory1D src) {
        ITrajectory i2 = new Trajectory1DImpl();
        AutoCopier.copyPartial(src, i2);
        return (Trajectory1DImpl) i2;
    }
View Full Code Here

                .setBeginPosition(beginPosition);

        IRange1D iRange = ((IConfig1D) config).getDimensionX().getRangesXList().get(jPosition);
        ITrajectory1D itrajectory = (ITrajectory1D) iRange.getTrajectoriesList().get(iPosition);

        Trajectory1DImpl trajectoryImpl = getPartialTrajectory(itrajectory);
        trajectoryImpl.setBeginPosition(beginPosition);

        ITrajectory1D result = (ITrajectory1D) Config1DApi.computeBeginPositionChange(
                trajectoryImpl, deltaLock);

        swapTrajectory(itrajectory, result);
View Full Code Here

                .setEndPosition(endPosition);

        ITrajectory1D t1 = (ITrajectory1D) ((IConfig1D) config).getDimensionX().getRangesXList()
                .get(jPosition).getTrajectoriesList().get(iPosition);

        Trajectory1DImpl trajectoryImpl = getPartialTrajectory(t1);
        trajectoryImpl.setEndPosition(endPosition);

        ITrajectory1D result = (ITrajectory1D) Config1DApi.computeBeginPositionChange(
                trajectoryImpl, deltaLock);

        swapTrajectory(t1, result);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.impl.scan1d.Trajectory1DImpl

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.