You can download files from the above URLs and re-generate java code from EJS.
You can find out how it was done if you load EJS source into EJS, and you can either modify it with EJS to generate new code for your case or write your own code.

You might want to check out [url=]High way traffic simulation[/url]