aima.core.nlp.ranking.Page Maven / Gradle / Ivy
package aima.core.nlp.ranking;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Jonathon Belotti (thundergolfer)
*
*/
public class Page {
public double authority;
public double hub;
private String location;
private String content;
private List linkTo;
private List linkedFrom;
public Page(String location) {
authority = 0;
hub = 0;
this.location = location;
this.linkTo = new ArrayList();
this.linkedFrom = new ArrayList();
}
public String getLocation() {
return location;
}
public String getContent() {
return content;
}
public boolean setContent(String content) {
this.content = content;
return true;
}
public List getInlinks() {
return linkedFrom;
}
public List getOutlinks() {
return linkTo;
}
}