Пример #1
0
 /** Pause for a while and mark item 1 & 2. */
 protected void pause(int H1, int H2) throws Exception {
   if (stopRequested) {
     throw new Exception("Sort Algorithm");
   }
   parent.pause(H1, H2);
 }
Пример #2
0
 /** Pause for a while. */
 protected void pause() throws Exception {
   if (stopRequested) {
     throw new Exception("Sort Algorithm");
   }
   parent.pause(parent.h1, parent.h2);
 }