home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 January / maximum-cd-1999-01.iso / Symantec Visual Cafe / WDESAMPL.BIN / SortAlgorithm.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-11-19  |  1.0 KB  |  44 lines

  1. class SortAlgorithm {
  2.    private SortItem parent;
  3.    protected boolean stopRequested = false;
  4.  
  5.    public void setParent(SortItem var1) {
  6.       this.parent = var1;
  7.    }
  8.  
  9.    protected void pause() throws Exception {
  10.       if (this.stopRequested) {
  11.          throw new Exception("Sort Algorithm");
  12.       } else {
  13.          this.parent.pause(this.parent.h1, this.parent.h2);
  14.       }
  15.    }
  16.  
  17.    protected void pause(int var1) throws Exception {
  18.       if (this.stopRequested) {
  19.          throw new Exception("Sort Algorithm");
  20.       } else {
  21.          this.parent.pause(var1, this.parent.h2);
  22.       }
  23.    }
  24.  
  25.    protected void pause(int var1, int var2) throws Exception {
  26.       if (this.stopRequested) {
  27.          throw new Exception("Sort Algorithm");
  28.       } else {
  29.          this.parent.pause(var1, var2);
  30.       }
  31.    }
  32.  
  33.    public void stop() {
  34.       this.stopRequested = true;
  35.    }
  36.  
  37.    public void init() {
  38.       this.stopRequested = false;
  39.    }
  40.  
  41.    void sort(int[] var1) throws Exception {
  42.    }
  43. }
  44.