All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openlca.io.ecospold1.input.ImportConfig Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
package org.openlca.io.ecospold1.input;

import org.openlca.core.database.IDatabase;
import org.openlca.io.UnitMapping;
import org.openlca.core.io.maps.FlowMap;

public class ImportConfig {

	public final IDatabase db;

	private FlowMap flowMap;
	private UnitMapping unitMapping;

	public ImportConfig(IDatabase db) {
		this.db = db;
	}

	public FlowMap getFlowMap() {
		if (flowMap == null) {
			flowMap = FlowMap.empty();
		}
		return flowMap;
	}

	public void setFlowMap(FlowMap flowMap) {
		this.flowMap = flowMap;
	}

	public void setUnitMapping(UnitMapping unitMapping) {
		this.unitMapping = unitMapping;
	}

	public UnitMapping getUnitMapping() {
		if (unitMapping == null) {
			unitMapping = UnitMapping.createDefault(db);
		}
		return unitMapping;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy