jopt.js.api.search
Interface ResourceSelector


public interface ResourceSelector

Interface to implement to control the selection of which resources should be tried when a set of alternatives are all possible. Used in searching.


Method Summary
 int select(ResourceSet altResSet)
          Returns the index of the resource within the specified set that should be selected for assignment to / removal from an activity
 

Method Detail

select

public int select(ResourceSet altResSet)
Returns the index of the resource within the specified set that should be selected for assignment to / removal from an activity

Parameters:
altResSet - A set of resources to choose from
Returns:
index into the Alternate Resource Set, indicating which resource in the set should be selected