Crossfire JXClient, Trunk
|
Public Member Functions | |
void | init () |
void | setParent (SortItem p) |
void | stop () |
Protected Member Functions | |
void | pause () throws Exception |
void | pause (int H1) throws Exception |
void | pause (int H1, int H2) throws Exception |
Protected Attributes | |
boolean | stopRequested = false |
Package Functions | |
void | sort (int a[]) throws Exception |
Private Attributes | |
SortItem | parent |
A generic sort demonstration algorithm SortAlgorithm.java, Thu Oct 27 10:32:35 1994
Definition at line 48 of file SortAlgorithm.java.
void SortAlgorithm.init | ( | ) |
Initialize
Definition at line 106 of file SortAlgorithm.java.
References stopRequested.
Referenced by SortItem.run().
|
protected |
Pause for a while.
Definition at line 69 of file SortAlgorithm.java.
References SortItem.h1, SortItem.h2, parent, SortItem.pause(), and stopRequested.
Referenced by BidirBubbleSortAlgorithm.sort(), and BubbleSortAlgorithm.sort().
|
protected |
Pause for a while and mark item 1.
Definition at line 79 of file SortAlgorithm.java.
References SortItem.h2, parent, SortItem.pause(), and stopRequested.
|
protected |
Pause for a while and mark item 1 & 2.
Definition at line 89 of file SortAlgorithm.java.
References parent, SortItem.pause(), and stopRequested.
void SortAlgorithm.setParent | ( | SortItem | p | ) |
Set the parent.
Definition at line 62 of file SortAlgorithm.java.
References parent.
Referenced by SortItem.run().
|
package |
This method will be called to sort an array of integers.
Reimplemented in QSortAlgorithm, BidirBubbleSortAlgorithm, and BubbleSortAlgorithm.
Definition at line 114 of file SortAlgorithm.java.
Referenced by SortItem.run().
void SortAlgorithm.stop | ( | ) |
Stop sorting.
Definition at line 99 of file SortAlgorithm.java.
References stopRequested.
Referenced by SortItem.stop().
|
private |
The sort item.
Definition at line 53 of file SortAlgorithm.java.
Referenced by pause(), and setParent().
|
protected |
When true stop sorting.
Definition at line 57 of file SortAlgorithm.java.
Referenced by init(), pause(), BubbleSortAlgorithm.sort(), BidirBubbleSortAlgorithm.sort(), and stop().