Esempio n. 1
0
 public SWPageRankVisitor(SqlConnection dblgLogin, int intInStepUrls,
                          int inIntHowManyLoops,
                          SWRankHandler inRankHandler, float InPagerankDparameter) : base(dblgLogin, intInStepUrls, inIntHowManyLoops)
 {
     RankHandler        = inRankHandler;
     UrlInfo            = new SWUrlInfoCache(dblgLogin);
     PageRankDParameter = InPagerankDparameter;           //0.85 usually
     EXException.CheckEXError((PageRankDParameter > 0.0f) && (PageRankDParameter < 1.0f), "Problem with D Parameter in PageRank.");
 }
Esempio n. 2
0
        public SWPageRankVisitor(SqlConnection dblgLogin, int intInStepUrls, 
									int inIntHowManyLoops,
			SWRankHandler inRankHandler, float InPagerankDparameter)
            : base(dblgLogin, intInStepUrls, inIntHowManyLoops)
        {
            RankHandler=inRankHandler;
            UrlInfo=new SWUrlInfoCache(dblgLogin);
            PageRankDParameter=InPagerankDparameter; //0.85 usually
            EXException.CheckEXError((PageRankDParameter>0.0f) && (PageRankDParameter<1.0f),"Problem with D Parameter in PageRank.");
        }