Summary
A base class for BaseComparers that uses the concept of desirability to help define priority.
For a list of all members of this type, see
BaseRequestDesirabilityComparer Members
.
Type Relationships
System.ObjectEas.WebCrawler.PlugIns.RequestComparers.BaseComparer
Eas.WebCrawler.PlugIns.RequestComparers.DecoratingComparer
Eas.WebCrawler.PlugIns.RequestComparers.BaseRequestDesirabilityComparer
Eas.WebCrawler.PlugIns.RequestComparers.SpecificHostComparer
Eas.WebCrawler.PlugIns.RequestComparers.StayOnHostComparer
Declaration Syntax
MustInherit Public Class BaseRequestDesirabilityComparer
Inherits DecoratingComparer
public abstract class BaseRequestDesirabilityComparer : DecoratingComparer
public __gc __abstract class BaseRequestDesirabilityComparer : public DecoratingComparer
public abstract class BaseRequestDesirabilityComparer extends DecoratingComparer
Remarks
There are sometimes where priority is defined like this 'do all the requests that stay on the same host before processing requests that move to a different host' or 'do all requests that are images before everything else'. To make this simple, this class defines the concept of 'desirability'. Desirability is a boolean value, something is either desirable (i.e. the link stays on the same host, or is an image or something) or it is not desirable. Derived classes implement the IsPreferred method to determine if a link is desirable, and this class will then rank all desirable links as being higher priority then non-desirable ones. In the case that the links being proritized are either both desirable or both undesirable, then the comparison is delegated to another comparer.Requirements
Namespace: Eas.WebCrawler.PlugIns.RequestComparersAssembly: Eas.WebCrawler.PlugIns (eas.webcrawler.plugins.dll)