Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LoopingStrategy<T, U, A>

Looping strategy decorator.

Wraps a strategy to make it infinite (i.e. onFinish always returns false).

Type parameters

  • T

  • U: Graph<T>

  • A: Array<unknown> = any[]

Hierarchy

  • LoopingStrategy

Implements

Index

Methods

onFail

  • onFail(map: U): void

onFinish

  • onFinish(map: U, v: T): boolean

path

  • path(): Deque<T> | undefined

update

  • update(map: U): void

Static wrap

  • wrap<T, U, A>(f: {}): {}
  • Type parameters

    • T

    • U: Graph<T>

    • A: Array<unknown>

    Parameters

    • f: {}

      Strategy class to be wrapped.

    Returns {}

    a constructor for a looping strategy over the wrapped one.

Generated using TypeDoc