Class: GetMinAlg

GetMinAlg

new GetMinAlg(tree, visualiser, node, isSubalgorithm)

Parameters:
Name Type Argument Description
tree btv.BinaryTree
visualiser btv.Visualiser
node btv.BinaryTreeNode
isSubalgorithm Boolean <optional>
Author:
  • Jakub Melezinek
Source:

Extends

Members

<protected> endAnimationListeners :jsgl.util.ArrayList

Listeners that are invoked at the end of animation chain.
Type:
  • jsgl.util.ArrayList
Inherited From:
Source:

<protected> isSubalgorithm :Boolean

True if algorithm is called from another algorithm.
Type:
  • Boolean
Inherited From:
Source:

<protected> startAnimationListeners :jsgl.util.ArrayList

Listeners that are invoked at the start of animation chain.
Type:
  • jsgl.util.ArrayList
Inherited From:
Source:

<protected> tree :btv.BinaryTree

Type:
Inherited From:
Source:

<protected> treeCopy :btv.BinaryTree

Type:
Inherited From:
Source:

<protected> visualiser :btv.Visualiser

Type:
Inherited From:
Source:

Methods

addEndAnimationListener(listener)

Adds a listener function to be invoked when the chain of animations ends.
Parameters:
Name Type Description
listener Function
Inherited From:
Source:

addStartAnimationListener(listener)

Adds a listener function to be invoked when the chain of animations starts.
Parameters:
Name Type Description
listener Function
Inherited From:
Source:

<protected> fireEndAnimationListeners()

Invokes all registered listener functions.
Inherited From:
Source:

<protected> fireStartAnimationListeners()

Invokes all registered listener functions.
Inherited From:
Source:

redo() → {btv.BinaryTreeNode}

Source:
Returns:
minimum
Type
btv.BinaryTreeNode

<protected> redoEnd(show)

Routine at end of each redo function.
Parameters:
Name Type Argument Description
show Boolean <optional>
Inherited From:
Source:

<protected> redoStart()

Routine at start of each redo function.
Inherited From:
Source:

removeEndAnimationListener(listener)

Removes a listener function.
Parameters:
Name Type Description
listener Function
Inherited From:
Source:

removeStartAnimationListener(listener)

Removes a listener function.
Parameters:
Name Type Description
listener Function
Inherited From:
Source:

toString()

Source:

<protected> undo()

Makes changes on the tree (undo the algoritm) - set the tree to state before this algorithm was done (executed).
Inherited From:
Source: