def test(): csi = pClickstreamInterface.pClickstreamInterface() csi.SetParam('clickstreampathname', '/tmp/data') csi.Start() a = cAssociationRules() lSessions = csi.GetSessions() a.ComputeRules(lSessions)
def Initialize(self): """Initialize the interface classes.""" # Create instances self.intfProxy = pProxyInterface.pProxyInterface() self.intfClickstream = pClickstreamInterface.pClickstreamInterface() self.intfGui = pGuiInterface.pGuiInterface() self.intfAssocRules = pAssocRulesInterface.pAssocRulesInterface() self.intfRecommendation = pRecommendationInterface.pRecommendationInterface() self.intfNetwork = pNetworkInterface.pNetworkInterface() self.intfStatistics = pStatisticsInterface.pStatisticsInterface() # Create dictionary for all available packages and their interface-class # Need this for SetConfig() self.dPackages = { 'pProxy': self.intfProxy, 'pClickstream': self.intfClickstream, 'pGui': self.intfGui, 'pAssocRules': self.intfAssocRules, 'pRecommendation': self.intfRecommendation, 'pStatistics': self.intfStatistics, 'pNetwork': self.intfNetwork, 'pManager': self }