ecologylab.semantics.model.image
Class ImageWeightingStrategy<E extends AbstractImgElement>

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.collections.WeightingStrategy<E>
          extended by ecologylab.semantics.model.image.ImageWeightingStrategy<E>
Type Parameters:
E -

public class ImageWeightingStrategy<E extends AbstractImgElement>
extends ecologylab.collections.WeightingStrategy<E>

This strategy uses mediaWeight from AbstractImgElement to sort all the elements in the set. Alternate, more sophisticated strategies are sure to follow.

Author:
damaraju

Constructor Summary
ImageWeightingStrategy()
           
 
Method Summary
 double getWeight(E e)
           
 
Methods inherited from class ecologylab.collections.WeightingStrategy
clearChanged, hasChanged, insert, remove, setChanged
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageWeightingStrategy

public ImageWeightingStrategy()
Method Detail

getWeight

public double getWeight(E e)
Specified by:
getWeight in class ecologylab.collections.WeightingStrategy<E extends AbstractImgElement>