Search in sources :

Example 1 with QuantitativeReference

use of org.openlca.ilcd.flowproperties.QuantitativeReference in project olca-modules by GreenDelta.

the class FlowPropertyExport method makeUnitGroupRef.

private QuantitativeReference makeUnitGroupRef() {
    QuantitativeReference qRef = new QuantitativeReference();
    UnitGroup unitGroup = flowProperty.unitGroup;
    qRef.unitGroup = Export.of(unitGroup, config);
    return qRef;
}
Also used : UnitGroup(org.openlca.core.model.UnitGroup) QuantitativeReference(org.openlca.ilcd.flowproperties.QuantitativeReference)

Example 2 with QuantitativeReference

use of org.openlca.ilcd.flowproperties.QuantitativeReference in project olca-modules by GreenDelta.

the class FlowProperties method unitGroupRef.

public static Ref unitGroupRef(FlowProperty fp) {
    QuantitativeReference qr = quantitativeReference(fp);
    if (qr.unitGroup == null) {
        qr.unitGroup = new Ref();
        qr.unitGroup.type = DataSetType.UNIT_GROUP;
    }
    return qr.unitGroup;
}
Also used : Ref(org.openlca.ilcd.commons.Ref) QuantitativeReference(org.openlca.ilcd.flowproperties.QuantitativeReference)

Aggregations

QuantitativeReference (org.openlca.ilcd.flowproperties.QuantitativeReference)2 UnitGroup (org.openlca.core.model.UnitGroup)1 Ref (org.openlca.ilcd.commons.Ref)1