Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AsyncAstar<T>

Type parameters

  • T

Hierarchy

  • AsyncAstar

Index

Constructors

constructor

Properties

finished

finished: boolean

Private genSuccessorsFn

genSuccessorsFn: GenSuccessorsFn<T>

Private goal

goal: T

Private hashFn

hashFn: HashFn<T>

Private heuristicFn

heuristicFn: HeuristicFn<T>

Private nodeSet

nodeSet: Map<string, NodeCost<T>>

Private openList

openList: HeapT<NodeCost<T>>

Private startNode

startNode: NodeCost<T>

Private stopFn

stopFn: StopFn<T>

Methods

getAllNodes

  • getAllNodes(): Map<string, NodeCost<T>>

getPath

reset

  • reset(start: any, goal: any): void

searchAsync

  • searchAsync(iterations?: number, closedNodeCb?: any, openNodeCb?: any): AsyncAstarResult<T>
  • Parameters

    • Default value iterations: number = Number.POSITIVE_INFINITY
    • Optional closedNodeCb: any
    • Optional openNodeCb: any

    Returns AsyncAstarResult<T>

updateGenSuccesors

updateHeuristic

  • updateHeuristic(newHeuristicFn: HeuristicFn<T>): void

Generated using TypeDoc