Package fr.soleil.salsa.entity

Examples of fr.soleil.salsa.entity.IDimension


     *
     * @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


        refresh(true);
    }

    public void refresh(boolean saved) {
        IConfig<?> currentConfig = config;
        IDimension currentDimension = null;
        if (saved) {
            currentConfig = dbconfig;
        }

        if (currentConfig != null && currentConfig instanceof IConfig2D) {
View Full Code Here

        if (getDevice(actuatorName, actuatorList) == null) {
            IActuator device = new ActuatorModel();
            device.setName(actuatorName);
            device.setEnabled(true);

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

            if (dimension != null) {
                List<IActuator> tmpActuatorList = dimension.getActuatorsList();
                tmpActuatorList.add(device);

                List<? extends IRange> rangeList = dimension.getRangeList();
                if (rangeList != null) {
                    for (IRange range : rangeList) {
                        List<ITrajectory> trajectoryList = range.getTrajectoriesList();
                        ITrajectory trajectory = range.createTrajectory(device);
                        if ((trajectory != null) && (trajectoryList != null)) {
View Full Code Here

        if (getDevice(actuatorName, actuatorList) == null) {
            IActuator device = new ActuatorModel();
            device.setName(actuatorName);
            device.setEnabled(true);

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

            if (dimension != null) {
                List<IActuator> tmpActuatorList = dimension.getActuatorsList();
                tmpActuatorList.add(device);

                List<? extends IRange> rangeList = dimension.getRangeList();
                if (rangeList != null) {
                    for (IRange range : rangeList) {
                        List<ITrajectory> trajectoryList = range.getTrajectoriesList();
                        ITrajectory trajectory = range.createTrajectory(device);
                        if ((trajectory != null) && (trajectoryList != null)) {
View Full Code Here

        return index;
    }

    @Override
    public void swapActuator(String actuatorName1, String actuatorName2, boolean yActuator) {
        IDimension dimension = getDimensionX();
        if (yActuator && (this instanceof IConfig2D)) {
            dimension = ((IConfig2D) this).getDimensionY();
        }

        if (dimension != null) {
            List<IActuator> tmpActuatorList = dimension.getActuatorsList();
            int actuator1pos = getIndexForName(actuatorName1, tmpActuatorList);
            int actuator2pos = getIndexForName(actuatorName2, tmpActuatorList);
            if ((actuator1pos > -1) && (actuator2pos > -1)) {
                //First rename actuator
                swapDevice(actuatorName1, actuatorName2, tmpActuatorList);
                List<? extends IRange> rangeList = dimension.getRangeList();
                if (rangeList != null) {
                    List<ITrajectory> trajectoryList = null;
                    ITrajectory t1 = null;
                    ITrajectory t2 = null;
                    for (IRange range : rangeList) {
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

        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

     * @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

    /**
     *
     */
    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

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.