Пример #1
0
def test_ExportArchi(cleandir, fileArchimate):

    assert (os.path.isfile(fileArchimate) is True)

    ea = ExportArchi(fileArchimate, fileConceptsExport)

    ea.exportArchi()

    assert (os.path.isfile(fileConceptsExport) is True)
Пример #2
0
def exportArchi(fileArchimate, fileConceptsExport):

    start_time = ArchiLib.startTimer()

    ea = ExportArchi(fileArchimate, fileConceptsExport)

    ea.exportArchi()

    ArchiLib.stopTimer(start_time)
Пример #3
0
logger = setupLogging(__name__)
logger.setLevel(logging.INFO)

from al_lib.Constants import *
from al_lib.ArchiLib import ArchiLib
from al_lib.ExportArchi import ExportArchi
from al_lib.ConceptsImportNeo4J import ConceptsImportNeo4J
from al_lib.AnalyzeGraph import AnalyzeGraph


if __name__ == u"__main__":

    start_time = ArchiLib.startTimer()

    fileArchimate = u"/Users/morrj140/Documents/SolutionEngineering/Archimate Models/CMS into ECM V5.archimate"

    al = ArchiLib(fileArchimate)
    ea = ExportArchi(fileArchimate, fileConceptsExport)

    logger.info(u"...Export Archi...")
    concepts = ea.exportArchi()

    logger.info(u"...Import Neo4J...")
    in4j = ConceptsImportNeo4J(fileArchimate, gdb, ClearNeo4J=True)
    in4j.importNeo4J(concepts)

    logger.info(u"...Analyze NetworkX...")
    ag = AnalyzeGraph(gdb)
    ag.analyzeNetworkX(concepts, fileConceptsExport)

    ArchiLib.stopTimer(start_time)