Class AnimeJHeap
Object
|
+--AnimeJHeap
- <private> class
AnimeJHeap
Heap implementation, it is used to define a shared timer which is responsible
for orchestrating the animation. This class is considered to be private to the library.
Defined in AnimeJ.js
Field Summary |
<private> Object |
obj
|
<private> Object |
pos
|
Method Summary |
int
|
Count()
The number of elements contained in the heap.
|
void
|
Insert(<AnimeJTask> el)
Insert a Task into the heap.
|
<private> Object
|
left(idx)
|
<private> Object
|
parent(idx)
|
<private> void
|
percolateDown(p)
|
<private> void
|
percolateUp(p)
|
AnimeJTask
|
Remove()
Remove the top element from the heap and returns it.
|
AnimeJTask
|
RemoveTask(<AnimeJTask> t)
Remove a specific task from the heap.
|
<private> Object
|
right(idx)
|
<private> void
|
swap(a, b)
|
AnimeJTask
|
Top()
Read the top of the heap.
|
<private> String
|
ToString()
Debug function to convert the heap into a string.
|
obj
<private> Object obj
pos
<private> Object pos
AnimeJHeap
AnimeJHeap()
Count
int Count()
The number of elements contained in the heap.
Insert
void Insert(<AnimeJTask> el)
Insert a Task into the heap.
Parameters:
el
- Task to be inserted.
left
<private> Object left(idx)
parent
<private> Object parent(idx)
percolateDown
<private> void percolateDown(p)
percolateUp
<private> void percolateUp(p)
Remove
AnimeJTask Remove()
Remove the top element from the heap and returns it. If the heap
is empty null is returned and the heap is left unchanged.
RemoveTask
AnimeJTask RemoveTask(<AnimeJTask> t)
Remove a specific task from the heap.
right
<private> Object right(idx)
swap
<private> void swap(a, b)
Top
AnimeJTask Top()
Read the top of the heap. If the heap is empty null is returned.
ToString
<private> String ToString()
Debug function to convert the heap into a string.
Documentation generated by
JSDoc on Thu Apr 15 11:15:01 2010