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