notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1920 - development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight
- From: tobias.wolf5 AT freenet.de
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1920 - development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight
- Date: Tue, 01 Mar 2005 13:11:07 +0100
Author: tobias.wolf5 AT freenet.de
Date: Tue Mar 1 13:11:06 2005
New Revision: 1920
Modified:
development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight/Timer.java
Log:
previously initial wait time was 0, so wait kept waiting for an notify wich
will never come. changed it to 100. now the demo executes after waiting 100
millis.
Modified:
development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight/Timer.java
==============================================================================
---
development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight/Timer.java
(original)
+++
development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight/Timer.java
Tue Mar 1 13:11:06 2005
@@ -117,17 +117,17 @@
m_run = true;
String command = "next";
m_stateMachine.reset( m_initial );
- m_nextWait = 0;
+ m_nextWait = 100;
m_stateMachine.addTransitionListener( this, null );
try
{
while( m_run )
{
synchronized( this )
- {
+ {
wait( m_nextWait );
- m_stateMachine.trigger( this, command );
- }
+ m_stateMachine.trigger( this, command );
+ }
}
}
catch( InterruptedException e )
- svn commit: r1920 - development/main/planet/components/fsm/demo/trafficlight/src/main/net/dpml/fsm/trafficlight, tobias . wolf5, 03/01/2005
Archive powered by MHonArc 2.6.24.