Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.IDimension


    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }

        List<IActuator> actuatorList = dimension.getActuatorsList();
        actuatorList.add(device);

        List<? extends IRange> rangeList = dimension.getRangeList();

        for (int i = 0; i < rangeList.size(); i++) {

            IRange range = rangeList.get(i);
            List<ITrajectory> trajectoryList = range.getTrajectoriesList();
View Full Code Here


    /**
     *
     */
    public void setDimension(IDimension dimension) {
        IDimension oldValue = this.baseBean.getDimension();
        this.baseBean.setDimension(dimension);
        this.firePropertyChange("dimension", oldValue, dimension);
    }
View Full Code Here

     * @see IRange#setDimension(IDimension)
     * @param IDimension
     */
    @Override
    public void setDimension(IDimension dimension) {
        IDimension oldValue = this.baseBean.getDimension();
        this.baseBean.setDimension(dimension);
        this.firePropertyChange("dimension", oldValue, dimension);
    }
View Full Code Here

     * @see IRange#setDimension(IDimension)
     * @param IDimension
     */
    @Override
    public void setDimension(IDimension dimension) {
        IDimension oldValue = this.baseBean.getDimension();
        this.baseBean.setDimension(dimension);
        this.firePropertyChange("dimension", oldValue, dimension);
    }
View Full Code Here

            ((IEventSource<EntityPropertyChangedEvent<IPostScanBehaviour>>) postScanBehaviour)
                    .removeListener(postScanBehaviourListener);
        }
        if (this.config != null && this.config instanceof IConfig1D
                && this.config instanceof IEventSource) {
            IDimension d = ((IConfig1D) this.config).getDimensionX();
            if (d != null && d instanceof IEventSource) {
                ((IEventSource<EntityPropertyChangedEvent<IDimension>>) d)
                        .removeListener(dimensionListener);
            }
        }
        this.config = config;
        if (config != null) {

            if (config.getScanAddOn() == null) {
                config.setScanAddOn(new ScanAddOnModel());
            }
            scanAddOns = config.getScanAddOn();

            if (scanAddOns.getPostScanBehaviour() == null) {
                scanAddOns.setPostScanBehaviour(new PostScanBehaviourModel());
            }
            postScanBehaviour = scanAddOns.getPostScanBehaviour();

            refresh();

            ((IEventSource<EntityPropertyChangedEvent<IPostScanBehaviour>>) postScanBehaviour)
                    .addListener(postScanBehaviourListener);

            ((IEventSource<EntityPropertyChangedEvent<IConfig<?>>>) this.config)
                    .addListener(configListener);
            IDimension d = null;
            if (config instanceof IConfig1D) {
                d = ((IConfig1D) config).getDimensionX();
            }
            if (d != null) {
                ((IEventSource<EntityPropertyChangedEvent<IDimension>>) d)
View Full Code Here

     *
     * @see IRange#setDimension(IDimension)
     * @param IDimension
     */
    public void setDimension(IDimension dimension) {
        IDimension oldValue = this.baseBean.getDimension();
        this.baseBean.setDimension(dimension);
        this.firePropertyChange("dimension", oldValue, dimension);
    }
View Full Code Here

        if (fromConfiguration) {
            // get device list from configuration
            deviceList = new ArrayList<String>();
            if (config != null) {
                sensors = config.getSensorsList();
                IDimension dimensionX = config.getDimensionX();
                if (dimensionX != null) {
                    actuatorsX = dimensionX.getActuatorsList();
                }
                if (config instanceof IConfig2D) {
                    IDimension dimensionY = ((IConfig2D) config).getDimensionY();
                    if (dimensionY != null) {
                        actuatorsY = dimensionY.getActuatorsList();
                    }
                }
            }
        }
        else {
View Full Code Here

    public void addActuator(String actuatorName, boolean yActuator) {
        IActuator device = new ActuatorModel();
        device.setName(actuatorName);
        device.setEnabled(true);

        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }

        List<IActuator> actuatorList = dimension.getActuatorsList();
        actuatorList.add(device);

        List<? extends IRange> rangeList = dimension.getRangeList();

        for (int i = 0; i < rangeList.size(); i++) {

            IRange range = rangeList.get(i);
            List<ITrajectory> trajectoryList = range.getTrajectoriesList();
View Full Code Here

        return baseBean.getTrajectoriesList();
    }

    @Override
    public void setDimension(IDimension dimension) {
        IDimension oldValue = this.baseBean.getDimension();
        this.baseBean.setDimension(dimension);
        this.firePropertyChange("dimension", oldValue, dimension);

    }
View Full Code Here

        IDirectory result = (IDirectory) Map(d, DirectoryModel.class, false);
        return result;
    }

    public static IDimension copyDimensionToModel(IDimension dimension) {
        IDimension result = (IDimension) Map(dimension, dimension.getClass(), true);
        return result;
    }
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.entity.IDimension

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.