Changeset 6988
- Timestamp:
- 02/24/16 13:33:39 (9 years ago)
- Location:
- FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/AnnotationTranslator.java
r6979 r6988 7 7 8 8 import java.util.ArrayList; 9 import java.util.List; 9 10 10 11 /** … … 53 54 return translationTypes.getTranslationType(ttId); 54 55 } 55 56 57 public List<TranslationTable> getTranslationTables() { 58 return translationTables.getList(); 59 } 60 56 61 TranslationTable findTranslationTable(String fromRes, String fromLay, String toRes, String toLay, TranslationType ty) { 57 62 return translationTables.find(fromRes, fromLay, toRes, toLay, ty); -
FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/AnnotationTranslatorTestDriver.java
r6987 r6988 156 156 return; 157 157 } 158 if ( !getTranslationTypeData(at)) {159 return;160 } 161 if (!getTranslationTableData(at)){162 return; 163 } 164 testPoSTranslations(at); 165 testPhonTranslations(at); 158 if (getTranslationTypeData(at) && getTranslationTableData(at)) { 159 testPoSTranslations(at); 160 testPhonTranslations(at); 161 } else { 162 for (TranslationTable ttable : at.getTranslationTables()) { 163 ttable.display(); 164 } 165 } 166 166 } 167 167 -
FCSannotrans/trunk/src/main/java/nl/mpi/annot/translate/TranslationTables.java
r6979 r6988 8 8 import java.util.ArrayList; 9 9 import java.util.HashMap; 10 import java.util.List; 10 11 11 12 /** … … 54 55 return nw; 55 56 } 57 58 public List<TranslationTable> getList() { 59 return translationTableArray; 60 } 56 61 57 62 TranslationTable find(String fromRes, String fromLay, String toRes, String toLay, TranslationType ty) {
Note: See TracChangeset
for help on using the changeset viewer.