本文整理汇总了Java中dr.xml.AttributeRule类的典型用法代码示例。如果您正苦于以下问题:Java AttributeRule类的具体用法?Java AttributeRule怎么用?Java AttributeRule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AttributeRule类属于dr.xml包,在下文中一共展示了AttributeRule类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[]{
AttributeRule.newDoubleRule(MCMCOperator.WEIGHT),
new ElementRule(MulSpeciesBindings.class),
new ElementRule(MulSpeciesTreeModel.class)
};
}
示例2: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
AttributeRule.newIntegerRule(FROM, true,
"The site position to start at, default is 1 (the first position)"), //
AttributeRule.newIntegerRule(TO, true,
"The site position to finish at, must be greater than <b>"
+ FROM
+ "</b>, default is number of sites (replications)"), //
AttributeRule.newIntegerRule(
EVERY,
true,
"Determines how many sites are selected. A value of 3 will select every third site starting from <b>"
+ FROM
+ "</b>, default is 1 (every site)"), //
new ElementRule(TreeModel.class), //
new XORRule(new ElementRule(BranchModel.class),
new ElementRule(SubstitutionModel.class), false), //
new ElementRule(GammaSiteRateModel.class), //
new ElementRule(BranchRateModel.class, true), //
new ElementRule(FrequencyModel.class), //
new ElementRule(Sequence.class, true) //
};
}
示例3: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
AttributeRule.newIntegerRule(FROM, true,
"The site position to start at, default is 1 (the first position)"), //
AttributeRule.newIntegerRule(TO, true,
"The site position to finish at, must be greater than <b>"
+ FROM
+ "</b>, default is number of sites"), //
AttributeRule.newIntegerRule(
EVERY,
true,
"Determines how many sites are selected. A value of 3 will select every third site starting from <b>"
+ FROM
+ "</b>, default is 1 (every site)"), //
new ElementRule(TreeModel.class), //
new XORRule(new ElementRule(BranchModel.class),
new ElementRule(SubstitutionModel.class), false), //
new ElementRule(GammaSiteRateModel.class), //
new ElementRule(BranchRateModel.class, true), //
new ElementRule(FrequencyModel.class), //
new ElementRule(Sequence.class, true) //
};
}
示例4: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
new ElementRule(TreeModel.class, false), //
new ElementRule(ASSIGNMENT, //
new XMLSyntaxRule[] { //
AttributeRule.newIntegerRule(ANNOTATION_VALUE,
false), //
new ElementRule(SubstitutionModel.class, false), // model
},//
1, Integer.MAX_VALUE), //
new ElementRule(BASE_MODEL, //
new XMLSyntaxRule[] { //
new ElementRule(SubstitutionModel.class, false) //
}, false) // base model
};
}
示例5: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
new ElementRule(DirichletProcessPrior.class, false),
new ElementRule(CompoundParameter.class, false), //
new ElementRule(CountableRealizationsParameter.class, false), //
AttributeRule.newDoubleRule(MCMCOperator.WEIGHT) //
};
}
示例6: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
AttributeRule.newDoubleRule(PLOIDYLEVEL),
new ElementRule(AlloppSpeciesBindings.Individual.class, 1, Integer.MAX_VALUE)
};
}
示例7: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[]{
AttributeRule.newDoubleRule(MCMCOperator.WEIGHT),
new ElementRule(AlloppSpeciesBindings.class),
new ElementRule(AlloppSpeciesNetworkModel.class)
};
}
示例8: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
AttributeRule.newDoubleRule(RATE, true, "Rate of the exponentially distributed random component."), //
new ElementRule(TreeModel.class, false), //
new ElementRule(BASE_MODEL,
new XMLSyntaxRule[]{ new ElementRule(SubstitutionModel.class, 1, 1) })
};
}
示例9: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[] {
AttributeRule.newIntegerRule(REPLICATIONS),
new ElementRule(Partition.class, 1, Integer.MAX_VALUE)
};
}
示例10: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[]{
AttributeRule.newDoubleRule(MCMCOperator.WEIGHT),
new ElementRule(AlloppSpeciesBindings.class),
new ElementRule(AlloppSpeciesNetworkModel.class)
};
}
示例11: getSyntaxRules
import dr.xml.AttributeRule; //导入依赖的package包/类
public XMLSyntaxRule[] getSyntaxRules() {
return new XMLSyntaxRule[]{
new ElementRule(ARGModel.class,false),
AttributeRule.newStringRule(NAME,true),
};
}