Package eu.planets_project.pp.plato.model.scales

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


        SampleObject r = new SampleObject();
        r.getData().setData(data);
        r.setFullname(filename);
       
        Measurement success = new Measurement();
        success.setProperty(new MeasurableProperty(new BooleanScale(), MigrationResult.MIGRES_SUCCESS));
        success.setValue(success.getProperty().getScale().createValue());
       
        Measurement report = new Measurement();
        report.setProperty(new MeasurableProperty(new FreeStringScale(), MigrationResult.MIGRES_REPORT));
        report.setValue(report.getProperty().getScale().createValue());
View Full Code Here


        this.name = name;
    }

    private List<MeasurableProperty> getMeasurableProperties() {
        List<MeasurableProperty> list = new ArrayList<MeasurableProperty>();
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:imageWidth:equal"));
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:imageHeight:equal"));
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:bitsPerSample:equal"));
        list.add(new MeasurableProperty(new IntegerScale(),"xcl:bitsPerSample:intDiff"));
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:interlace:equal"));
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:transparency:equal"));
        list.add(new MeasurableProperty(new BooleanScale(),"xcl:backgroundColour:equal"));
        list.add(new MeasurableProperty(new PositiveIntegerScale(),"xcl:rgbPalette:hammingDistance"));
        list.add(new MeasurableProperty(new FloatRangeScale(),"xcl:gamma:percDeviation"));
        return list;
    }
View Full Code Here

                return null;
            }
           
            if (("Y/N".equals(TEXT)) ||
                ("Yes/No".equals(TEXT))){
                return new BooleanScale();
            }

            YanScale yan = new YanScale();
            if ((yan.getRestriction().equals(TEXT)) ||
                ("Y/A/N".equals(TEXT))) {
View Full Code Here

public class PolicyNode extends Node {

    public Scale createScale() {
        try {
            if ("Y".equals(getTEXT())) {
                return new BooleanScale();
            }

            if ("N".equals(getTEXT())) {
                return new BooleanScale();
            }

            if ("?".equals(getTEXT())) {
                return null;
            }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.scales.BooleanScale

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.