本文整理汇总了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()");
//}
}
示例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()");
}
}
示例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
}
}
示例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
}
}
示例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
}
}
示例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;
}
示例7: BinaryCovarion
import beast.core.Input.Validate; //导入依赖的package包/类
public BinaryCovarion() {
ratesInput.setRule(Validate.OPTIONAL);
frequenciesInput.setRule(Validate.OPTIONAL);
}
示例8: EmpiricalSubstitutionModel
import beast.core.Input.Validate; //导入依赖的package包/类
public EmpiricalSubstitutionModel() {
frequenciesInput.setRule(Validate.OPTIONAL);
ratesInput.setRule(Validate.OPTIONAL);
}
示例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);
}
示例10: GeneTreeForSpeciesTreeDistribution
import beast.core.Input.Validate; //导入依赖的package包/类
public GeneTreeForSpeciesTreeDistribution() {
treeInput.setRule(Validate.REQUIRED);
}
示例11: SimulatedAlignment
import beast.core.Input.Validate; //导入依赖的package包/类
public SimulatedAlignment() {
// Override the sequence input requirement.
sequenceInput.setRule(Validate.OPTIONAL);
}
示例12: SMCTreeDensity
import beast.core.Input.Validate; //导入依赖的package包/类
public SMCTreeDensity() {
treeIntervalsInput.setRule(Validate.FORBIDDEN);
treeInput.setRule(Validate.OPTIONAL); // Possible to have only incidence data!
}
示例13: LeapingSMCTreeDensity
import beast.core.Input.Validate; //导入依赖的package包/类
public LeapingSMCTreeDensity() {
treeIntervalsInput.setRule(Validate.FORBIDDEN);
treeInput.setRule(Validate.OPTIONAL); // Possible to have only incidence data!
}