The model is an standard SDF Model with a Distributed-SDF Director. Any non hierarchical SDF model can be simulated in a distributed manner unless the actors have external dependencies.
(Note that models that use actors that have GUI dependencies might generate errors!)
So try your own SDF models, you just change the standard SDF director by the Distributed-SDF Director.
By configuring the Distributed-SDF Director, we can choose to run the model either sequential or parallel (default). Make sure that the distributed platform is running before you start a distributed simulation. To do this we provide a script under:
$PTII/ptolemy/distributed/demo/Sleep/startplatform.bat
$PTII/ptolemy/distributed/demo/Sleep/startplatform
We provide 3 more scripts under $PTII/ptolemy/distributed/jini:
startjinilocal
and startjinilocal.bat
startserver
and startserver.bat
starttservers
and starservers.bat
startservers 5
launches 5 servers).
On the standard output for the model, you can check the execution time for the simulation. Try to run both a sequential an a parallel simulation and compare the times.
(Note that the more iterations and the bigger the sleep times, the more advantage you will get from using the distributed platform.)
For a more realistic demo, please run the individual servers on different machines.
(Note that if your network blocks broadcast packets you might need to configure unicast locators.)
Look at the documentation of the Distributed-SDF Director in particular and the classes and configuration files under ptolemy.distributed for further information.
You can also contact the author for further questions on kapokasa@kom.aau.dk.
"-Djava.security.policy=${workspace_loc:ptII/bin/policy.all}"
Last updated: $Id: Sleep.htm 70468 2014-11-02 17:58:07Z cxh $