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;
}
}
}
Aggregations