/*
 *  bondFaultDetectionExecutable.java
 *    @contains a common runnable class for
 *       the classes that implements the fault detection.
 *       See README in this directory. 
 *
 *    @author Kyungkoo Jun
 *    Bond group, CS, Purdue Univ.
 *    created on Nov 15, 2000
 *
 */

package bond.agent.FaultDetection;

import bond.core.*;

public class bondFaultDetectionExecutable
extends bondExecutable
{

  Thread thread;
  bondFaultStatus fs;
  boolean finish = false;

  public bondFaultDetectionExecutable(bondFaultStatus fs) {
    this.fs = fs;
    thread = new Thread(this);
    thread.setDaemon(true);
  }

  public void setFinish(boolean b) {
    finish = b;
    thread.interrupt();
    dir.unregister(this);
  }

  public boolean stillGoing() {
    return thread.isAlive();
  }

  public void go() {
    thread.start();
  }

  public void run() {
  }

}
