Ejemplo n.º 1
0
def test():
    csi = pClickstreamInterface.pClickstreamInterface()
    csi.SetParam('clickstreampathname', '/tmp/data')

    csi.Start()

    a = cAssociationRules()

    lSessions = csi.GetSessions()

    a.ComputeRules(lSessions)
Ejemplo n.º 2
0
    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
            }