diff --git a/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/AuthorAssoc.java b/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/AuthorAssoc.java new file mode 100644 index 000000000..807567fba --- /dev/null +++ b/dhp-workflows/dhp-doiboost/src/main/java/eu/dnetlib/doiboost/AuthorAssoc.java @@ -0,0 +1,47 @@ +package eu.dnetlib.doiboost; + +import eu.dnetlib.dhp.schema.oaf.Author; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; + +public class AuthorAssoc implements Serializable { + private Double score ; + private List to_be_enriched; + private Author with_enricheing_content; + + public Double getScore() { + return score; + } + + public void setScore(Double score) { + this.score = score; + } + + public List getTo_be_enriched() { + return to_be_enriched; + } + + public void setTo_be_enriched(List to_be_enriched) { + this.to_be_enriched = to_be_enriched; + } + + public Author getWith_enricheing_content() { + return with_enricheing_content; + } + + public void setWith_enricheing_content(Author with_enricheing_content) { + this.with_enricheing_content = with_enricheing_content; + } + + public static AuthorAssoc newInstance(Author a){ + AuthorAssoc ret = new AuthorAssoc(); + ret.score = 0.0; + ret.to_be_enriched = new ArrayList<>(); + ret.with_enricheing_content = a; + + return ret; + + } +}