When using timer transitions the only way that my machine works, is as follows:
| Code: : |
user = new ExternalPort( "testControlPort" );
machine = new SimpleMachine( user );
user.input( "Message 1" );
user.input( "Message 2" );
machine.run();
|
BUT both (non-blocking and blocking) models down below doesn't work and program terminates without the timer transition to be fired!
Blocking:
| Code: : |
MachineThread t = new MachineThread( machine );
t.start(); // setting this thread to be daemon also didn't work
user.input( "Message 1" );
user.input( "Message 2" );
|
Non-blocking:
| Code: : |
machine.run( user, "Message 1" );
machine.run( user, "Message 2" );
|
What happens to timers? How can I make delay transitions to work for the last two runtime models?