|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ir.webutils.Link ir.webutils.AnchoredLink ir.webutils.ScoredAnchoredLink
public class ScoredAnchoredLink
An AnchoredLink that can be used in heuristic web search where links are scored for their promise. ScoredAnchoredLink's can be compared where HIGHER scores are preferable (appear earlier in a sort).
Field Summary | |
---|---|
double |
pageScore
The heuristic score assigned to the page to which this link points |
double |
score
The heuristic score assigned to this link |
Constructor Summary | |
---|---|
ScoredAnchoredLink(java.lang.String urlName)
Construct a link with specified URL string |
|
ScoredAnchoredLink(java.net.URL url,
Link backLink,
int startPosition)
Constructs a link with specified URL and backLink |
|
ScoredAnchoredLink(java.net.URL url,
java.lang.String anchorText,
Link backLink,
int startPosition)
Constructs a link with specified URL and anchor text and backLink |
Method Summary | |
---|---|
ScoredAnchoredLink |
getBackLink()
Return backLink for link |
int |
getEndPosition()
Return endPosition for link |
double |
getScore()
|
int |
getStartPosition()
Return startPosition for link |
void |
setEndPosition(int endPosition)
Set endPosition for link |
Methods inherited from class ir.webutils.AnchoredLink |
---|
getAnchorText, setAnchorText, toString |
Methods inherited from class ir.webutils.Link |
---|
cleanURL, compareTo, equals, getURL, hashCode, main, removeEndSlash, removeRef |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double score
public double pageScore
Constructor Detail |
---|
public ScoredAnchoredLink(java.net.URL url, java.lang.String anchorText, Link backLink, int startPosition)
public ScoredAnchoredLink(java.net.URL url, Link backLink, int startPosition)
public ScoredAnchoredLink(java.lang.String urlName)
Method Detail |
---|
public ScoredAnchoredLink getBackLink()
public int getStartPosition()
public int getEndPosition()
public void setEndPosition(int endPosition)
public double getScore()
getScore
in class AnchoredLink
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |