All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aima.core.nlp.ranking.Page Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

The newest version!
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy