I have a class "task", which has a method called "evaluate()". When this method is called and there is a state change, this Task will notify other Tasks. (The other tasks would in turn evaluate and notify some other tasks if evaluation return true).
my preliminary idea is to use thread's notification methods. But is there any other easier or more neat way to accomplish this?