> Hi,
>
[quoted text clipped - 8 lines]
> Thanks for helping me,
> André
The problem is that you can't create your own wakeup conditions! I hit
that one. What I did was create a subclass of Behaviour, which can post
wakeup events (postId(int) ) and then use WakeupOnBehaviorPost. My
control class invoked a method on the subclass, which then woke up the
behaviour I wanted.
The nice thing about this was that I could then use any conditions I
liked, which would call the controller and which then posted the
appropriate ID, eg
class Controller extends Behavior {
...
void requestPost(int postIdToSend){
postId(postIdToSend;
}
AFAIK, the WakeupOnAWTEvent works with any AWT event, though I haven't
tried it.
Tony