Hi Kasparian,
>
>Suppose we are given two Behaviors b1 and b2.
>
>b1 calls postId( 100 ) during its processStimulus() method.
>
>Behavior b1 = new Behavior(){
> public void initialize(){
> //initialize code
> }
> public void processStimulus( Enumeration e ){
> //processStimulus code
> postId( 100 );
> }
>};
>
>b2's WakeupCondition is WakeupOnBehaviorPost( null, 100 )
>
>Behavior b2 = new Behavior(){
> WakeupCondition wakeup = new WakeupOnBehaviorPost( null, 100 );
> public void initialize(){
> //initialize code
> wakeupOn( wakeup );
> }
> public void processStimulus( Enumeration e ){
> //processStimulus code
> wakeupOn( wakeup );
> }
>};
>
>If b1.processStimulus() occurs during frame 1, will b2.processStimulus()
>occur in frame 2 ? or later ? Could b2.processStimulus() occur in the same
>frame as b1.processStimulus() ? Are there any guarantees ?
>
They can't occur in the same frame.
b2.processStimulus() should occur in frame 2 base on
current implementation. But can't guarantees if the
specification did not mention it.
- Kelvin
-------------
Java 3D Team
Sun Microsystems Inc.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".