Package fr.soleil.salsa.entity.scan2D

Examples of fr.soleil.salsa.entity.scan2D.IRange2DX


     */
    public void read() {
        if ((this.config != null) && (view != null)) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                IRange2DX r = ((IConfig2D) config).getDimensionX().getRangesList().get(j);
                r.setIntegrationTime(Double.valueOf(view.getIntegrationTime(j)));
                r.setStepsNumber(Integer.valueOf(view.getStepNumber(j)));
            }

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                for (int i = 0; i < ((IConfig2D) config).getDimensionX().getActuatorsList().size(); i++) {

View Full Code Here


            rangeToAdd.setDimension(((IConfig2D) config).getDimensionX());
            rangeToAdd.setIntegrationTime(1.0);
            rangeToAdd.setStepsNumber(1);
            this.rangeModelsList.add(rangeToAdd);
            ((IConfig2D) config).getDimensionX().getRangesList().add(rangeToAdd);
            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.addRange();
            }
View Full Code Here

                    config = new Config2DImpl();
                    config.setScanAddOn(new ScanAddOnImp());
                    config.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) config).setDimensionX(new Dimension2DXImpl());
                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) config).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) config).getDimensionX().getRangesList().add(xRangeToAdd);
                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) config).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
                    yRangeToAdd.setDimension(((IConfig2D) config).getDimensionY());
View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DX range) {
        IRange2DX oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

                    tmp2d.setScanAddOn(new ScanAddOnImp());
                    tmp2d.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) tmp2d).setDimensionX(new Dimension2DXImpl());

                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) tmp2d).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) tmp2d).getDimensionX().getRangesList().add(xRangeToAdd);

                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) tmp2d).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
View Full Code Here

     */
    // This function returns the configuration it received as parameter.
    // Note that this is specific to LocalConfigMathService and that other implementations of
    // IConfigMathService may behave differently.
    public ITrajectory computeIntegrationTimeChange(ITrajectory newTrajectory) {
        IRange2DX range = ((ITrajectory2DX) newTrajectory).getRange();
        double integrationTime = range.getIntegrationTime();
        for (ITrajectory trajectory : range.getTrajectoriesList()) {
            if (trajectory.getDelta() != null) {
                trajectory.setSpeed(trajectory.getDelta() / integrationTime);
            }
        }

View Full Code Here

     * Set the range.
     *
     * @param range
     */
    public void setRange(IRange2DX range) {
        IRange2DX oldValue = baseBean.getRange();
        baseBean.setRange(range);
        firePropertyChange("range", oldValue, range);
    }
View Full Code Here

                    tmp2d.setScanAddOn(new ScanAddOnImp());
                    tmp2d.getScanAddOn().setDisplay(new DisplayImpl());
                    ((IConfig2D) tmp2d).setDimensionX(new Dimension2DXImpl());

                    // Creates one X range for a new 2D config.
                    IRange2DX xRangeToAdd = new Range2DXImpl();
                    xRangeToAdd.setDimension(((IConfig2D) tmp2d).getDimensionX());
                    xRangeToAdd.setIntegrationTime(1.0);
                    xRangeToAdd.setStepsNumber(1);
                    ((IConfig2D) tmp2d).getDimensionX().getRangesList().add(xRangeToAdd);

                    // Creates one Y range for a new 2D config.
                    ((IConfig2D) tmp2d).setDimensionY(new Dimension2DYImpl());
                    Range2DYImpl yRangeToAdd = new Range2DYImpl();
View Full Code Here

     */
    public void refresh() {
        if ((this.rangeModelsList != null) && (this.actuatorModelsList != null) && (view != null)) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                IRange2DX r = ((IConfig2D) config).getDimensionX().getRangesList().get(j);
                view.setIntegrationTime(j, r.getIntegrationTime() + "");
                view.setStepNumber(j, r.getStepsNumber() + "");
            }

            for (int i = 0; i < ((IConfig2D) config).getDimensionX().getRangesList().size(); i++)
                for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().get(i)
                        .getTrajectoriesList().size(); j++) {
View Full Code Here

     */
    public void read() {
        if ((this.config != null) && (view != null)) {

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                IRange2DX r = ((IConfig2D) config).getDimensionX().getRangesList().get(j);
                r.setIntegrationTime(Double.valueOf(view.getIntegrationTime(j)));
                r.setStepsNumber(Integer.valueOf(view.getStepNumber(j)));
            }

            for (int j = 0; j < ((IConfig2D) config).getDimensionX().getRangesList().size(); j++) {
                for (int i = 0; i < ((IConfig2D) config).getDimensionX().getActuatorsList().size(); i++) {

View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.scan2D.IRange2DX

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.