pt.tumba.qbe
Class Related

java.lang.Object
  extended by pt.tumba.qbe.Related

public class Related
extends java.lang.Object

Description of the Class

Author:
Bruno Martins

Field Summary
private  java.util.Map cocitations
           
private  java.sql.Connection conn
           
private  java.util.Map couplings
           
private static boolean debug
           
private  java.util.Map id_to_url
           
private  org.apache.log4j.Logger logger
           
private static int maxLevels
           
private  int maxLinks
           
private  java.util.Random rand
           
private  java.util.Map siblings
           
private  java.util.Map url_authority_score
           
private  java.util.Map url_from_urls
           
private  java.util.Map url_hub_score
           
private  long url_id
           
private  java.util.Map url_to_id
           
private  java.util.Map url_to_urls
           
 
Constructor Summary
Related(java.sql.Connection conn, org.apache.log4j.Logger logger, int maxLinks)
          Constructor for the Related object
 
Method Summary
(package private)  java.lang.Long addURL(java.lang.Long url, boolean cocite)
          Adds a feature to the URL attribute of the Related object
 void addURL(java.lang.Long fromURL, java.util.Iterator toURL)
          Adds a feature to the URL attribute of the Related object
 void addURL(java.lang.Long fromURL, java.lang.Long toURL)
          Adds a feature to the URL attribute of the Related object
(package private)  java.util.List CoCitation(java.lang.Long url, boolean return_url)
          Description of the Method
 void compute()
          Description of the Method
 void computeCocitations()
          Description of the Method
 void computeCouplings()
          Description of the Method
 void computeHITS()
          Description of the Method
 void computeSiblings()
          Description of the Method
(package private)  java.util.List Coupling(java.lang.Long url, boolean return_url)
          Description of the Method
private  java.lang.String escreveQuery(boolean outbound, int levels, long id)
          Description of the Method
(package private)  java.util.List exchangePos(java.util.List v, int p1, int p2)
          Description of the Method
 double getAuthorityScore(java.lang.String url)
          Gets the authorityScore attribute of the Related object
 double getAuthorityScoreFromID(java.lang.Long id)
          Gets the authorityScoreFromID attribute of the Related object
 double getHubScore(java.lang.String url)
          Gets the hubScore attribute of the Related object
 double getHubScoreFromID(java.lang.Long id)
          Gets the hubScoreFromID attribute of the Related object
 java.util.List getInLinks(java.lang.String url2)
          Gets the inLinks attribute of the Related object
 java.util.List getOutLinks(java.lang.String url2)
          Gets the outLinks attribute of the Related object
 java.util.List getRelated(java.lang.String url2)
          Gets the related attribute of the Related object
 void loadLinks(java.lang.String url2)
          Description of the Method
static void main(java.lang.String[] args)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static boolean debug

maxLinks

private int maxLinks

logger

private org.apache.log4j.Logger logger

maxLevels

private static int maxLevels

conn

private java.sql.Connection conn

cocitations

private java.util.Map cocitations

couplings

private java.util.Map couplings

siblings

private java.util.Map siblings

id_to_url

private java.util.Map id_to_url

url_to_id

private java.util.Map url_to_id

url_authority_score

private java.util.Map url_authority_score

url_hub_score

private java.util.Map url_hub_score

url_from_urls

private java.util.Map url_from_urls

url_to_urls

private java.util.Map url_to_urls

rand

private java.util.Random rand

url_id

private long url_id
Constructor Detail

Related

public Related(java.sql.Connection conn,
               org.apache.log4j.Logger logger,
               int maxLinks)
Constructor for the Related object

Parameters:
arquive - Description of the Parameter
Method Detail

main

public static void main(java.lang.String[] args)
Description of the Method

Parameters:
args - Description of the Parameter

addURL

java.lang.Long addURL(java.lang.Long url,
                      boolean cocite)
Adds a feature to the URL attribute of the Related object

Parameters:
url - The feature to be added to the URL attribute
cocite - The feature to be added to the URL attribute
Returns:
Description of the Return Value

addURL

public void addURL(java.lang.Long fromURL,
                   java.util.Iterator toURL)
Adds a feature to the URL attribute of the Related object

Parameters:
fromURL - The feature to be added to the URL attribute
toURL - The feature to be added to the URL attribute

addURL

public void addURL(java.lang.Long fromURL,
                   java.lang.Long toURL)
Adds a feature to the URL attribute of the Related object

Parameters:
fromURL - The feature to be added to the URL attribute
toURL - The feature to be added to the URL attribute

CoCitation

java.util.List CoCitation(java.lang.Long url,
                          boolean return_url)
Description of the Method

Parameters:
url - Description of the Parameter
return_url - Description of the Parameter
Returns:
Description of the Return Value

compute

public void compute()
Description of the Method


computeCocitations

public void computeCocitations()
Description of the Method


computeCouplings

public void computeCouplings()
Description of the Method


computeHITS

public void computeHITS()
Description of the Method


computeSiblings

public void computeSiblings()
Description of the Method


Coupling

java.util.List Coupling(java.lang.Long url,
                        boolean return_url)
Description of the Method

Parameters:
url - Description of the Parameter
return_url - Description of the Parameter
Returns:
Description of the Return Value

escreveQuery

private java.lang.String escreveQuery(boolean outbound,
                                      int levels,
                                      long id)
Description of the Method

Parameters:
outbound - Description of the Parameter
layer - Description of the Parameter
levels - Description of the Parameter
id - Description of the Parameter
Returns:
Description of the Return Value

exchangePos

java.util.List exchangePos(java.util.List v,
                           int p1,
                           int p2)
Description of the Method

Parameters:
v - Description of the Parameter
p1 - Description of the Parameter
p2 - Description of the Parameter
Returns:
Description of the Return Value

getAuthorityScore

public double getAuthorityScore(java.lang.String url)
Gets the authorityScore attribute of the Related object

Parameters:
url - Description of the Parameter
Returns:
The authorityScore value

getAuthorityScoreFromID

public double getAuthorityScoreFromID(java.lang.Long id)
Gets the authorityScoreFromID attribute of the Related object

Parameters:
id - Description of the Parameter
Returns:
The authorityScoreFromID value

getHubScore

public double getHubScore(java.lang.String url)
Gets the hubScore attribute of the Related object

Parameters:
url - Description of the Parameter
Returns:
The hubScore value

getHubScoreFromID

public double getHubScoreFromID(java.lang.Long id)
Gets the hubScoreFromID attribute of the Related object

Parameters:
id - Description of the Parameter
Returns:
The hubScoreFromID value

getInLinks

public java.util.List getInLinks(java.lang.String url2)
Gets the inLinks attribute of the Related object

Parameters:
url - Description of the Parameter
Returns:
The inLinks value

getOutLinks

public java.util.List getOutLinks(java.lang.String url2)
Gets the outLinks attribute of the Related object

Parameters:
url - Description of the Parameter
Returns:
The outLinks value

getRelated

public java.util.List getRelated(java.lang.String url2)
Gets the related attribute of the Related object

Parameters:
url2 - Description of the Parameter
Returns:
The related value

loadLinks

public void loadLinks(java.lang.String url2)
Description of the Method

Parameters:
url - Description of the Parameter