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


Java AttributeRule.newIntegerRule方法代码示例

本文整理汇总了Java中dr.xml.AttributeRule.newIntegerRule方法的典型用法代码示例。如果您正苦于以下问题:Java AttributeRule.newIntegerRule方法的具体用法?Java AttributeRule.newIntegerRule怎么用?Java AttributeRule.newIntegerRule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dr.xml.AttributeRule的用法示例。


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

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

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

示例3: 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

	};
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:21,代码来源:BranchAssignmentModelParser.java

示例4: getSyntaxRules

import dr.xml.AttributeRule; //导入方法依赖的package包/类
@Override
public XMLSyntaxRule[] getSyntaxRules() {
	
	return new XMLSyntaxRule[] {
			AttributeRule.newIntegerRule(REPLICATIONS), 
			new ElementRule(Partition.class, 1, Integer.MAX_VALUE)
			};
	
}
 
开发者ID:whdc,项目名称:ieo-beast,代码行数:10,代码来源:BeagleSequenceSimulatorParser.java


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