Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AdaptationStyle

Interface of an adaptation style, i.e. what specifies how to adapt a menu. All adaptation style classes must implement this interface.

Hierarchy

  • AdaptationStyle

Implemented by

Index

Properties

Methods

Properties

name

name: string

Name of the adaptation style. It must be unique among all styles.

Methods

apply

  • Apply the adaptation to all the menus of the given menu manager, using the given target policy and data.

    Parameters

    • menuManager: MenuManager

      The menu manager containing the menus to adapt.

    • Optional policy: TargetPolicy

      The target policy to use to compute scores.

    • Optional dataManager: DataManager

      The data manager containing data for the policy.

    Returns void

cancel

  • cancel(): void
  • Remove all effects of the adaptation style from the menus.

    This method must restore the adapted menus into their original states, as if they had not been adapted.

    Returns void

Generated using TypeDoc