Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TargetPolicy

Hierarchy

  • TargetPolicy

Implemented by

Index

Properties

name

name: string

Name of the target policy. It must be unique among all policies.

Methods

getSortedItemGroups

getSortedItemGroupsWithScores

  • Get a sorted list of all groups (from all menus) with scores assigned by the policy. The policy is responsible for assigning scores and sorting the groups accordingly.

    Parameters

    • menuManager: MenuManager

      The menu manager containing the groups to rank and sort.

    • Optional dataManager: DataManager

      The data manager containing data for the policy.

    Returns ItemGroupWithScore[]

    A sorted list of groups with their scores.

getSortedItems

getSortedItemsWithScores

  • Get a sorted list of all items (from all menus) with scores assigned by the policy. The policy is responsible for assigning scores and sorting the items accordingly.

    Parameters

    • menuManager: MenuManager

      The menu manager containing the items to rank and sort.

    • Optional dataManager: DataManager

      The data manager containing data for the policy.

    Returns ItemWithScore[]

    A sorted list of items with their scores.

Generated using TypeDoc