1 |
package skrueger; |
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
/** |
6 |
* This interface provides methods to request this objects "quality index", a |
7 |
* number between <code>0</code> and <code>1</code>. If quality is |
8 |
* <code>1</code>, translations (=inputs) exist for every supported language. |
9 |
* |
10 |
* @author Stefan A. Tzeggai |
11 |
*/ |
12 |
public interface QualityQuantizable { |
13 |
|
14 |
/** |
15 |
* @return a number between <code>0</code> (bad) and <code>1</code> (good) |
16 |
* that is calculated from the amount of translation available. |
17 |
*/ |
18 |
double getQuality(List<String> languages); |
19 |
|
20 |
} |