edu.wisc.trace.urcsdk.client.resources
Interface IResourceOptimizer

All Known Implementing Classes:
DefaultOptimizer

public interface IResourceOptimizer

IResourceOptimizer is an interface for creating resource retrieval optimizers. Since different URCs may have different requirements when it comes to resource retrieval, this interface enables an implementer to create his/her own picking algorithm.

Version:
$Revision: 1.21 $
Author:
Andrew Martin, Trace R&D Center

Method Summary
 IResource pickResource(java.util.List<IResource> list1, java.util.List<IResource> list2, UserPreferences userPrefs, boolean isFinal)
          pickResource is implemented so that, given the list of possibly correct resources and the current user preferences, it can chose the most compatible resource.
 

Method Detail

pickResource

IResource pickResource(java.util.List<IResource> list1,
                       java.util.List<IResource> list2,
                       UserPreferences userPrefs,
                       boolean isFinal)
pickResource is implemented so that, given the list of possibly correct resources and the current user preferences, it can chose the most compatible resource.

Parameters:
userPrefs - an UserPreferences value
list1 -
list2 - list1 and list2 are lists of IResource objects - can be null.
isFinal - boolean implying this is the last attempt to find a resource.
Returns:
an IResource value


Copyright © 2006 Trace R&D Center, University of Wisconsin-Madison. All Rights Reserved.