sub_arctic.lib
Interface cycle_handler

All Known Implementing Classes:
constraint_patterns

public abstract interface cycle_handler

Interface defining the API for custom cycle handlers. Objects of this type can be installed with the manager to get called when a cycle in the constraint system occurs.

See Also:
manager.handle_cycles_with(int, sub_arctic.lib.cycle_handler)

Method Summary
 boolean handle_cycle(interactor in_obj, int part_code)
          Do something in response to a cycle.
 

Method Detail

handle_cycle

public boolean handle_cycle(interactor in_obj,
                            int part_code)
Do something in response to a cycle. This should return true if evaluation should proceed normally, and false the existing attribute value (perhaps assigned by this routine) should be left in place, but marked up-to-date.
Parameters:
interactor - in_obj the object within which the cycle was first detected.
int - part_code the part of that object involved in the cycle.
Returns:
boolean indicating if normal evaluation should proceed.