Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinkedPageScorePolicy

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private itemScores

itemScores: Map<Item, number>

Map from items to their scores.

It is used internally to share scores easily accross methods, and is cleared and recomputed everytime new scores must be computed.

Abstract name

name: string

Private pageScores

pageScores: Map<PageID, number>

Map from webpage IDs to their scores.

It is used internally to share scores easily accross methods, and is cleared and recomputed everytime new scores must be computed.

Protected pageVisitsAnalysis

pageVisitsAnalysis: PageVisitsAnalysis

Page visits analysis used to compute scores.

It is used internally to share it easily accross methods, and is cleared and recomputed everytime new scores must be computed.

Methods

Private computeAndSetItemScores

  • computeAndSetItemScores(items: Item[]): void

Private computeAndSetPageScores

  • computeAndSetPageScores(): void

Protected Abstract computePageScore

  • computePageScore(pageID: PageID): number

getSortedItemGroups

getSortedItemGroupsWithScores

getSortedItems

getSortedItemsWithScores

Generated using TypeDoc