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


Java ModelRepository.getInstance方法代码示例

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


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

示例1: setUp

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
/**
 * @throws java.lang.Exception
 */
@BeforeMethod(groups = { "generalimport", "fallback" })
protected void setUp() throws Exception {
    pi = new PnmlImport();
    //ModelRepository.reset();
    mrep = ModelRepository.getInstance();
    mrep.createDocumentWorkspace("void");
}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:11,代码来源:PnmlImportTest.java

示例2: modelToFile

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@Override
public void modelToFile(AbstractModel model) throws IOException, IllegalResourceException, IllegalModelException {
    checkModel(model, PnmlModel.class);
    PnmlModel pnmlModel = (PnmlModel) model;
    ModelRepository mr = ModelRepository.getInstance();
    mr.setPrettyPrintStatus(true);
    FileWriter fw = new FileWriter(pnmlModel.getResource().getAbsolutePath());
    fw.write(pnmlModel.getDoc().toPNML());
    fw.close();
}
 
开发者ID:pascalpoizat,项目名称:fmt,代码行数:11,代码来源:PnmlPnmlWriter.java

示例3: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "PositionHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		itemx = new Integer("0");
		
		itemy = new Integer("0");
		


	
	itemcontainerArcGraphics = new ArcGraphicsHLAPI(new HlcorestructureFactoryImpl().createArcGraphics());
	

	
	itemcontainerPNodeGraphics = new NodeGraphicsHLAPI(new HlcorestructureFactoryImpl().createNodeGraphics());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:22,代码来源:PositionHLAPITest.java

示例4: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "OffsetHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		itemx = new Integer("0");
		
		itemy = new Integer("0");
		


	
	itemcontainerAnnotationGraphics = new AnnotationGraphicsHLAPI(new HlcorestructureFactoryImpl().createAnnotationGraphics());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:18,代码来源:OffsetHLAPITest.java

示例5: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "DimensionHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		itemx = new Integer("0");
		
		itemy = new Integer("0");
		


	
	itemcontainerDNodeGraphics = new NodeGraphicsHLAPI(new PtnetFactoryImpl().createNodeGraphics());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:18,代码来源:DimensionHLAPITest.java

示例6: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "TypeHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		
		//HlcorestructureFactoryImpl
		itemannotationgraphics = new AnnotationGraphicsHLAPI(new HlcorestructureFactoryImpl().createAnnotationGraphics());
		
	
		itemtext = new String("unid");
		
		
			
		itemstructure = new fr.lip6.move.pnml.hlpn.arbitrarydeclarations.hlapi.AnySortHLAPI(
			new ArbitrarydeclarationsFactoryImpl().createAnySort()
		);
			
		
	


	
	itemcontainerPlace = new PlaceHLAPI(new HlcorestructureFactoryImpl().createPlace());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:29,代码来源:TypeHLAPITest.java

示例7: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "FontHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

	itemalign = FontAlignHLAPI.get(0);
	
	itemdecoration = FontDecorationHLAPI.get(0);
	
	itemfamily = CSS2FontFamilyHLAPI.get(0);
	
		itemrotation = new BigDecimal("0");
		
	itemsize = CSS2FontSizeHLAPI.get(0);
	
	itemstyle = CSS2FontStyleHLAPI.get(0);
	
	itemweight = CSS2FontWeightHLAPI.get(0);
	


	
	itemcontainerAnnotationGraphics = new AnnotationGraphicsHLAPI(new PtnetFactoryImpl().createAnnotationGraphics());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:28,代码来源:FontHLAPITest.java

示例8: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "DeclarationsHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");



	
	itemcontainerDeclaration = new DeclarationHLAPI(new HlcorestructureFactoryImpl().createDeclaration());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:14,代码来源:DeclarationsHLAPITest.java

示例9: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "VariableDeclHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		itemid = new String("unid");
		
		itemname = new String("unid");
		
		
			
		itemsort = new fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI(
			new TermsFactoryImpl().createMultisetSort()
		);
			
		
	


	
	itemcontainerDeclarations = new DeclarationsHLAPI(new TermsFactoryImpl().createDeclarations());
	

	
	itemcontainerNamedOperator = new NamedOperatorHLAPI(new TermsFactoryImpl().createNamedOperator());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:30,代码来源:VariableDeclHLAPITest.java

