Package eu.planets_project.pp.plato.model.tree

Examples of eu.planets_project.pp.plato.model.tree.CriterionCategory


        // 2. extract propertyId and criterion sub-category
        String propertyId = path.substring(subCategoryEndIdx+1);
        String subCategory = path.substring(0, subCategoryEndIdx);

        // 3. try to get the corresponding category
        CriterionCategory cat = CriterionCategory.getType(scheme, subCategory);
        if (cat == null) {
            throw new IllegalArgumentException("invalid measurement info uri - scheme and path don't correspond to a criterion category: " +uri);
        }
        // reuse existing property, when possible
        MeasurableProperty prop = getProperty();
View Full Code Here


        String path = null;
       
        if ((property == null)||(property.getCategory() == null)) {
            return null;
        }
        CriterionCategory cat = property.getCategory();
       
        scheme = cat.getCategory();
        path = cat.getSubCategory();

        String fragment;
        if ((metric != null) && (metric.getMetricId() != null)) {
            fragment = "#" + metric.getMetricId();
        } else {
View Full Code Here

                mpmSelectedLeaf.changeScale(mappingScale);
                mpmSelectedLeaf.getMeasurementInfo().setProperty(mappingInfo.getProperty());
                mpmSelectedLeaf.getMeasurementInfo().setMetric(mappingInfo.getMetric());
               
                // only outcome object and action runtime criteria are evaluated per object, all others per action
                CriterionCategory mappingCategory = mappingProperty.getCategory();
                mpmSelectedLeaf.setSingle(!
                        (CriterionCategory.ACTION_RUNTIME.equals(mappingCategory) ||
                        CriterionCategory.OUTCOME_OBJECT.equals(mappingCategory)) );
               
                if ("- tbd -".equals(mpmSelectedLeaf.getName())) {
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.tree.CriterionCategory

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.