當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。