Heap allows you to have many of one kind of object without
retaining a seperate copy in memory for each one.
Methods
|
|
|
|
cloneSelf
|
cloneSelf ( self )
This method needs to be overridden. This method will get called
when a heap is split into two heaps. |
|
createHeap
|
createHeap ( self )
|
|
createObject
|
createObject ( self )
|
|
destroyHeap
|
destroyHeap ( self )
|
|
destroyObject
|
destroyObject ( self )
|
|
getHeapType
|
getHeapType ( self )
|
|
getNumObjectsInHeap
|
getNumObjectsInHeap ( self )
|
|
getPartialHeap
|
getPartialHeap ( self, numObjects )
|
|
move
|
move ( self, newEnvironment )
|
|
objectEnteredEnvironment
|
objectEnteredEnvironment ( self, newObject )
|
|
setHeapType
|
setHeapType ( self, type )
|
|
setNumObjectsInHeap
|
setNumObjectsInHeap ( self, number )
|
|
takeAwayPartialHeap
|
takeAwayPartialHeap ( self )
|