本文整理汇总了Java中dr.evolution.util.Taxa.getId方法的典型用法代码示例。如果您正苦于以下问题:Java Taxa.getId方法的具体用法?Java Taxa.getId怎么用?Java Taxa.getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dr.evolution.util.Taxa
的用法示例。
在下文中一共展示了Taxa.getId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public Object getValueAt(int rowIndex, int columnIndex) {
Taxa taxonSet = options.taxonSets.get(rowIndex);
switch (columnIndex) {
case 0:
return taxonSet.getId();
case 1:
return options.taxonSetsMono.get(taxonSet);
case 2:
return options.taxonSetsIncludeStem.get(taxonSet);
case 3:
return options.taxonSetsTreeModel.get(taxonSet);
case 4:
return options.taxonSetsHeights.get(taxonSet);
default:
throw new IllegalArgumentException("unknown column, " + columnIndex);
}
}
示例2: renameTMRCAStatistic
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public boolean renameTMRCAStatistic(Taxa taxonSet) {
Parameter statistic = statistics.get(taxonSet);
if (statistic != null) {
if (useStarBEAST) {
statistic.taxaId = taxonSet.getId();
} else {
PartitionTreeModel treeModel = taxonSetsTreeModel.get(taxonSet);
statistic.taxaId = treeModel.getPrefix() + taxonSet.getId();
}
return true;
} else {
return false;
}
}
示例3: getValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public Object getValueAt(int rowIndex, int columnIndex) {
Taxa taxonSet = options.speciesSets.get(rowIndex);
switch (columnIndex) {
case 0:
return taxonSet.getId();
case 1:
return options.speciesSetsMono.get(taxonSet);
default:
throw new IllegalArgumentException("unknown column, " + columnIndex);
}
}
示例4: getValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public Object getValueAt(int rowIndex, int columnIndex) {
Taxa taxonSet = options.taxonSets.get(rowIndex);
switch(columnIndex) {
case 0: return taxonSet.getId();
case 1: return options.taxonSetsMono.get(taxonSet);
}
return null;
}
示例5: checkOptions
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
/**
* Checks various options to check they are valid. Throws IllegalArgumentExceptions with
* descriptions of the problems.
*
* @throws IllegalArgumentException if there is a problem with the current settings
*/
public void checkOptions() throws IllegalArgumentException {
Set<String> ids = new HashSet<String>();
ids.add(TaxaParser.TAXA);
ids.add(AlignmentParser.ALIGNMENT);
if (taxonList != null) {
for (int i = 0; i < taxonList.getTaxonCount(); i++) {
Taxon taxon = taxonList.getTaxon(i);
if (ids.contains(taxon.getId())) {
throw new IllegalArgumentException("A taxon has the same id," + taxon.getId() +
"\nas another element (taxon, sequence, taxon set etc.):\nAll ids should be unique.");
}
ids.add(taxon.getId());
}
}
for (Taxa taxa : taxonSets) {
if (taxa.getTaxonCount() < 2) {
throw new IllegalArgumentException("Taxon set, " + taxa.getId() + ", should contain\n" +
"at least two taxa.");
}
if (ids.contains(taxa.getId())) {
throw new IllegalArgumentException("A taxon sets has the same id," + taxa.getId() +
"\nas another element (taxon, sequence, taxon set etc.):\nAll ids should be unique.");
}
ids.add(taxa.getId());
}
getPartionCount(codonHeteroPattern);
}