home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / LIB / CYCLE_HA.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.6 KB  |  45 lines

  1.  
  2. package sub_arctic.lib;
  3.  
  4. import sub_arctic.lib.interactor;
  5.  
  6. /** 
  7.  * Interface defining the API for custom cycle handlers.  Objects of this 
  8.  * type can be installed with the manager to get called when a cycle in the 
  9.  * constraint system occurs.
  10.  *
  11.  * @see sub_arctic.lib.manager#handle_cycles_with
  12.  * @author Scott Hudson
  13.  */
  14. public interface cycle_handler {
  15.   /** 
  16.    * Do something in response to a cycle.  This should return true if 
  17.    * evaluation should proceed normally, and false the existing attribute 
  18.    * value (perhaps assigned by this routine) should be left in place, but 
  19.    * marked up-to-date.
  20.    *
  21.    * @param interactor in_obj    the object within which the cycle was first 
  22.    *                             detected.
  23.    * @param int        part_code the part of that object involved in the cycle.
  24.    * @return boolean indicating if normal evaluation should proceed.
  25.    */
  26.   public boolean handle_cycle(interactor in_obj, int part_code);
  27. }
  28.  
  29. /*=========================== COPYRIGHT NOTICE ===========================
  30.  
  31. This file is part of the subArctic user interface toolkit.
  32.  
  33. Copyright (c) 1996 Scott Hudson and Ian Smith
  34. All rights reserved.
  35.  
  36. The subArctic system is freely available for most uses under the terms
  37. and conditions described in 
  38.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  39. and appearing in full in the lib/interactor.java source file.
  40.  
  41. The current release and additional information about this software can be 
  42. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  43.  
  44. ========================================================================*/
  45.