Ejemplo n.º 1
0
def getInfoFlowNetwork(tStr, delta_t):
    parameters.setLayerDistance(1)
    mailID.cachedInit()
    msgDetailsFilePath = r'D:\AKwork2021\HigherDimensions\Higher-Dimensions\ApacheData\apacheMsgDetails.txt'
    # Create the dictionary of messages and get the min,max times of messages.
    minTime, maxTime, msgDict = reproValidity.readMsgDetails(
        msgDetailsFilePath)
    return reproValidity.getValues(tStr, delta_t, minTime, maxTime, msgDict,
                                   'monoplex', False)
Ejemplo n.º 2
0
 def testMLN(self):
     msgDetailsFilePath = 'D:\\AKwork2020-2021\\Higher-Dimensions\\GraphConstruction\\Data\\msgDetailsTest2.txt'
     minTime, maxTime, msgDict = reproValidity.readMsgDetails(
         msgDetailsFilePath)
     t = '1 hour'
     delta_t = 3600
     msgEdgesFilePath = 'D:\\AKwork2020-2021\\Higher-Dimensions\\GraphConstruction\\Data\\msgEdgesTest1.txt'
     infoFlowNetwork = createInfoFlowNetwork(t, delta_t, minTime, msgDict,
                                             msgEdgesFilePath)
     infoFlowNetwork.getTransitiveFault('MLN')
Ejemplo n.º 3
0
 def testMonoplex(self):
     msgDetailsFilePath = 'D:\\AKwork2020-2021\\Higher-Dimensions\\GraphConstruction\\Data\\msgDetailsTest2.txt'
     minTime, maxTime, msgDict = reproValidity.readMsgDetails(
         msgDetailsFilePath)
     t = '1 hour'
     delta_t = 3600
     msgEdgesFilePath = 'D:\\AKwork2020-2021\\Higher-Dimensions\\GraphConstruction\\Data\\msgEdgesTest1.txt'
     infoFlowNetwork = createInfoFlowNetwork(t, delta_t, minTime, msgDict,
                                             msgEdgesFilePath)
     netwType = 'monoplex'
     infoFlowNetwork.getTransitiveFault(netwType)
     resFilePath = 'D:\\AKwork2020-2021\\Higher-Dimensions\\GraphConstruction\\Data\\monoplexRes1.txt'
     testNr2Paths(infoFlowNetwork, netwType, resFilePath)
Ejemplo n.º 4
0
        'MLN #2path ranking Spearman correlation P',
        'monoplex #2path ranking Spearman correlation O',
        'monoplex #2path ranking Spearman correlation P'
    ]
    for col in tRows:
        tData.append(col)
    t = go.Figure(data=[
        go.Table(header=dict(values=tColumnNames), cells=dict(values=tData))
    ])
    t.show()


mailID.cachedInit()
msgDetailsFilePath = 'D:\AKwork2021\HigherDimensions\Higher-Dimensions\ApacheData\\apacheMsgDetails.txt'
#"Data\\msgDetails.txt"
minTime, maxTime, msgDict = reproValidity.readMsgDetails(msgDetailsFilePath)
t1Rows = [[] for k in range(6)]
parameters.setLayerDistance(1)


# Computes using InfoFlowNetwork class, the upper&lower bounds for the TFR for the MLN and the
# monoplex, and displays a table that compares them.
def getResults():
    scaleRows = [[] for k in range(3)]
    tCorrRows = [[] for x in range(4)]
    tRows = [[] for x in range(8)]
    cleRows = [[] for x in range(4)]

    t2Times = []
    t2Rows = [[] for elem in range(11)]
Ejemplo n.º 5
0
def dataSetUp():
    mailID.init()
    msgDetailsFilePath = "Data\\msgDetails.txt"
    return reproValidity.readMsgDetails(msgDetailsFilePath)