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. |
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:
| key | type | meaning |
| lfn | String | Output filename produced by all. |
| cwns | String | Current working namespace,
may be null. |
| level | Integer | Current recursion depth. |
- Parameters:
dvlist - is a set of candidatesenvironment - is a map describing the environment.
- Returns:
- the chosen candidate from the input set
Copyright © 2007 The University of Southern California. All Rights Reserved.