from Scripts.LogParser import *
from Scripts.UserLogIO import *
from Scripts.LogAnalyser import *

#required class objects
logIO = UserLogIO()
logParser = LogParser()

#load log file
rawLog = logIO.loadLog('../Datasets/Pilot_User_Study/user2_study1.log')

#log analyser class object
logAnalyser = LogAnalyser(rawLog)

chatCount = logAnalyser.get_P2P_communication_count()
print('Chat Counts => ' + str(chatCount))

chatPar = logAnalyser.get_P2P_communication_percentage()
print('Communication Parcentage => ' + str(round(chatPar, 2)) + " %")

floorAccessTime = logAnalyser.get_floor_accessed_time()
print('Floor Access Time => ' + str(floorAccessTime) + ' ms')

totalLogTime = logAnalyser.get_total_log_time()
print('Total Session Time => ' + str(totalLogTime) + ' ms')

accessP = logAnalyser.get_floor_access_percentage()
print("Floor Access Percentage => " + str(round(accessP, 2)) + " %")

#print(logAnalyser.get_P2P_all_sent_texts())
print('Total Subworkflow Locks => ' +
Beispiel #2
0
from Scripts.LogParser import *
from Scripts.UserLogIO import *
from Scripts.LogAnalyser import *

#required class objects
logIO = UserLogIO()
logParser = LogParser()

#load log file
rawLog = logIO.loadLog('../../Datasets/Pilot_User_Study/user2_study1.log')

#log analyser class object
logAnalyser = LogAnalyser(rawLog)

chatCount = logAnalyser.get_P2P_communication_count()
print('Chat Counts => ' + str(chatCount))
from Scripts.LogParser import *
from Scripts.UserLogIO import *
from Scripts.LogAnalyser import *

#required class objects
logIO = UserLogIO()
logParser = LogParser()

#load log file
rawLog = logIO.loadLog(
    '/home/gom766/Documents/My_Research_Projects/MyGitRepo/SciWorCS_User_Study_Result_Analysis/Datasets/CHI19_Datasets/CHI 2019 (work)/Study 2/Participant 3/participant_3_task3.log'
)

#log analyser class object
logAnalyser = LogAnalyser(rawLog)

chatCount = logAnalyser.get_P2P_communication_count()
print('Chat Counts => ' + str(chatCount))

acc_reqCount = logAnalyser.get_floor_request_count(
) + logAnalyser.get_subworkflow_lock_request_counts()
print('Total Acc. Req. Count => ' + str(acc_reqCount))

moduleAdditionCount = logAnalyser.get_module_addition_count()
print('Module Addition Count => ' + str(moduleAdditionCount))

datalinkAdditionCount = logAnalyser.get_datalink_added_count()
print('Datalink Addition Count => ' + str(datalinkAdditionCount))

moduleRemoveCount = logAnalyser.get_module_deletion_count()
print('Module Remove Count => ' + str(moduleRemoveCount))