use of org.openlca.ilcd.processes.ProcessInfo in project olca-modules by GreenDelta.
the class ProcessBuilder method fillProcessInfo.
private void fillProcessInfo() {
ProcessInfo information = new ProcessInfo();
process.processInfo = information;
if (dataSetInfo != null) {
information.dataSetInfo = dataSetInfo;
}
if (geography != null) {
information.geography = geography;
}
if (time != null) {
information.time = time;
}
if (technology != null) {
information.technology = technology;
}
makeQuanRef(information);
addParameters(information);
}
use of org.openlca.ilcd.processes.ProcessInfo in project olca-modules by GreenDelta.
the class XmlBinderTest method makeProcess.
private Process makeProcess() {
Process process = new Process();
ProcessInfo pi = new ProcessInfo();
DataSetInfo info = new DataSetInfo();
process.processInfo = pi;
pi.dataSetInfo = info;
info.uuid = UUID.randomUUID().toString();
return process;
}
use of org.openlca.ilcd.processes.ProcessInfo in project olca-modules by GreenDelta.
the class ExchangeConversion method getParamSize.
private int getParamSize() {
ProcessInfo info = iProcess.processInfo;
if (info == null)
return 0;
ParameterSection list = info.parameters;
if (list == null)
return 0;
return list.parameters.size();
}
use of org.openlca.ilcd.processes.ProcessInfo in project olca-modules by GreenDelta.
the class ExchangeConversion method addParameter.
private void addParameter(Parameter parameter) {
ProcessInfo info = iProcess.processInfo;
if (info == null) {
info = new ProcessInfo();
iProcess.processInfo = info;
}
ParameterSection list = info.parameters;
if (list == null) {
list = new ParameterSection();
info.parameters = list;
}
list.parameters.add(parameter);
}
use of org.openlca.ilcd.processes.ProcessInfo in project olca-modules by GreenDelta.
the class ProcessReadWriteTest method makeDataSetInfo.
private DataSetInfo makeDataSetInfo(Process process) {
ProcessInfo information = new ProcessInfo();
process.processInfo = information;
DataSetInfo dataSetInformation = new DataSetInfo();
information.dataSetInfo = dataSetInformation;
return dataSetInformation;
}
Aggregations