Search in sources :

Example 1 with FactorList

use of org.openlca.ilcd.methods.FactorList in project olca-modules by GreenDelta.

the class ImpactMethodExport method addFactors.

private void addFactors(ImpactCategory impact, LCIAMethod lciaMethod) {
    FactorList list = new FactorList();
    lciaMethod.characterisationFactors = list;
    for (ImpactFactor oFactor : impact.impactFactors) {
        Factor iFactor = new Factor();
        list.factors.add(iFactor);
        // TODO: uncertainty values + formulas
        iFactor.meanValue = getRefAmount(oFactor);
        iFactor.flow = Export.of(oFactor.flow, config);
        if (oFactor.location != null) {
            iFactor.location = oFactor.location.code;
        }
    }
}
Also used : ImpactFactor(org.openlca.core.model.ImpactFactor) FactorList(org.openlca.ilcd.methods.FactorList) FlowPropertyFactor(org.openlca.core.model.FlowPropertyFactor) ImpactFactor(org.openlca.core.model.ImpactFactor) Factor(org.openlca.ilcd.methods.Factor)

Aggregations

FlowPropertyFactor (org.openlca.core.model.FlowPropertyFactor)1 ImpactFactor (org.openlca.core.model.ImpactFactor)1 Factor (org.openlca.ilcd.methods.Factor)1 FactorList (org.openlca.ilcd.methods.FactorList)1