Package fr.soleil.salsa.entity.event

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


    public void setRange(IRange2DX range) {
        this.range = range;
    }

    protected ITrajectory initModel() {
        return new Trajectory2DXModel(this);
    }
View Full Code Here


    public ITrajectory createTrajectory(IActuator actuator) {
        ITrajectory trajectory = null;
        if (this instanceof IRange1D) {
            trajectory = new Trajectory1DModel();
        } 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) {
View Full Code Here

            IRange2DX range = ((IConfig2D) config).getDimensionX().getRangesList()
                    .get(((IConfig2D) config).getDimensionX().getRangesList().size() - 1);
            ((Range2DXModel) range).addListener(listenerRange2DX);

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

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

                ((Trajectory2DXModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DX);

            }
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++) {
            Trajectory2DXModel trajectory1DModelToAdd = new Trajectory2DXModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));

            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectory1DModelToAdd);

            ITrajectory t = ((IConfig2D) config)
                    .getDimensionX()
View Full Code Here

            IRange2DX range = ((IConfig2D) config).getDimensionX().getRangesList().get(
                    ((IConfig2D) config).getDimensionX().getRangesList().size() - 1);
            ((Range2DXModel) range).addListener(listenerRange2DX);

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

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

                ((Trajectory2DXModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DX);

            }
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++) {
            Trajectory2DXModel trajectory1DModelToAdd = new Trajectory2DXModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));

            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectory1DModelToAdd);

            ITrajectory t = ((IConfig2D) config).getDimensionX().getRangesList().get(i)
                    .getTrajectoriesList().get(
View Full Code Here

            IRange2DX range = ((IConfig2D) config).getDimensionX().getRangesList()
                    .get(((IConfig2D) config).getDimensionX().getRangesList().size() - 1);
            ((Range2DXModel) range).addListener(listenerRange2DX);

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

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

                ((Trajectory2DXModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DX);

            }
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++) {
            Trajectory2DXModel trajectory1DModelToAdd = new Trajectory2DXModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));

            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectory1DModelToAdd);

            ITrajectory t = ((IConfig2D) config)
                    .getDimensionX()
View Full Code Here

            IRange2DX range = ((IConfig2D) config).getDimensionX().getRangesList()
                    .get(((IConfig2D) config).getDimensionX().getRangesList().size() - 1);
            ((Range2DXModel) range).addListener(listenerRange2DX);

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

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

                ((Trajectory2DXModel) range.getTrajectoriesList().get(i)).addListener(listenerTrajectory2DX);

            }
            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++) {
            Trajectory2DXModel trajectory1DModelToAdd = new Trajectory2DXModel();
            trajectory1DModelToAdd.setBeginPosition(0.0);
            trajectory1DModelToAdd.setEndPosition(0.0);
            trajectory1DModelToAdd.setDelta(0.0);
            trajectory1DModelToAdd.setRelative(false);
            trajectory1DModelToAdd.setSpeed(0.0);
            trajectory1DModelToAdd.setRange(rangeModelsList.get(i));

            this.rangeModelsList.get(i).getTrajectoriesList().add(trajectory1DModelToAdd);

            ITrajectory t = ((IConfig2D) config).getDimensionX().getRangesList().get(i).getTrajectoriesList()
                    .get(((IConfig2D) config).getDimensionX().getRangesList().get(i).getTrajectoriesList().size() - 1);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.event.Trajectory2DXModel

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.