net.fortytwo.flow.rdf.ranking
Class ApproxFairOperation<T,E extends Exception>

java.lang.Object
  extended by net.fortytwo.flow.rdf.ranking.ApproxFairOperation<T,E>
All Implemented Interfaces:
Approximation<WeightedVector<T>,E>, WeightedVectorApproximation<T,E>
Direct Known Subclasses:
ApproxIntersection, ApproxUnion

public abstract class ApproxFairOperation<T,E extends Exception>
extends Object
implements WeightedVectorApproximation<T,E>

Author:
Joshua Shinavier (http://fortytwo.net)

Field Summary
protected  WeightedVectorApproximation<T,E>[] operands
           
 
Constructor Summary
ApproxFairOperation(WeightedVectorApproximation<T,E>... operands)
           
 
Method Summary
 int compute(int cycles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.fortytwo.flow.rdf.ranking.WeightedVectorApproximation
currentResult
 

Field Detail

operands

protected final WeightedVectorApproximation<T,E extends Exception>[] operands
Constructor Detail

ApproxFairOperation

public ApproxFairOperation(WeightedVectorApproximation<T,E>... operands)
Method Detail

compute

public int compute(int cycles)
            throws E extends Exception
Specified by:
compute in interface Approximation<WeightedVector<T>,E extends Exception>
Parameters:
cycles - the number of cycles available
Returns:
the number of cycles actually consumed
Throws:
E - an implementation-specific exception
E extends Exception


Copyright © 2007-2014. All Rights Reserved.