////////////////////////////////////////////////////////////////////////////////
//																			  //
// AUTHOR:      Tevfik Metin Sezgin	                        				  //
//				Massachusetts Institute of Technology						  //
//				Department of Electrical Engineering and Computer Science	  //
//				Artificial Intelligence Laboratory							  //
//																			  //
// E-MAIL:		mtsezgin@ai.mit.edu, mtsezgin@mit.edu						  //
//																			  //
// COPYRIGHT:   Tevfik Metin Sezgin                    						  //
//              All rights reserved. This code can not be copied, modified,   //
//              or distributed in whole or partially without the written 	  //
//				permission of the author. Also see the COPYRIGHT file.		  //
//																			  //
////////////////////////////////////////////////////////////////////////////////

/**
  *
  * See the end of the file for the log of changes.
  *
  * $Author: mtsezgin $
  * $Date: 2000/06/08 03:17:14 $
  * $Revision: 1.5 $
  * $Headers$
  * $Id: ParseSupervisor.java,v 1.5 2000/06/08 03:17:14 mtsezgin Exp $
  * $Name:  $
  * $Locker:  $
  * $Source: /mit/mtsezgin/CVS/Repository/REC/ParseSupervisor.java,v $
  *
  **/


/**
  *
  * This subclass of Thread automatically calls the parser.
  *
  **/

class   ParseSupervisor
extends Thread
{
    
    /**
    *
    * The spatial parser 
    *
    **/    
    private ObjectManager object_manager;
    
    /**
    *
    * The constructor.
    *
    **/    
    ParseSupervisor( ObjectManager object_manager )
    {
        this.object_manager = object_manager;
    }


    /**
    *
    * run
    *
    **/
    public void
    run()
    {
        while ( true ) {
            try {
                sleep( 200000l );
            } catch ( Exception e ) {
                System.out.println( "ParseSupervisor got interrupted exception" );
                e.printStackTrace();
            }
            System.out.println( "Supervisor calling parse..." );
            object_manager.parse();
        }
    }
}


/** 
  * 
  * $Log: ParseSupervisor.java,v $
  * Revision 1.5  2000/06/08 03:17:14  mtsezgin
  * *** empty log message ***
  *
  * Revision 1.13  2000/06/03 01:52:13  mtsezgin
  *
  **/
