本文整理汇总了Python中al_lib.ArchiLib.ArchiLib.stopTimer方法的典型用法代码示例。如果您正苦于以下问题:Python ArchiLib.stopTimer方法的具体用法?Python ArchiLib.stopTimer怎么用?Python ArchiLib.stopTimer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类al_lib.ArchiLib.ArchiLib
的用法示例。
在下文中一共展示了ArchiLib.stopTimer方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: importWSDL
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def importWSDL():
start_time = ArchiLib.startTimer()
etree.QName(ArchiLib.ARCHIMATE_NS, u"model")
treeArchi = etree.parse(fileArchimateTest)
al = ArchiLib()
dirWSDL = u"/Users/morrj140/Documents/SolutionEngineering/Jawa/Jawa_v2_rc37"
for root, dirs, files in os.walk(dirWSDL, topdown=True):
for name in files:
nameFile = os.path.join(root, name)
logger.info(u"Checking File : %s" % name)
if nameFile[-4:].lower() == u"wsdl":
nFile = name[:-5]
logger.info(u"nFile : %s" % nFile)
tree = etree.parse(nameFile)
xp = u"//@schemaLocation"
txp = tree.xpath(xp)
for x in txp:
method = x[4:-4]
logger.info(u"x : %s" % method)
al.insertTwoColumns(
treeArchi, u"Application", u"New Jawa", u"archimate:ApplicationService", nFile, method
)
al.outputXML(treeArchi)
ArchiLib.stopTimer(start_time)
示例2: exportArchi
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def exportArchi(fileArchimate, fileConceptsExport):
start_time = ArchiLib.startTimer()
ea = ExportArchi(fileArchimate, fileConceptsExport)
ea.exportArchi()
ArchiLib.stopTimer(start_time)
示例3: exportArchiFolderModels
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def exportArchiFolderModels(fileArchimate, fileConceptsExport, folder):
start_time = ArchiLib.startTimer()
eafm = ExportArchiFolderModels(fileArchimate, fileConceptsExport)
eafm.exportArchiFolderModels(folder)
ArchiLib.stopTimer(start_time)
示例4: createRelations
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def createRelations(fileArchimate=fileArchimateTest):
start_time = ArchiLib.startTimer()
cr = CreateRelationsInArchi(fileArchimate)
cr.createRelations()
ArchiLib.stopTimer(start_time)
示例5: namedEntityAnalysis
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def namedEntityAnalysis(fileArchimate=fileArchimateTest, fileConceptsRequirements=fileConceptsRequirements):
start_time = ArchiLib.startTimer()
ane = AnalyzeNamedEntities(fileArchimate, fileConceptsRequirements)
ane.analyzeNamedEntities()
ArchiLib.stopTimer(start_time)
示例6: analyzeGraph
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def analyzeGraph(gdb):
concepts = None
start_time = ArchiLib.startTimer()
ag = AnalyzeGraph(gdb)
ag.analyzeNetworkX(concepts, fileConceptsExport)
ArchiLib.stopTimer(start_time)
示例7: createTagCloud
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def createTagCloud(conceptFile, topic):
start_time = ArchiLib.startTimer()
concepts = Concepts.loadConcepts(conceptFile)
tc = TopicCloud(concepts, font_path=u"/Users/morrj140/Fonts/DroidSans.ttf", imageFile=u"Topics.png")
tc.createTagCloud(topic)
ArchiLib.stopTimer(start_time)
示例8: exportNeo4j
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def exportNeo4j(gdb):
# measure process time, wall time
start_time = ArchiLib.startTimer()
concepts = Concepts(u"Neo4J", u"Neo4J Graph DB")
nj = Neo4JLib(gdb)
nj.exportNeo4JToConcepts(concepts)
ArchiLib.stopTimer(start_time)
示例9: exportArchiModel
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def exportArchiModel(fileArchimate, fileConceptsExport, model, fileCSVExport):
start_time = ArchiLib.startTimer()
eam = ExportArchiModel(fileArchimate, fileConceptsExport, fileCSVExport)
listMTE = list()
listMTE.append(model)
eam.exportArchiModel(listMTE)
ArchiLib.stopTimer(start_time)
示例10: dependancyAnalysisFromArchi
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def dependancyAnalysisFromArchi(fileArchimate):
start_time = ArchiLib.startTimer()
da = DependancyAnalysis(fileArchimate)
concepts, listTSort = da.collectDependancyAnalysisNodes()
da.dependancyAnalysis(listTSort)
concepts.logConcepts()
ArchiLib.stopTimer(start_time)
示例11: ImportCSVIntoArchi
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def ImportCSVIntoArchi(fileArchimate, folder, subfolder, fileMetaEntity):
start_time = ArchiLib.startTimer()
logger.info(u"Using : %s" % fileArchimate)
al = ArchiLib(fileArchimate)
_ = al.logTypeCounts(ListOnly=True)
al.insertNColumns(folder, subfolder, fileMetaEntity, CaseFix=False)
al.outputXMLtoFile()
relations = len(al.dictRel)
nodes = len(al.dictND)
logger.info(u"----------------------------------------------------------------------------------------")
logger.info(u"Encountered %d errors and added %d Nodes and %d relations" % (len(al.listErrors), nodes, relations))
ArchiLib.stopTimer(start_time)
示例12: graphConcepts
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def graphConcepts(conceptFile):
start_time = ArchiLib.startTimer()
concepts = Concepts.loadConcepts(conceptFile)
# concepts.logConcepts()
# graph = PatternGraph()
graph = GraphVizGraph()
# graph = NetworkXGraph(conceptFile[:-2]+u".png")
graph.addGraphNodes(concepts)
graph.addGraphEdges(concepts)
if isinstance(graph, NetworkXGraph):
graph.saveJSON(concepts)
if isinstance(graph, GraphVizGraph):
graph.exportGraph()
if isinstance(graph, PatternGraph):
graph.exportGraph()
ArchiLib.stopTimer(start_time)
示例13: createArchiFromConcepts
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
from al_lib.Constants import *
from al_lib.ArchiLib import ArchiLib
from al_lib.ConceptsImportArchi import ConceptsImportArchi
def createArchiFromConcepts(fileArchimate, fileConceptsImport, fileArchimateImport):
logger.info(u"Using : %s" % fileArchimate)
logger.info(u"Loading :" + fileConceptsImport)
ic = ConceptsImportArchi(fileArchimate, fileConceptsImport)
concepts = Concepts.loadConcepts(fileConceptsImport)
# Create Subfolder
folder = u"Implementation & Migration"
subfolder = u"Dependancy Analysis - %s" % time.strftime(u"%Y%d%m_%H%M%S")
ic.importConcepts(concepts, folder, subfolder)
ic.exportXML(fileArchimateImport)
if __name__ == u"__main__":
start_time = ArchiLib.startTimer()
createArchiFromConcepts(fileArchimateTest, fileConceptsExport, fileArchimateImport)
ArchiLib.stopTimer(start_time)
示例14: outputXMLtoLog
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def outputXMLtoLog(self):
self.al.outputXMLtoLog()
ArchiLib.stopTimer(self.start_time)
示例15: outputXMLtoFile
# 需要导入模块: from al_lib.ArchiLib import ArchiLib [as 别名]
# 或者: from al_lib.ArchiLib.ArchiLib import stopTimer [as 别名]
def outputXMLtoFile(self, filename=u"DiagramModeling.archimate"):
self.al.outputXMLtoFile(filename)
ArchiLib.stopTimer(self.start_time)