ca.aura.algorithms
Class ReferentialIntegrity

java.lang.Object
  |
  +--ca.aura.algorithms.ReferentialIntegrity
All Implemented Interfaces:
AuraAlgorithm

public class ReferentialIntegrity
extends java.lang.Object
implements AuraAlgorithm

Author:
aforward

Constructor Summary
ReferentialIntegrity(Report report, Graph graph)
          default
ReferentialIntegrity(Report report, Graph graph, int k)
          also set the convergence number
 
Method Summary
protected  Hashtable buildInitialHash(Report r)
          build the initial hashtables for the hub and authority values
 double getReferentialAge(Artefact a1, Artefact a2, Report report)
          get the reference age between two poitns
protected  double getReferentialContribution(Artefact a, java.util.Iterator points, Report report, Graph g, Hashtable ri)
          get the referential integrity of a set of points
 Hashtable getResults()
          get the hashtable describing...
 void normalize(Hashtable hash)
          normalize a hashtable of values :-)
 double updateReferenceIntegrity(Artefact a, Report report, Graph g, Hashtable ri)
          update the referential integrity for a particular point get all q that points to p q1 -> p q2 -> p q3 -> p and all r that p points to r1 -> p r2 -> p then apply the following: RI(q1)*Age(p,q1) + ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferentialIntegrity

public ReferentialIntegrity(Report report,
                            Graph graph)
default


ReferentialIntegrity

public ReferentialIntegrity(Report report,
                            Graph graph,
                            int k)
also set the convergence number

Method Detail

getResults

public Hashtable getResults()
Description copied from interface: AuraAlgorithm
get the hashtable describing... Artefact -> Value ( which is a double)

Specified by:
getResults in interface AuraAlgorithm
See Also:
ca.aura.algorithms.RateAlgorithm#getResults()

updateReferenceIntegrity

public double updateReferenceIntegrity(Artefact a,
                                       Report report,
                                       Graph g,
                                       Hashtable ri)
update the referential integrity for a particular point get all q that points to p q1 -> p q2 -> p q3 -> p and all r that p points to r1 -> p r2 -> p then apply the following: RI(q1)*Age(p,q1) + ...


getReferentialContribution

protected double getReferentialContribution(Artefact a,
                                            java.util.Iterator points,
                                            Report report,
                                            Graph g,
                                            Hashtable ri)
get the referential integrity of a set of points


getReferentialAge

public double getReferentialAge(Artefact a1,
                                Artefact a2,
                                Report report)
get the reference age between two poitns


buildInitialHash

protected Hashtable buildInitialHash(Report r)
build the initial hashtables for the hub and authority values


normalize

public void normalize(Hashtable hash)
normalize a hashtable of values :-)



Copyright © 2002 University of Ottawa. All Rights Reserved.