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

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

    // }

    private Trajectory1DImpl getPartialTrajectory(ITrajectory1D src) {

        // ITrajectory i2 = (ITrajectory) AutoCopier.copyPartial(src);
        ITrajectory i2 = new Trajectory1DImpl();
        AutoCopier.copyPartial(src, i2);
        return (Trajectory1DImpl) i2;
        // The trajectory
        /*
        Trajectory1DImpl dst = new Trajectory1DImpl();
View Full Code Here

        /*
        ITrajectory trajectoryImpl = Trajectory1DModelWrapperFactory.getInstance().unWrap(
                itrajectory);
        */
        Trajectory1DImpl trajectoryImpl = getPartialTrajectory(itrajectory);
        trajectoryImpl.setBeginPosition(beginPosition);

        // AutoCopier.copyToImpl((IConfig) itrajectory);
        ITrajectory1D result = (ITrajectory1D) Config1DApi.computeBeginPositionChange(
                trajectoryImpl, deltaLock);

View Full Code Here

                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

        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

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

    public void computeDeltaChange(Double delta, int iPosition, int jPosition) {

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

        Trajectory1DImpl trajectoryImpl = getPartialTrajectory(itrajectory);
        trajectoryImpl.setDelta(delta);

        ITrajectory1D result = (ITrajectory1D) Config1DApi.computeDeltaChange(trajectoryImpl);

        IRange1D resultRange = result.getRange();
        IRange1D range = itrajectory.getRange();
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

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.