Package fr.soleil.model.scanserver

Examples of fr.soleil.model.scanserver.Trajectory


            trajectoryController.notifyCustomTrajectoryValueChanged(doubleValues, iPosition, jPosition);
        }
    }

    public static void main(String[] args) {
        Trajectory trajectory = new Trajectory();
        trajectory.setCompleteTrajectory(new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 10 });

        TrajectoryView view = new TrajectoryView();
        JFrame frame = new JFrame();
        frame.setContentPane(view);
        view.setSize(300, 400);
        frame.setSize(view.getSize());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle("TrajectoryView test");
        view.setBeginPosition(String.valueOf(trajectory.getFrom()));
        view.setEndPosition(String.valueOf(trajectory.getTo()));
        view.setCustomTrajectoryValues(trajectory.getCompleteTrajectory());
        frame.setVisible(true);
    }
View Full Code Here


            trajectoryController.notifyCustomTrajectoryValueChanged(doubleValues, iPosition, jPosition);
        }
    }

    public static void main(String[] args) {
        Trajectory trajectory = new Trajectory();
        trajectory.setCompleteTrajectory(new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 10 });

        TrajectoryView view = new TrajectoryView();
        JFrame frame = new JFrame();
        frame.setContentPane(view);
        view.setSize(300, 400);
        frame.setSize(view.getSize());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle("TrajectoryView test");
        view.setBeginPosition(String.valueOf(trajectory.getFrom()));
        view.setEndPosition(String.valueOf(trajectory.getTo()));
        view.setCustomTrajectoryValues(trajectory.getCompleteTrajectory());
        frame.setVisible(true);
    }
View Full Code Here

                List<Trajectory> trajectoryList = CurrentConfigurationParser.getCurrentTrajectory(
                        scanServer, index);
                if (trajectoryList != null && !trajectoryList.isEmpty()) {
                    IRange range = null;
                    ITrajectory configTrajectory = null;
                    Trajectory trajectory = null;
                    for (int i = 0; i < trajectoryList.size(); i++) {
                        trajectory = trajectoryList.get(i);
                        range = createRange(dimension);
                        configTrajectory = range.getTrajectoriesList().get(i);
                        if (configTrajectory instanceof IActuatorTrajectory && actuatorList != null
                                && actuatorList.size() == trajectoryList.size()) {
                            ((IActuatorTrajectory) configTrajectory).setActuator(actuatorList
                                    .get(i));
                        }
                        range.setStepsNumber(trajectory.getStepNumber());
                        if (range instanceof IRangeIntegrated) {
                            ((IRangeIntegrated) range)
                                    .setIntegrationTime(CurrentConfigurationParser
                                            .readIntegrationTime(scanServer));
                        }
                        configTrajectory.setBeginPosition(trajectory.getFrom());
                        configTrajectory.setEndPosition(trajectory.getTo());
                        configTrajectory.setTrajectory(trajectory.getCompleteTrajectory());
                    }
                }
            }
            catch (Exception e) {
                // TODO: handle exception
View Full Code Here

            List<Trajectory> trajectoryList = CurrentConfigurationParser.getCurrentTrajectory(
                    scanServer, index);
            if (trajectoryList != null && !trajectoryList.isEmpty()) {
                IRange range = null;
                ITrajectory configTrajectory = null;
                Trajectory trajectory = null;
                for (int i = 0; i < trajectoryList.size(); i++) {
                    trajectory = trajectoryList.get(i);
                    range = createRange(dimension);
                    configTrajectory = range.getTrajectoriesList().get(i);
                    if (configTrajectory instanceof IActuatorTrajectory && actuatorList != null
                            && actuatorList.size() == trajectoryList.size()) {
                        ((IActuatorTrajectory) configTrajectory).setActuator(actuatorList.get(i));
                    }
                    range.setStepsNumber(trajectory.getStepNumber());
                    if (range instanceof IRangeIntegrated) {
                        ((IRangeIntegrated) range).setIntegrationTime(CurrentConfigurationParser
                                .readIntegrationTime(scanServer));
                    }
                    configTrajectory.setBeginPosition(trajectory.getFrom());
                    configTrajectory.setEndPosition(trajectory.getTo());
                    configTrajectory.setTrajectory(trajectory.getCompleteTrajectory());
                }
            }
        }
    }
