You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. package coordination;
  2. /**
  3. * Interface for pre-conditions that are passed to guardedEntry methods of
  4. * Coordinator.
  5. * Conditions should be passed as anonymous classes that simply implement
  6. * the checkit method.
  7. *
  8. */
  9. public interface Condition {
  10. /**
  11. * This method is called automatically by Coordinator.guardedEntry(...)
  12. * and it's called everytime the coordination state changes.
  13. */
  14. public boolean checkit();
  15. }