Package fr.soleil.salsa.entity.event

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


        } else if (this instanceof IRange2DX) {
            trajectory = new Trajectory2DXModel();
        } else if (this instanceof IRange2DY) {
            trajectory = new Trajectory2DYModel();
        } else if (this instanceof IRangeHCS) {
            trajectory = new TrajectoryHCSModel();
        } else if (this instanceof IRangeEnergy) {
            trajectory = new TrajectoryEnergyModel();
        } else if (this instanceof IRangeK) {
            trajectory = new TrajectoryKModel();
        }
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

            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()
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);

            }
            if (view != null) {
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()
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

        }
        else if (this instanceof IRange2DY) {
            trajectory = new Trajectory2DYModel();
        }
        else if (this instanceof IRangeHCS) {
            trajectory = new TrajectoryHCSModel();
        }
        else if (this instanceof IRangeEnergy) {
            trajectory = new TrajectoryEnergyModel();
        }
        else if (this instanceof IRangeK) {
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.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.