// (c) MIT 2003.  All rights reserved.

// $Id: TargetRecognizer.java,v 1.5 2003/03/06 00:40:47 moltmans Exp $
// Time-stamp: <2000-03-11 18:54:45 moltmans>
package rec.core.recognizers;



///////////////////////////////////////////////////////////////////////////////
//
// FILE:	TargetRecognizer.java
//
// AUTHOR:	Manoj D. Muzumdar
//		archon@ai.mit.edu
//
// DATE:	October, 1998
//
// COPYRIGHT:	Massachusetts Institute of Technology
//		All rights reserved.
//
// PURPOSE:	Drawing recognition
//
// HISTORY:     October, 1998
//              MDM
//              adapted from ModifyModeRecognizer
//
///////////////////////////////////////////////////////////////////////////////


import rec.sys.*;
import rec.util.*;

public abstract class TargetRecognizer extends Recognizer
  implements EditModeRecognizer
{
  private Widget m_TargetWidget;

//    public TargetRecognizer( Object arg ) 
//    {
//      Assert.error( "Don't use this constructor anymore" );
//    }
  
  public TargetRecognizer()
  {
    m_TargetWidget = null;
  }

  /////////////////////////////////////////////////////////////////////////////

  public void setModeArg( Object arg )
  {
    m_TargetWidget = (Widget)arg;
  }
  
  public Widget getTarget()
  {
    return( m_TargetWidget );
  }
}

