Examples of IntRangeScale


Examples of eu.planets_project.pp.plato.model.scales.IntRangeScale

        singleLeaf.setSingle(true);
        rootN.addChild(singleLeaf);

        Leaf restrictedLeaf = new Leaf();
        restrictedLeaf.setName("IntRange 0-10");
        IntRangeScale range = new IntRangeScale();
        range.setLowerBound(0);
        range.setUpperBound(10);
        restrictedLeaf.changeScale(range);
        rootN.addChild(restrictedLeaf);

        q.getTree().setRoot(rootN);
View Full Code Here

Examples of eu.planets_project.pp.plato.model.scales.IntRangeScale

//              // it means we don't have numbers, but an ordinary scale.
//              // proceed:
//              v = new OrdinalScale();
//              v.setRestriction(TEXT);
//              }
                v = new IntRangeScale();
                if (! ((IntRangeScale)v).validateAndSetRestriction(TEXT)) {
                    v= new OrdinalScale();
                    v.setRestriction(TEXT);
                }
                return v;
View Full Code Here

Examples of eu.planets_project.pp.plato.model.scales.IntRangeScale

                return null;
            }

            if (getTEXT().indexOf(Scale.SEPARATOR) != -1 ) {
                RestrictedScale v = null;
                v = new IntRangeScale();
                if (! ((IntRangeScale)v).validateAndSetRestriction(getTEXT())) {
                    v= new OrdinalScale();
                    v.setRestriction(getTEXT());
                }
                return v;
View Full Code Here

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

            scaleLowerBound = 0;
        }

        // At Range Scales lowerBound and upperBound have to be fetched
        if (scale instanceof IntRangeScale) {
            IntRangeScale s = (IntRangeScale) scale;
            scaleLowerBound = s.getLowerBound();
        }
        if (scale instanceof FloatRangeScale) {
            FloatRangeScale s = (FloatRangeScale) scale;
            scaleLowerBound = s.getLowerBound();
        }

        return scaleLowerBound;
    }
View Full Code Here

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

            scaleUpperBound = s.getUpperBound();
        }

        // At Range Scales lowerBound and upperBound have to be fetched
        if (scale instanceof IntRangeScale) {
            IntRangeScale s = (IntRangeScale) scale;
            scaleUpperBound = s.getUpperBound();
        }
        if (scale instanceof FloatRangeScale) {
            FloatRangeScale s = (FloatRangeScale) scale;
            scaleUpperBound = s.getUpperBound();
        }

        return scaleUpperBound;
    }
View Full Code Here

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

                scaleUpperBound = s.getUpperBound();
            }

            // At Range Scales lowerBound and upperBound have to be fetched
            if (scale instanceof IntRangeScale) {
                IntRangeScale s = (IntRangeScale) scale;
                scaleLowerBound = s.getLowerBound();
                scaleUpperBound = s.getUpperBound();
            }
            if (scale instanceof FloatRangeScale) {
                FloatRangeScale s = (FloatRangeScale) scale;
                scaleLowerBound = s.getLowerBound();
                scaleUpperBound = s.getUpperBound();
            }

            // get Transformer tresholds
            NumericTransformer nt = (NumericTransformer) transformer;
            double transformerT1 = nt.getThreshold1();
View Full Code Here

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

        List<Scale> scales = new ArrayList<Scale>();
        scales.add(new BooleanScale());
        scales.add(new YanScale());
        scales.add(new OrdinalScale());
        scales.add(new IntegerScale());
        scales.add(new IntRangeScale());
        scales.add(new FloatScale());
        scales.add(new FloatRangeScale());
        scales.add(new PositiveFloatScale());
        scales.add(new PositiveIntegerScale());
        scales.add(new FreeStringScale());
View Full Code Here

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

                scaleUpperBound = s.getUpperBound();
            }

            // At Range Scales lowerBound and upperBound have to be fetched
            if (scale instanceof IntRangeScale) {
                IntRangeScale s = (IntRangeScale) scale;
                scaleLowerBound = s.getLowerBound();
                scaleUpperBound = s.getUpperBound();
            }
            if (scale instanceof FloatRangeScale) {
                FloatRangeScale s = (FloatRangeScale) scale;
                scaleLowerBound = s.getLowerBound();
                scaleUpperBound = s.getUpperBound();
            }

            // get Transformer thresholds
            NumericTransformer nt = (NumericTransformer) transformer;
            double transformerT1 = nt.getThreshold1();
View Full Code Here

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

//              // it means we don't have numbers, but an ordinary scale.
//              // proceed:
//              v = new OrdinalScale();
//              v.setRestriction(TEXT);
//              }
                v = new IntRangeScale();
                if (! ((IntRangeScale)v).validateAndSetRestriction(TEXT)) {
                    v= new OrdinalScale();
                    v.setRestriction(TEXT);
                }
                return v;
View Full Code Here

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

                return null;
            }

            if (getTEXT().indexOf(Scale.SEPARATOR) != -1 ) {
                RestrictedScale v = null;
                v = new IntRangeScale();
                if (! ((IntRangeScale)v).validateAndSetRestriction(getTEXT())) {
                    v= new OrdinalScale();
                    v.setRestriction(getTEXT());
                }
                return v;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.