Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TargetFollowingStrategy<U, G>

Interface for an strategy used to follow some target.

Type parameters

Hierarchy

  • TargetFollowingStrategy

Implemented by

Index

Methods

onFail

  • onFail(map: G): void
  • Signals failure when trying to follow a path generated by the strategy. Used for recovery when a path becomes invalid after calculation.

    Parameters

    • map: G

      graph on which to calculate the path.

    Returns void

onFinish

  • onFinish(map: G, v: U): boolean
  • Signals that the follower has finished following a path that was generated by the strategy. This can used to compute partial paths and then complete them later as possible/necessary.

    Parameters

    • map: G

      graph on which to calculate the path.

    • v: U

      the actual vertex where the follower stopped.

    Returns boolean

path

  • path(): Deque<U> | undefined

update

  • update(map: G): void
  • Updates path calculation.

    Parameters

    • map: G

      graph on which to calculate the path.

    Returns void

Generated using TypeDoc