示例10: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "FiniteIntRangeHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		itemstart = new Long("0");
		
		itemend = new Long("0");
		


	
	itemmulti = new MultisetSortHLAPI(new TermsFactoryImpl().createMultisetSort());
	

	
	itemcontainerNamedSort = new NamedSortHLAPI(new TermsFactoryImpl().createNamedSort());
	

	
	itemcontainerVariableDecl = new VariableDeclHLAPI(new TermsFactoryImpl().createVariableDecl());
	

	
	itemcontainerProductSort = new ProductSortHLAPI(new TermsFactoryImpl().createProductSort());
	

	
	itemcontainerType = new TypeHLAPI(new HlcorestructureFactoryImpl().createType());
	

	
	itemcontainerAll = new AllHLAPI(new MultisetsFactoryImpl().createAll());
	

	
	itemcontainerEmpty = new EmptyHLAPI(new MultisetsFactoryImpl().createEmpty());
	

	
	itemcontainerPartition = new PartitionHLAPI(new PartitionsFactoryImpl().createPartition());
	

	
	itemcontainerList = new HLPNListHLAPI(new ListsFactoryImpl().createHLPNList());
	

	
	itemcontainerEmptyList = new EmptyListHLAPI(new ListsFactoryImpl().createEmptyList());
	

	
	itemcontainerMakeList = new MakeListHLAPI(new ListsFactoryImpl().createMakeList());
	

	
	itemcontainerFiniteIntRangeConstant = new FiniteIntRangeConstantHLAPI(new FiniteIntRangesFactoryImpl().createFiniteIntRangeConstant());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:62,代码来源:FiniteIntRangeHLAPITest.java

示例11: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "DotHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");



	
	itemmulti = new MultisetSortHLAPI(new TermsFactoryImpl().createMultisetSort());
	

	
	itemcontainerNamedSort = new NamedSortHLAPI(new TermsFactoryImpl().createNamedSort());
	

	
	itemcontainerVariableDecl = new VariableDeclHLAPI(new TermsFactoryImpl().createVariableDecl());
	

	
	itemcontainerProductSort = new ProductSortHLAPI(new TermsFactoryImpl().createProductSort());
	

	
	itemcontainerType = new TypeHLAPI(new HlcorestructureFactoryImpl().createType());
	

	
	itemcontainerAll = new AllHLAPI(new MultisetsFactoryImpl().createAll());
	

	
	itemcontainerEmpty = new EmptyHLAPI(new MultisetsFactoryImpl().createEmpty());
	

	
	itemcontainerPartition = new PartitionHLAPI(new PartitionsFactoryImpl().createPartition());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:42,代码来源:DotHLAPITest.java

示例12: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "InequalityHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		
			
		itemsort = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	
		
			
		itemoutput = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	


	
		
		
	itemcontainerOperator = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.EqualityHLAPI(
	   new BooleansFactoryImpl().createEquality()
	);
		
	

	
	itemcontainerNamedOperator = new NamedOperatorHLAPI(new TermsFactoryImpl().createNamedOperator());
	

	
	itemcontainerHLMarking = new HLMarkingHLAPI(new HlcorestructureFactoryImpl().createHLMarking());
	

	
	itemcontainerCondition = new ConditionHLAPI(new HlcorestructureFactoryImpl().createCondition());
	

	
	itemcontainerHLAnnotation = new HLAnnotationHLAPI(new HlcorestructureFactoryImpl().createHLAnnotation());
	

	
	itemcontainerPartitionElement = new PartitionElementHLAPI(new PartitionsFactoryImpl().createPartitionElement());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:55,代码来源:InequalityHLAPITest.java

