Package fr.soleil.salsa.entity.scanenergy

Examples of fr.soleil.salsa.entity.scanenergy.ITrajectoryEnergy


            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange();
                rangeEnergy.setDimension(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory();
                trajectoryEnergy.setRange(rangeEnergy);
                trajectoryEnergy.setActuator(actuator);
                List<ITrajectoryEnergy> trajectoriesEnergyList = dimensionEnergy
                        .getTrajectoriesEnergyList();
                if (trajectoriesEnergyList == null) {
                    trajectoriesEnergyList = new ArrayList<ITrajectoryEnergy>();
                    dimensionEnergy.setTrajectoriesEnergyList(trajectoriesEnergyList);
View Full Code Here


     * @param range the range that was modified.
     * @return the updated config. It may be another instance entirely.
     */
    public static void computeIntegrationTimeChange(ITrajectoryEnergy trajectory) {

        ITrajectoryEnergy trajectoryImpl = (ITrajectoryEnergy) AutoCopier.toImpl(trajectory);

        TrajectoryEnergyImpl result = (TrajectoryEnergyImpl) ConfigScanEnergyApi
                .computeIntegrationTimeChange(trajectoryImpl);

        swapRange(trajectory.getRange(), result.getRange());
View Full Code Here

     *
     * @param range the range that was modified.
     * @return the updated config. It may be another instance entirely.
     */
    public static void computeStepsNumberChange(ITrajectoryEnergy trajectory) {
        ITrajectoryEnergy trajectoryImpl = (ITrajectoryEnergy) AutoCopier.toImpl(trajectory);

        TrajectoryEnergyImpl result = (TrajectoryEnergyImpl) ConfigScanEnergyApi
                .computeStepsNumberChange(trajectoryImpl);

        swapRange(trajectory.getRange(), result.getRange());
View Full Code Here

        List<ITrajectory> lt1 = r1.getTrajectoriesList();
        List<ITrajectory> lt2 = r2.getTrajectoriesList();
        if (lt1.size() == lt2.size()) {
            int size = lt1.size();
            for (int i = 0; i < size; i++) {
                ITrajectoryEnergy t1 = (ITrajectoryEnergy) lt1.get(i);
                ITrajectoryEnergy t2 = (ITrajectoryEnergy) lt2.get(i);
                swapTrajectory(t1, t2);
            }
        }
    }
View Full Code Here

     * @param deltaLock delta should change as little as possible.
     * @return the updated config. It may be another instance entirely.
     */
    public static void computeBeginPositionChange(ITrajectoryEnergy trajectory, boolean deltaLock) {

        ITrajectoryEnergy trajectoryImpl = (ITrajectoryEnergy) AutoCopier.toImpl(trajectory);

        ITrajectoryEnergy result = (ITrajectoryEnergy) ConfigScanEnergyApi
                .computeBeginPositionChange(trajectory, deltaLock);
        swapTrajectory(trajectoryImpl, trajectoryImpl);
    }
View Full Code Here

     * @param trajectory the trajectory that was modified.
     * @param deltaLock delta should change as little as possible.
     * @return the updated config. It may be another instance entirely.
     */
    public static void computeEndPositionChange(ITrajectoryEnergy trajectory, boolean deltaLock) {
        ITrajectoryEnergy trajectoryImpl = (ITrajectoryEnergy) AutoCopier.toImpl(trajectory);

        TrajectoryEnergyImpl result = (TrajectoryEnergyImpl) ConfigScanEnergyApi
                .computeEndPositionChange(trajectoryImpl, deltaLock);
        swapTrajectory(trajectoryImpl, trajectoryImpl);

View Full Code Here

     *
     * @param trajectory the trajectory that was modified.
     * @return the updated config. It may be another instance entirely.
     */
    public static void computeDeltaChange(ITrajectoryEnergy trajectory) {
        ITrajectoryEnergy trajectoryImpl = (ITrajectoryEnergy) AutoCopier.toImpl(trajectory);

        TrajectoryEnergyImpl result = (TrajectoryEnergyImpl) ConfigScanEnergyApi
                .computeDeltaChange(trajectoryImpl);
        swapTrajectory(trajectoryImpl, trajectoryImpl);
    }
View Full Code Here

        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getBeginPosition() == beginPosition) {
            return;
        }

        trajectoryEnergy.setBeginPosition(beginPosition);

        ConfigEnergyApiService.computeBeginPositionChange(trajectoryEnergy, deltaLock);

        refresh();
    }
View Full Code Here

        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getDelta() == delta) {
            return;
        }

        trajectoryEnergy.setDelta(delta);

        ;

        ConfigEnergyApiService.computeDeltaChange(trajectoryEnergy);
View Full Code Here

        }

        IDimensionEnergy dimensionEnergy = config.getDimensionX();
        List<IRangeEnergy> rangesList = dimensionEnergy.getRangesEnergyList();
        IRangeEnergy rangeEnergy = rangesList.get(row);
        ITrajectoryEnergy trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList()
                .get(0);

        if (trajectoryEnergy.getEndPosition() == endPosition) {
            return;
        }

        trajectoryEnergy.setEndPosition(endPosition);

        ConfigEnergyApiService.computeEndPositionChange(trajectoryEnergy, deltaLock);

        refresh();
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scanenergy.ITrajectoryEnergy

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.