View Full Code Here

            try {
                List<Trajectory> trajectoryList = CurrentConfigurationParser.getCurrentTrajectory(scanServer, index);
                if ((trajectoryList != null) && !trajectoryList.isEmpty()) {
                    IRange range = null;
                    ITrajectory configTrajectory = null;
                    Trajectory trajectory = null;
                    for (int i = 0; i < trajectoryList.size(); i++) {
                        trajectory = trajectoryList.get(i);
                        range = createRange(dimension);
                        configTrajectory = range.getTrajectoriesList().get(i);
                        if ((configTrajectory instanceof IActuatorTrajectory) && (actuatorList != null)
                                && (actuatorList.size() == trajectoryList.size())) {
                            ((IActuatorTrajectory) configTrajectory).setActuator(actuatorList.get(i));
                        }
                        range.setStepsNumber(trajectory.getStepNumber());
                        if (range instanceof IRangeIntegrated) {
                            ((IRangeIntegrated) range).setIntegrationTime(CurrentConfigurationParser
                                    .readIntegrationTime(scanServer));
                        }
                        configTrajectory.setBeginPosition(trajectory.getFrom());
                        configTrajectory.setEndPosition(trajectory.getTo());
                        configTrajectory.setTrajectory(trajectory.getCompleteTrajectory());
                    }
                }
            } catch (Exception e) {
                // TODO: handle exception
            }
View Full Code Here

            trajectoryController.notifyCustomTrajectoryValueChanged(doubleValues, rangePosition, actuatorName);
        }
    }

    public static void main(String[] args) {
        Trajectory trajectory = new Trajectory();
        trajectory.setCompleteTrajectory(new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 10 });

        TrajectoryView view = new TrajectoryView();
        JFrame frame = new JFrame();
        frame.setContentPane(view);
        view.setSize(300, 400);
        frame.setSize(view.getSize());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle("TrajectoryView test");
        view.setBeginPosition(String.valueOf(trajectory.getFrom()));
        view.setEndPosition(String.valueOf(trajectory.getTo()));
        view.setCustomTrajectoryValues(trajectory.getCompleteTrajectory());
        frame.setVisible(true);
    }
View Full Code Here

            try {
                List<Trajectory> trajectoryList = CurrentConfigurationParser.getCurrentTrajectory(scanServer, index);
                if (trajectoryList != null && !trajectoryList.isEmpty()) {
                    IRange range = null;
                    ITrajectory configTrajectory = null;
                    Trajectory trajectory = null;
                    for (int i = 0; i < trajectoryList.size(); i++) {
                        trajectory = trajectoryList.get(i);
                        range = createRange(dimension);
                        configTrajectory = range.getTrajectoriesList().get(i);
                        if (configTrajectory instanceof IActuatorTrajectory && actuatorList != null
                                && actuatorList.size() == trajectoryList.size()) {
                            ((IActuatorTrajectory) configTrajectory).setActuator(actuatorList.get(i));
                        }
                        range.setStepsNumber(trajectory.getStepNumber());
                        if (range instanceof IRangeIntegrated) {
                            ((IRangeIntegrated) range).setIntegrationTime(CurrentConfigurationParser
                                    .readIntegrationTime(scanServer));
                        }
                        configTrajectory.setBeginPosition(trajectory.getFrom());
                        configTrajectory.setEndPosition(trajectory.getTo());
                        configTrajectory.setTrajectory(trajectory.getCompleteTrajectory());
                    }
                }
            } catch (Exception e) {
                // TODO: handle exception
            }
View Full Code Here

                    jPosition);
        }
    }

    public static void main(String[] args) {
        Trajectory trajectory = new Trajectory();
        trajectory.setCompleteTrajectory(new double[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 10 });

        TrajectoryView view = new TrajectoryView();
        JFrame frame = new JFrame();
        frame.setContentPane(view);
        view.setSize(300, 400);
        frame.setSize(view.getSize());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle("TrajectoryView test");
        view.setBeginPosition(String.valueOf(trajectory.getFrom()));
        view.setEndPosition(String.valueOf(trajectory.getTo()));
        view.setCustomTrajectoryValues(trajectory.getCompleteTrajectory());
        frame.setVisible(true);
    }
View Full Code Here

TOP

Related Classes of fr.soleil.model.scanserver.Trajectory

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.