Package fr.soleil.salsa.client.entity.event

Examples of fr.soleil.salsa.client.entity.event.TrajectoryHCSModel


            IRangeHCS range = ((IConfigHCS) config).getDimensionX().getRangesXList().get(
                    ((IConfigHCS) config).getDimensionX().getRangesXList().size() - 1);
            ((RangeHCSModel) range).addListener(listenerRangeHCS);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
                trajectoryHCSModelToAdd.setBeginPosition(0.0);
                trajectoryHCSModelToAdd.setEndPosition(0.0);
                trajectoryHCSModelToAdd.setDelta(0.0);
                trajectoryHCSModelToAdd.setRelative(false);
                trajectoryHCSModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectoryHCSModelToAdd);
                trajectoryHCSModelToAdd.setRange(rangeToAdd);
                trajectoryHCSModelToAdd.setActuator(actuatorModelsList.get(i));

                ((TrajectoryHCSModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectoryHCS);

            }
View Full Code Here


    public void actuatorAddedEvent(List<IActuator> newList) {
        this.actuatorModelsList.add((ActuatorModel) newList.get(newList.size() - 1));
        ((ActuatorModel) newList.get(newList.size() - 1)).addListener(listenerActuator);
        this.notifyAddActuator(newList.get(newList.size() - 1).getName(), true);
        for (int i = 0; i < this.rangeModelsList.size(); i++) {
            TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
            trajectoryHCSModelToAdd.setBeginPosition(0.0);
            trajectoryHCSModelToAdd.setEndPosition(0.0);
            trajectoryHCSModelToAdd.setDelta(0.0);
            trajectoryHCSModelToAdd.setRelative(false);
            trajectoryHCSModelToAdd.setSpeed(0.0);
            trajectoryHCSModelToAdd.setRange(rangeModelsList.get(i));
            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectoryHCSModelToAdd);

            ITrajectory t = ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
                    .getTrajectoriesList().get(
                            ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
View Full Code Here

            IRangeHCS range = ((IConfigHCS) config).getDimensionX().getRangesXList().get(
                    ((IConfigHCS) config).getDimensionX().getRangesXList().size() - 1);
            ((RangeHCSModel) range).addListener(listenerRangeHCS);

            for (int i = 0; i < this.actuatorModelsList.size(); i++) {
                TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
                trajectoryHCSModelToAdd.setBeginPosition(0.0);
                trajectoryHCSModelToAdd.setEndPosition(0.0);
                trajectoryHCSModelToAdd.setDelta(0.0);
                trajectoryHCSModelToAdd.setRelative(false);
                trajectoryHCSModelToAdd.setSpeed(0.0);

                rangeToAdd.getTrajectoriesList().add(trajectoryHCSModelToAdd);
                trajectoryHCSModelToAdd.setRange(rangeToAdd);
                trajectoryHCSModelToAdd.setActuator(actuatorModelsList.get(i));

                ((TrajectoryHCSModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectoryHCS);

            }
View Full Code Here

    public void actuatorAddedEvent(List<IActuator> newList) {
        this.actuatorModelsList.add((ActuatorModel) newList.get(newList.size() - 1));
        ((ActuatorModel) newList.get(newList.size() - 1)).addListener(listenerActuator);
        this.notifyAddActuator(newList.get(newList.size() - 1).getName(), true);
        for (int i = 0; i < this.rangeModelsList.size(); i++) {
            TrajectoryHCSModel trajectoryHCSModelToAdd = new TrajectoryHCSModel();
            trajectoryHCSModelToAdd.setBeginPosition(0.0);
            trajectoryHCSModelToAdd.setEndPosition(0.0);
            trajectoryHCSModelToAdd.setDelta(0.0);
            trajectoryHCSModelToAdd.setRelative(false);
            trajectoryHCSModelToAdd.setSpeed(0.0);
            trajectoryHCSModelToAdd.setRange(rangeModelsList.get(i));
            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectoryHCSModelToAdd);

            ITrajectory t = ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
                    .getTrajectoriesList().get(
                            ((IConfigHCS) config).getDimensionX().getRangesXList().get(i)
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.client.entity.event.TrajectoryHCSModel

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.