class WakeupOnElapsedTimeHeap
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
(package private) WakeupOnElapsedTime[] |
data |
(package private) int |
size |
| Constructor and Description |
|---|
WakeupOnElapsedTimeHeap()
Construct heap of default capacity 10
|
WakeupOnElapsedTimeHeap(int initCapacity)
Construct heap with user-defined capacity
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone()
Clone this heap
|
(package private) void |
extract(BehaviorRetained behav)
Extract wakeup condition belongs to behav from the heap.
|
(package private) WakeupOnElapsedTime |
extract(int i)
Extract the ith value from the heap.
|
(package private) boolean |
extract(WakeupOnElapsedTime wakeup)
Extract wakeup from the heap.
|
(package private) WakeupOnElapsedTime |
extractMin()
Extract the minimum value from the heap.
|
(package private) WakeupOnElapsedTime |
getMin()
Get the minimum element from the heap.
|
(package private) void |
insert(WakeupOnElapsedTime key)
Insert the key into the heap
|
(package private) boolean |
isEmpty()
Return true if heap is empty
|
(package private) int |
size()
Return size of heap
|
java.lang.String |
toString() |
(package private) void |
trimToSize()
Trims the capacity of this instance to be the
list's current size.
|
WakeupOnElapsedTime[] data
int size
WakeupOnElapsedTimeHeap(int initCapacity)
WakeupOnElapsedTimeHeap()
final int size()
final boolean isEmpty()
final WakeupOnElapsedTime getMin()
final void insert(WakeupOnElapsedTime key)
final void extract(BehaviorRetained behav)
final boolean extract(WakeupOnElapsedTime wakeup)
final WakeupOnElapsedTime extractMin()
final WakeupOnElapsedTime extract(int i)
final void trimToSize()
protected final java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.