示例13: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "FiniteIntRangeConstantHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		
			
		itemsort = new fr.lip6.move.pnml.symmetricnet.finiteIntRanges.hlapi.FiniteIntRangeHLAPI(
			new FiniteIntRangesFactoryImpl().createFiniteIntRange()
		);
			
		
	
		
			
		itemoutput = new fr.lip6.move.pnml.symmetricnet.finiteIntRanges.hlapi.FiniteIntRangeHLAPI(
			new FiniteIntRangesFactoryImpl().createFiniteIntRange()
		);
			
		
	
		itemvalue = new Integer("0");
		
		
		//FiniteIntRangesFactoryImpl
		itemrange = new FiniteIntRangeHLAPI(new FiniteIntRangesFactoryImpl().createFiniteIntRange());
		
	


	
		
		
	itemcontainerOperator = new fr.lip6.move.pnml.symmetricnet.finiteIntRanges.hlapi.FiniteIntRangeConstantHLAPI(
	   new FiniteIntRangesFactoryImpl().createFiniteIntRangeConstant()
	);
		
	

	
	itemcontainerNamedOperator = new NamedOperatorHLAPI(new TermsFactoryImpl().createNamedOperator());
	

	
	itemcontainerHLMarking = new HLMarkingHLAPI(new HlcorestructureFactoryImpl().createHLMarking());
	

	
	itemcontainerCondition = new ConditionHLAPI(new HlcorestructureFactoryImpl().createCondition());
	

	
	itemcontainerHLAnnotation = new HLAnnotationHLAPI(new HlcorestructureFactoryImpl().createHLAnnotation());
	

	
	itemcontainerPartitionElement = new PartitionElementHLAPI(new PartitionsFactoryImpl().createPartitionElement());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:62,代码来源:FiniteIntRangeConstantHLAPITest.java

示例14: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "OrHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		
			
		itemsort = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	
		
			
		itemoutput = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	


	
		
		
	itemcontainerOperator = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.EqualityHLAPI(
	   new BooleansFactoryImpl().createEquality()
	);
		
	

	
	itemcontainerNamedOperator = new NamedOperatorHLAPI(new TermsFactoryImpl().createNamedOperator());
	

	
	itemcontainerHLMarking = new HLMarkingHLAPI(new HlcorestructureFactoryImpl().createHLMarking());
	

	
	itemcontainerCondition = new ConditionHLAPI(new HlcorestructureFactoryImpl().createCondition());
	

	
	itemcontainerHLAnnotation = new HLAnnotationHLAPI(new HlcorestructureFactoryImpl().createHLAnnotation());
	

	
	itemcontainerPartitionElement = new PartitionElementHLAPI(new PartitionsFactoryImpl().createPartitionElement());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:55,代码来源:OrHLAPITest.java

示例15: setup

import fr.lip6.move.pnml.framework.utils.ModelRepository; //导入方法依赖的package包/类
@BeforeMethod(groups = { "NumberOfHLAPI", "hlapi" })
public void setup() throws Exception{
//ModelRepository.reset(); ModelRepository.getInstance().createDocumentWorkspace("void");
ModelRepository mr = ModelRepository.getInstance();
mr.createDocumentWorkspace("void");

		
			
		itemsort = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	
		
			
		itemoutput = new fr.lip6.move.pnml.symmetricnet.booleans.hlapi.BoolHLAPI(
			new BooleansFactoryImpl().createBool()
		);
			
		
	


	
		
		
	itemcontainerOperator = new fr.lip6.move.pnml.symmetricnet.multisets.hlapi.CardinalityHLAPI(
	   new MultisetsFactoryImpl().createCardinality()
	);
		
	

	
	itemcontainerNamedOperator = new NamedOperatorHLAPI(new TermsFactoryImpl().createNamedOperator());
	

	
	itemcontainerHLMarking = new HLMarkingHLAPI(new HlcorestructureFactoryImpl().createHLMarking());
	

	
	itemcontainerCondition = new ConditionHLAPI(new HlcorestructureFactoryImpl().createCondition());
	

	
	itemcontainerHLAnnotation = new HLAnnotationHLAPI(new HlcorestructureFactoryImpl().createHLAnnotation());
	

	
	itemcontainerPartitionElement = new PartitionElementHLAPI(new PartitionsFactoryImpl().createPartitionElement());
	

}
 
开发者ID:lip6,项目名称:pnmlframework,代码行数:55,代码来源:NumberOfHLAPITest.java


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