use of org.openlca.core.model.Source in project olca-modules by GreenDelta.
the class ProcessConverter method literatureReferences.
private void literatureReferences() {
for (Source source : process.getDocumentation().getSources()) {
String category = null;
if (source.getCategory() != null)
category = source.getCategory().getName();
else
category = "Others";
LiteratureReferenceBlock reference = new LiteratureReferenceBlock(source.getName(), source.getTextReference(), category);
if (!"".equals(source.getDescription()))
reference.setContent(source.getDescription());
referenceData.add(source.getName(), reference);
spProcess.getDocumentation().getLiteratureReferenceEntries().add(new LiteratureReferenceRow(reference));
}
}
use of org.openlca.core.model.Source in project olca-modules by GreenDelta.
the class DB method findSource.
public Source findSource(ISource eSource, String genKey) {
Source source = get(Source.class, sources, genKey);
if (source != null)
return source;
source = search.findSource(eSource);
if (source != null)
sources.put(genKey, source);
return source;
}
use of org.openlca.core.model.Source in project olca-modules by GreenDelta.
the class ProcessReferenceSearchTest method createSocialAspect.
private SocialAspect createSocialAspect() {
SocialAspect aspect = new SocialAspect();
aspect.indicator = db.insert(new SocialIndicator());
aspect.source = db.insert(new Source());
return aspect;
}
use of org.openlca.core.model.Source in project olca-modules by GreenDelta.
the class ProcessReferenceSearchTest method createDocumentation.
private ProcessDocumentation createDocumentation() {
ProcessDocumentation doc = new ProcessDocumentation();
doc.dataDocumentor = db.insert(new Actor());
doc.dataGenerator = db.insert(new Actor());
doc.dataSetOwner = db.insert(new Actor());
doc.reviewer = db.insert(new Actor());
doc.publication = db.insert(new Source());
doc.sources.add(db.insert(new Source()));
doc.sources.add(db.insert(new Source()));
return doc;
}
use of org.openlca.core.model.Source in project olca-modules by GreenDelta.
the class DQSystemReferenceSearchTest method createModel.
@Override
protected DQSystem createModel() {
DQSystem system = new DQSystem();
system.source = insertAndAddExpected("source", new Source());
system = db.insert(system);
systems.add(system);
return system;
}
Aggregations