本文整理汇总了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");
}
示例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();
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}