Search in sources :

Example 1 with ProcessInfo

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);
}
Also used : ProcessInfo(org.openlca.ilcd.processes.ProcessInfo)

Example 2 with ProcessInfo

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;
}
Also used : Process(org.openlca.ilcd.processes.Process) ProcessInfo(org.openlca.ilcd.processes.ProcessInfo) DataSetInfo(org.openlca.ilcd.processes.DataSetInfo)

Example 3 with ProcessInfo

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();
}
Also used : ParameterSection(org.openlca.ilcd.processes.ParameterSection) ProcessInfo(org.openlca.ilcd.processes.ProcessInfo)

Example 4 with ProcessInfo

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);
}
Also used : ParameterSection(org.openlca.ilcd.processes.ParameterSection) ProcessInfo(org.openlca.ilcd.processes.ProcessInfo)

Example 5 with ProcessInfo

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;
}
Also used : ProcessInfo(org.openlca.ilcd.processes.ProcessInfo) DataSetInfo(org.openlca.ilcd.processes.DataSetInfo)

Aggregations

ProcessInfo (org.openlca.ilcd.processes.ProcessInfo)5 DataSetInfo (org.openlca.ilcd.processes.DataSetInfo)2 ParameterSection (org.openlca.ilcd.processes.ParameterSection)2 Process (org.openlca.ilcd.processes.Process)1