Package fr.soleil.salsa.entity.scanenergy

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


            IDimensionEnergy dimensionEnergy = config.getDimensionX();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory(rangeEnergy, actuator);
                List<ITrajectory> trajectoriesList = rangeEnergy.getTrajectoriesList();
                if (trajectoriesList == null) {
                    trajectoriesList = new ArrayList<ITrajectory>();
                    rangeEnergy.setTrajectoriesList(trajectoriesList);
                }
View Full Code Here


            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 = AutoCopier.toImpl(trajectory, ITrajectoryEnergy.class);

        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 = AutoCopier.toImpl(trajectory, ITrajectoryEnergy.class);

        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 = AutoCopier.toImpl(trajectory, ITrajectoryEnergy.class);

        ITrajectoryEnergy result = (ITrajectoryEnergy) ConfigScanEnergyApi
                .computeBeginPositionChange(trajectoryImpl, deltaLock);
        swapTrajectoryAndUpdateRange(trajectory, result);
    }
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 = AutoCopier.toImpl(trajectory, ITrajectoryEnergy.class);

        TrajectoryEnergyImpl result = (TrajectoryEnergyImpl) ConfigScanEnergyApi
                .computeEndPositionChange(trajectoryImpl, deltaLock);
        swapTrajectoryAndUpdateRange(trajectory, result);
    }
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 = AutoCopier.toImpl(trajectory, ITrajectoryEnergy.class);

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

        List<EnergyTrajectoryLine> energyTrajectoryLines;

        if (config != null) {
            List<IRangeEnergy> rangesList = config.getDimensionX().getRangesEnergyList();
            ITrajectoryEnergy trajectoryEnergy;
            energyTrajectoryLines = new ArrayList<EnergyTrajectoryLine>();
            EnergyTrajectoryLine energyTrajectoryLine;
            int row = 0;
            for (IRangeEnergy rangeEnergy : rangesList) {
                trajectoryEnergy = (ITrajectoryEnergy) rangeEnergy.getTrajectoriesList().get(0);
                energyTrajectoryLine = new EnergyTrajectoryLine();
                energyTrajectoryLine.setRange(++row);
                energyTrajectoryLine.setBeginPosition(trajectoryEnergy.getBeginPosition());
                energyTrajectoryLine.setDelta(trajectoryEnergy.getDelta());
                energyTrajectoryLine.setEndPosition(trajectoryEnergy.getEndPosition());
                energyTrajectoryLine.setIntegrationTime(rangeEnergy.getIntegrationTime());
                energyTrajectoryLine.setStepNumber(rangeEnergy.getStepsNumber());
                energyTrajectoryLine.setDeltaConstant(trajectoryEnergy.isDeltaConstant());
                energyTrajectoryLines.add(energyTrajectoryLine);
            }
        }
        else {
            energyTrajectoryLines = null;
View Full Code Here

            IDimensionEnergy dimensionEnergy = config.getDimensionX();
            List<IActuator> actuatorsList = dimensionEnergy.getActuatorsList();
            if (actuatorsList.size() != 0) {
                IActuator actuator = actuatorsList.get(0);
                IRangeEnergy rangeEnergy = createRange(dimensionEnergy);
                ITrajectoryEnergy trajectoryEnergy = createTrajectory(rangeEnergy, actuator);
                List<ITrajectory> trajectoriesList = rangeEnergy.getTrajectoriesList();
                if (trajectoriesList == null) {
                    trajectoriesList = new ArrayList<ITrajectory>();
                    rangeEnergy.setTrajectoriesList(trajectoriesList);
                }
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.