org.wikipedia.miner.comparison
Enum ArticleComparer.DataDependency

java.lang.Object
  extended by java.lang.Enum<ArticleComparer.DataDependency>
      extended by org.wikipedia.miner.comparison.ArticleComparer.DataDependency
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ArticleComparer.DataDependency>
Enclosing class:
ArticleComparer

public static enum ArticleComparer.DataDependency
extends java.lang.Enum<ArticleComparer.DataDependency>

Data used to generate article relatedness measures.


Enum Constant Summary
linkCounts
          Use link counts to measure relatedness.
pageLinksIn
          Use links made to articles to measure relatedness.
pageLinksOut
          Use links made from articles to measure relatedness.
 
Method Summary
static ArticleComparer.DataDependency valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ArticleComparer.DataDependency[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

pageLinksIn

public static final ArticleComparer.DataDependency pageLinksIn
Use links made to articles to measure relatedness. You should cache WDatabase.DatabaseType.pageLinksIn if using this mode extensively.


pageLinksOut

public static final ArticleComparer.DataDependency pageLinksOut
Use links made from articles to measure relatedness. You should cache WDatabase.DatabaseType.pageLinksOut and WDatabase.DatabaseType.pageLinkCounts if using this mode extensively.


linkCounts

public static final ArticleComparer.DataDependency linkCounts
Use link counts to measure relatedness. You should cache WDatabase.DatabaseType.pageLinkCounts if using this mode extensively.

Method Detail

values

public static ArticleComparer.DataDependency[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ArticleComparer.DataDependency c : ArticleComparer.DataDependency.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ArticleComparer.DataDependency valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null