You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Writing the Drivers in Jython

The case for Jython

Let's consider the following case: You are an experienced org.lcsim user and have a range of Drivers that perform various tasks for you. You would like a summer student to help you with some coding, but the student has no programming experience whatsoever.
Rather than having to waste two weeks teaching the details of the Java language, you could create an Example in Jython, an object-oriented scripting language that can be learned in a few days.

The Jython wrapper

If you want to use Drivers written in Jython, you will have to use a little wrapper script. That should not be much of a hassle, since your program is likely split up into various Drivers already anyway. (If not, it probably should be). In this case, all you have to do is replace your current Java wrapper with the Jython version.
Please load mainLoop.py into Jas3

  • No labels