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


Java Validate类代码示例

本文整理汇总了Java中beast.core.Input.Validate的典型用法代码示例。如果您正苦于以下问题:Java Validate类的具体用法?Java Validate怎么用?Java Validate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Validate类属于beast.core.Input包,在下文中一共展示了Validate类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SYM

import beast.core.Input.Validate; //导入依赖的package包/类
public SYM() {
    ratesInput.setRule(Validate.OPTIONAL);
    try {
        ratesInput.setValue(null, this);
    } catch (Exception e) {
        e.printStackTrace();
        // TODO: handle exception
    }

    // Override the superclass SubstitutionModel.Base requirement for input frequencies, since they are equal in SYM
    //frequenciesInput.setRule(Validate.OPTIONAL);
    //try {
    //    initAndValidate();
    //} catch (Exception e) {
    //    e.printStackTrace();
    //    throw new RuntimeException("initAndValidate() call failed when constructing SYM()");
    //}
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:19,代码来源:SYM.java

示例2: JukesCantor

import beast.core.Input.Validate; //导入依赖的package包/类
public JukesCantor() {
    // this is added to avoid a parsing error inherited from superclass because frequencies are not provided.
    frequenciesInput.setRule(Validate.OPTIONAL);
    try {
        // this call will be made twice when constructed from XML
        // but this ensures that the object is validly constructed for testing purposes.
        initAndValidate();
    } catch (Exception e) {
        e.printStackTrace();
        throw new RuntimeException("initAndValidate() call failed when constructing JukesCantor()");
    }
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:13,代码来源:JukesCantor.java

示例3: TVM

import beast.core.Input.Validate; //导入依赖的package包/类
public TVM() {
    ratesInput.setRule(Validate.OPTIONAL);
    try {
        ratesInput.setValue(null, this);
    } catch (Exception e) {
        e.printStackTrace();
        // TODO: handle exception
    }
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:10,代码来源:TVM.java

示例4: TIM

import beast.core.Input.Validate; //导入依赖的package包/类
public TIM() {
    ratesInput.setRule(Validate.OPTIONAL);
    try {
        ratesInput.setValue(null, this);
    } catch (Exception e) {
        e.printStackTrace();
        // TODO: handle exception
    }
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:10,代码来源:TIM.java

示例5: GTR

import beast.core.Input.Validate; //导入依赖的package包/类
public GTR() {
      ratesInput.setRule(Validate.OPTIONAL);
      try {
      	ratesInput.setValue(null, this);
      } catch (Exception e) {
      	e.printStackTrace();
	// TODO: handle exception
}
  }
 
开发者ID:CompEvol,项目名称:beast2,代码行数:10,代码来源:GTR.java

示例6: getAvailableTemplates

import beast.core.Input.Validate; //导入依赖的package包/类
/**
 * finds beauti templates that can create subnets that fit an input
 * @param input
 * @param parent
 * @param tabuList
 * @param doc
 * @return
 */

public List<BeautiSubTemplate> getAvailableTemplates(Input<?> input, BEASTInterface parent, List<String> tabuList, BeautiDoc doc) {
    Class<?> type = input.getType();
    List<BeautiSubTemplate> candidates = doc.beautiConfig.getInputCandidates(parent, input, type);
    if (input.getRule().equals(Validate.OPTIONAL)) {
        candidates.add(BeautiConfig.getNullTemplate(doc));
    }
    return candidates;
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:18,代码来源:InputEditorFactory.java

示例7: BinaryCovarion

import beast.core.Input.Validate; //导入依赖的package包/类
public BinaryCovarion() {
    ratesInput.setRule(Validate.OPTIONAL);
    frequenciesInput.setRule(Validate.OPTIONAL);
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:5,代码来源:BinaryCovarion.java

示例8: EmpiricalSubstitutionModel

import beast.core.Input.Validate; //导入依赖的package包/类
public EmpiricalSubstitutionModel() {
    frequenciesInput.setRule(Validate.OPTIONAL);
    ratesInput.setRule(Validate.OPTIONAL);
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:5,代码来源:EmpiricalSubstitutionModel.java

示例9: FilteredAlignment

import beast.core.Input.Validate; //导入依赖的package包/类
public FilteredAlignment() {
    sequenceInput.setRule(Validate.OPTIONAL);
    // it does not make sense to set weights on sites, since they can be scrambled by the filter
    siteWeightsInput.setRule(Validate.FORBIDDEN);
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:6,代码来源:FilteredAlignment.java

示例10: GeneTreeForSpeciesTreeDistribution

import beast.core.Input.Validate; //导入依赖的package包/类
public GeneTreeForSpeciesTreeDistribution() {
    treeInput.setRule(Validate.REQUIRED);
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:4,代码来源:GeneTreeForSpeciesTreeDistribution.java

示例11: SimulatedAlignment

import beast.core.Input.Validate; //导入依赖的package包/类
public SimulatedAlignment() {
    
    // Override the sequence input requirement.
    sequenceInput.setRule(Validate.OPTIONAL);
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:6,代码来源:SimulatedAlignment.java

示例12: SMCTreeDensity

import beast.core.Input.Validate; //导入依赖的package包/类
public SMCTreeDensity() {
    treeIntervalsInput.setRule(Validate.FORBIDDEN);
    treeInput.setRule(Validate.OPTIONAL); // Possible to have only incidence data!
}
 
开发者ID:tgvaughan,项目名称:EpiInf,代码行数:5,代码来源:SMCTreeDensity.java

示例13: LeapingSMCTreeDensity

import beast.core.Input.Validate; //导入依赖的package包/类
public LeapingSMCTreeDensity() {
    treeIntervalsInput.setRule(Validate.FORBIDDEN);
    treeInput.setRule(Validate.OPTIONAL); // Possible to have only incidence data!
}
 
开发者ID:tgvaughan,项目名称:EpiInf,代码行数:5,代码来源:LeapingSMCTreeDensity.java


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