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

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


    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 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

                trajectory = new TrajectoryEnergyImpl();
                ((IDimensionEnergy) dimension).getRangesEnergyList().add((IRangeEnergy) range);
            }
            else if (dimension instanceof IDimension1D) {
                range = new Range1DImpl();
                trajectory = new Trajectory1DImpl();
                ((IDimension1D) dimension).getRangesXList().add((IRange1D) range);
            }
        }
        if (range != null && trajectory != null) {
            trajectory.setIRange(range);
View Full Code Here

                trajectory = new TrajectoryEnergyImpl();
                ((IDimensionEnergy) dimension).getRangesEnergyList().add((IRangeEnergy) range);
            }
            else if (dimension instanceof IDimension1D) {
                range = new Range1DImpl();
                trajectory = new Trajectory1DImpl();
                ((IDimension1D) dimension).getRangesXList().add((IRange1D) range);
            }
        }
        if (range != null && trajectory != null) {
            trajectory.setIRange(range);
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

                .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

    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

    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 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

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.