当前位置: 首页>>代码示例>>Java>>正文


Java Taxa.getId方法代码示例

本文整理汇总了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);
    }
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:18,代码来源:TaxonSetPanel.java

示例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;
    }
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:15,代码来源:BeautiOptions.java

示例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);
    }
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:13,代码来源:SpeciesSetPanel.java

示例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;
}
 
开发者ID:whdc,项目名称:ieo-beast,代码行数:9,代码来源:TaxaPanel.java

示例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);
}
 
开发者ID:whdc,项目名称:ieo-beast,代码行数:38,代码来源:BeastGenerator.java


注:本文中的dr.evolution.util.Taxa.getId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。