本文整理汇总了Python中al_lib.ArchiLib.ArchiLib.folderConcepts方法的典型用法代码示例。如果您正苦于以下问题:Python ArchiLib.folderConcepts方法的具体用法?Python ArchiLib.folderConcepts怎么用?Python ArchiLib.folderConcepts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类al_lib.ArchiLib.ArchiLib
的用法示例。
在下文中一共展示了ArchiLib.folderConcepts方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: createArchimateConcepts
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import folderConcepts [as 别名]
def createArchimateConcepts(fileArchimate, fileConceptsArch):
logger.info(u"Using : %s" % fileArchimate)
concepts = Concepts(fileArchimateModel, u"Archimate")
al = ArchiLib(fileArchimate)
al.logTypeCounts()
#
# Create Concepts from Archimate
#
al.folderConcepts(concepts)
Concepts.saveConcepts(concepts, fileConceptsArch)
logger.info(u"Saved concepts to : %s" % fileConceptsArch)
示例2: test_CreateArchimateConcepts
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import folderConcepts [as 别名]
def test_CreateArchimateConcepts(cleandir, fileArchimate):
assert (os.path.isfile(fileArchimate) is True)
logger.info(u"Using : %s" % fileArchimate)
concepts = Concepts(fileArchimate, u"Archimate")
al = ArchiLib(fileArchimate)
lc = al.logTypeCounts()
assert (len(lc) > 0)
#
# Create Concepts from Archimate
#
al.folderConcepts(concepts)
Concepts.saveConcepts(concepts, fileConceptsArch)
logger.info(u"Saved concepts to : %s" % fileConceptsArch)
assert (os.path.isfile(fileConceptsArch) is True)