forked from D-Net/dnet-hadoop
48 lines
1.1 KiB
Java
48 lines
1.1 KiB
Java
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<Author> to_be_enriched;
|
|
private Author with_enricheing_content;
|
|
|
|
public Double getScore() {
|
|
return score;
|
|
}
|
|
|
|
public void setScore(Double score) {
|
|
this.score = score;
|
|
}
|
|
|
|
public List<Author> getTo_be_enriched() {
|
|
return to_be_enriched;
|
|
}
|
|
|
|
public void setTo_be_enriched(List<Author> 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;
|
|
|
|
}
|
|
}
|