UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server.globus
Interface Translation.SearchTest

Enclosing interface:
Translation

public static interface Translation.SearchTest

Search result filter. Used for checking to see if the desired result really is present without having to write lots of iterator code.

Author:
Donal K. Fellows
See Also:
Translation.SearchResult.find(Translation.Search, Translation.Constraint, Translation.SearchTest)

Method Summary
 boolean isSatisfied(Translation.SearchResult s, Translation.ConstraintResult c)
          Called to test whether the test is satisfied for a particular result.
 

Method Detail

isSatisfied

public boolean isSatisfied(Translation.SearchResult s,
                           Translation.ConstraintResult c)
                    throws Exception
Called to test whether the test is satisfied for a particular result.

Parameters:
s - The search result in question.
c - The constraint within the search result in question, or null if this was not specified in the call to find.
Returns:
true if and only if the search is satisfied.
Throws:
Exception - Any failure is interpreted as being a false return.

UNICORE Resource Broker NJS Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.