Package fr.soleil.salsa.entity.event

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


    private static final long serialVersionUID = 2257908245172873639L;

    @Override
    protected IRange initModel() {
        return new Range2DYModel(this);
    }
View Full Code Here


     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList()
                    .get(((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);
View Full Code Here

     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList().get(
                    ((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);
View Full Code Here

        this.actuatorModelsList.clear();
        List<IRange2DY> rangeList = ((IConfig2D) config).getDimensionY().getRangesList();
        List<IActuator> actuatorsList = ((IConfig2D) config).getDimensionY().getActuatorsList();

        for (int i = 0; i < rangeList.size(); i++) {
            Range2DYModel rangeToAdd = (Range2DYModel) rangeList.get(i);
            this.rangeModelsList.add(rangeToAdd);
        }

        for (int i = 0; i < actuatorsList.size(); i++) {
            this.actuatorModelsList.add((ActuatorModel) actuatorsList.get(i));
View Full Code Here

     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList()
                    .get(((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i)).addListener(listenerTrajectory2DY);

View Full Code Here

     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList().get(
                    ((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);
View Full Code Here

        this.actuatorModelsList.clear();
        List<IRange2DY> rangeList = ((IConfig2D) config).getDimensionY().getRangesList();
        List<IActuator> actuatorsList = ((IConfig2D) config).getDimensionY().getActuatorsList();

        for (int i = 0; i < rangeList.size(); i++) {
            Range2DYModel rangeToAdd = (Range2DYModel) rangeList.get(i);
            this.rangeModelsList.add(rangeToAdd);
        }

        for (int i = 0; i < actuatorsList.size(); i++) {
            this.actuatorModelsList.add((ActuatorModel) actuatorsList.get(i));
View Full Code Here

     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList()
                    .get(((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);
View Full Code Here

     * Adds a range and associated trajectories for the model and the view.
     */
    @Override
    public void notifyNewRangeAction() {
        if (this.config != null) {
            Range2DYModel rangeToAdd = new Range2DYModel();
            rangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionY().getRangesList().add(rangeToAdd);
            IRange2DY range = ((IConfig2D) config).getDimensionY().getRangesList()
                    .get(((IConfig2D) config).getDimensionY().getRangesList().size() - 1);
            ((Range2DYModel) range).addListener(listenerRange2DY);

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

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

                ((Trajectory2DYModel) range.getTrajectoriesList().get(i))
                        .addListener(listenerTrajectory2DY);
View Full Code Here

        this.actuatorModelsList.clear();
        List<IRange2DY> rangeList = ((IConfig2D) config).getDimensionY().getRangesList();
        List<IActuator> actuatorsList = ((IConfig2D) config).getDimensionY().getActuatorsList();

        for (int i = 0; i < rangeList.size(); i++) {
            Range2DYModel rangeToAdd = (Range2DYModel) rangeList.get(i);
            this.rangeModelsList.add(rangeToAdd);
        }

        for (int i = 0; i < actuatorsList.size(); i++) {
            this.actuatorModelsList.add((ActuatorModel) actuatorsList.get(i));
View Full Code Here

TOP

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

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.