org.griphyn.vdl.router
Interface Arbiter

All Known Implementing Classes:
PreferNamespace

public interface Arbiter

This interface defines an arbitration. If multiple derivations produce the same output file, one derivation must be chosen over all others. There is not yet any mean to declare that none will do.

Version:
$Revision $
Author:
Jens-S. V??ckler, Yong Zhao

Method Summary
 Derivation arbit(Collection dvlist, Map environment)
          The lone method of the arbitrarion receives some environmental information about the position in the call stack.
 

Method Detail

arbit

Derivation arbit(Collection dvlist,
                 Map environment)
The lone method of the arbitrarion receives some environmental information about the position in the call stack. Currently, this information is of limited nature. Furthermore, it receives the list of candidates. From this list, one candidate must be chosen, and returned to as the chosen one.

The environmental description currently contains the following entries:

keytypemeaning
lfnStringOutput filename produced by all.
cwnsStringCurrent working namespace, may be null.
levelIntegerCurrent recursion depth.

Parameters:
dvlist - is a set of candidates
environment - is a map describing the environment.
Returns:
the chosen candidate from the input set


Copyright © 2007 The University of Southern California. All Rights Reserved.