home *** CD-ROM | disk | FTP | other *** search
- class SortAlgorithm {
- private SortItem parent;
- protected boolean stopRequested = false;
-
- public void setParent(SortItem var1) {
- this.parent = var1;
- }
-
- protected void pause() throws Exception {
- if (this.stopRequested) {
- throw new Exception("Sort Algorithm");
- } else {
- this.parent.pause(this.parent.h1, this.parent.h2);
- }
- }
-
- protected void pause(int var1) throws Exception {
- if (this.stopRequested) {
- throw new Exception("Sort Algorithm");
- } else {
- this.parent.pause(var1, this.parent.h2);
- }
- }
-
- protected void pause(int var1, int var2) throws Exception {
- if (this.stopRequested) {
- throw new Exception("Sort Algorithm");
- } else {
- this.parent.pause(var1, var2);
- }
- }
-
- public void stop() {
- this.stopRequested = true;
- }
-
- public void init() {
- this.stopRequested = false;
- }
-
- void sort(int[] var1) throws Exception {
- }
- }
-