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


Java ShapeFactory类代码示例

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


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

示例1: BasicMatrixValue

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
 * Construct a BasicMatrixValue based on a Constant.
 * Whenever we need to construct a BasicMatrixValue based on a Constant,
 * we need to call corresponding factory method in BasicMatrixValueFactory,
 * which is newMatrixValue.
 * TODO, actually, we should rename newMatrixValue to newMatrixValueFromConstant.
 */
public BasicMatrixValue(String name, Constant constant) {
	super(name, constant.getMatlabClass());
	this.constant = constant;
	this.shape = (new ShapeFactory())
			.newShapeFromIntegers(constant.getShape());
	//TODO, this line may cause infinite loop.
	if (constant instanceof DoubleConstant) {
		//System.out.println("Range analysis enabled");
		this.rangeValue = (new RangeValueFactory())
				.newRangeValueFromDouble(((DoubleConstant)constant).getValue());			
	}
	this.complex = new isComplexInfoFactory()
			.newisComplexInfoFromStr("REAL");
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:22,代码来源:BasicMatrixValue.java

示例2: AdvancedMatrixValue

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
 * XU add this method to support initial input shape info. svcn
 * 
 * @25th,Jul,2012
 * 
 * @param aClass
 * @param shapeInfo
 * @param isComplex
 */
public AdvancedMatrixValue(String symbolic, 
		PrimitiveClassReference aClass,
		String shapeInfo, 
		String isComplex) {
	super(symbolic, aClass);
	this.iscomplex = (new isComplexInfoFactory(
	)).newisComplexInfoFromConst(isComplex);
	this.shape = (new ShapeFactory())
			.newShapeFromInputString(shapeInfo);
	}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:20,代码来源:AdvancedMatrixValue.java

示例3: copyVertcatToOutput

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public void copyVertcatToOutput() {
	Shape shape = new ShapeFactory().newShapeFromDimValues(this.getOutputVertcatExpr());
	if (Debug) System.out.println("inside copy vertcat to output "+needForVertcat);
	addToOutput(shape);
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:6,代码来源:ShapePropMatch.java

示例4: AggrValueFactory

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public AggrValueFactory(){
	this.shapeFactory = new ShapeFactory();
	this.isComplexFactory = new isComplexInfoFactory(); //added by Vineet
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:5,代码来源:AggrValueFactory.java

示例5: getShapeFactory

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
 * returns the shape factory
 */
public ShapeFactory getShapeFactory(){
	return shapeFactory;
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:7,代码来源:AggrValueFactory.java

示例6: AggrValueFactory

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public AggrValueFactory(){
	this.shapeFactory = new ShapeFactory<AggrValue<D>>(this);
}
 
开发者ID:sshrdp,项目名称:mclab,代码行数:4,代码来源:AggrValueFactory.java

示例7: getShapeFactory

import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
 * returns the shape factory
 */
public ShapeFactory<AggrValue<D>> getShapeFactory(){
	return shapeFactory;
}
 
开发者ID:sshrdp,项目名称:mclab,代码行数:7,代码来源:AggrValueFactory.java


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