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


Java AttributeRule类代码示例

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

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

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

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

示例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) //
	};

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

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

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

示例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) })

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

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

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

示例11: getSyntaxRules

import dr.xml.AttributeRule; //导入依赖的package包/类
public XMLSyntaxRule[] getSyntaxRules() {
	return new XMLSyntaxRule[]{
		new ElementRule(ARGModel.class,false),
		AttributeRule.newStringRule(NAME,true),
	};
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:7,代码来源:ARGReassortmentTimingStatistic.java


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