Package eu.scape_project.planning.model.scales

Examples of eu.scape_project.planning.model.scales.Scale


            String typename = null;
            /*
             * Scale: A special element is created, depending on the type of the
             * scale
             */
            Scale s = l.getScale();

            if (s != null) {
                typename = deriveElementname(s.getClass());

                addScale(s, leaf);

                // Transformer
                if (l.getTransformer() != null) {
View Full Code Here


        addFreemindAttributes(node, element);

        if (node.isLeaf()) {
            // add scale
            Leaf leaf = (Leaf) node;
            Scale scale = leaf.getScale();
            if (scale != null) {
                Element scaleElement = element.addElement("node");
                String restriction = "?";

                // restrictions: restrictedscale, ordinals -freestring

                if (scale instanceof FreeStringScale) {
                    restriction = "free text";
                } else if ((scale.getType() == ScaleType.ordinal || scale.getType() == ScaleType.restricted)
                    && !"".equals(((RestrictedScale) scale).getRestriction())) {
                    restriction = ((RestrictedScale) scale).getRestriction();
                } else {
                    restriction = scale.getUnit();
                }
                scaleElement.addAttribute("TEXT", restriction);
            }

        } else {
View Full Code Here

            cplIf16 = calculator.getCPL_IF16() * 100;
            cplIf17 = calculator.getCPL_IF17();
            cplIf18 = calculator.getCPL_IF18() * 100;

            // Get scale
            Scale scale = criterionSelector.getSelectedMeasure().getScale();

            // If scale of selected property is numeric - calculate numeric
            // measurement-statistics.
            if ((scale instanceof FloatRangeScale) || (scale instanceof FloatScale) || (scale instanceof IntegerScale)
                || (scale instanceof IntRangeScale) || (scale instanceof PositiveFloatScale)
View Full Code Here

            // we can only use the scales of leaves, as
            // - nodes can be changed when weighting is changed
            // - leaves are "changed" when evaluated, aggregation mode is
            // changed
            if (treeNode instanceof Leaf) {
                Scale scale = ((Leaf) treeNode).getScale();
                if (scale != null) {
                    ChangeLog scaleCL = scale.getChangeLog();
                    stateChangeLogs.add(new StateChangeLog(planId, 4, createdAt, scaleCL.getChanged(), scaleCL.getChangedBy()));

                }
            }
        }
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.model.scales.Scale

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.