Realtime Action Fixture


The MusicExample includes the fixture Realtime, an ActionFixture which shows how realtime control might be represented in three new actions:

  • pause -- uses a 'system call' to delay a specified number of seconds.

  • await -- uses a 'system call' to wait for a specified event.

  • fail -- simulates a failure in a device in order to check application error handling logic.

The example implementation adds a simulated 'system'. In our simulation the pause and wait system calls advance a simulated clock rather than waiting for real time to pass.

See the source.

 

Last edited April 21, 2003
Return to WelcomeVisitors