Programmers Guide

JavaProp is written in Java. While it is intended primarily as an interactive tool is can sometimes be nice to run JavaProp automatically. Now JavaProp does not come with an embedded scripting language like JavaFoil, but its Java classes can also be used from outside.

All programming languages or applications which are able to load and call Java classes should be able to create JavaProp objects and call methods these objects.

Java calling ...

The most straightforward way is of course to use the Java language. If you have installed JavaProp using the Windows installer and look into the installation directory, you will find a directory named Embedding. Inside this directory you will find and example file JavaPropEmbedded.java and a directory docs which contains the documentation for the Propeller object and its methods. Following the comments in the example you should be able to create a JavaProp object and call methods inside this object to design or analyze propellers similar to the functionality provided by the GUI.

Matlab too ... and Octave

There are always some ingenious users out there who find new ways to exploit JavaProp. Ed Waugh of the University of Southampton sent me his Matlab files which make it possible to use JavaProp from Matlab. If you look again in the installation directory, you will find the directory with the name Octave-Matlab. Here you find some *.m example files as well as documentation in PDF format. The document Propeller-Object.pdf contains more details about the methods available.

Unfortunately I do not have Matlab at home, but I found a similar tool: Gnu Octave. Octave also talks the Matlab language and there is a only slightly different way to access Java classes. I have modified one of Ed's example files so that you can use them also with Octave.

Mathematica

Another popular environment is Mathematica from Wolfram Research. Again you find a simple example in the Mathematica directory to demonstrate the basic usage  of JavaProp inside Mathematica

... anyone else?

While all this comes without guarantee, I would be interested in hearing from you if you find bugs in these example files or have added some more interfaces to other programming systems. If they could be interesting for other users I could put them into the JavaProp distribution.

Last modification of this page: 16.02.08

[Back to Home Page] Suggestions? Corrections? Remarks? e-mail: Martin Hepperle.

Due to the increasing amount of SPAM mail, I have to change this e-Mail address regularly. You will always find the latest version in the footer of all my pages.

It might take some time until you receive an answer and in some cases you may even receive no answer at all. I apologize for this, but my spare time is limited. If you have not lost patience, you might want to send me a copy of your e-mail after a month or so.
This is a privately owned, non-profit page of purely educational purpose. Any statements may be incorrect and unsuitable for practical usage. I cannot take any responsibility for actions you perform based on data, assumptions, calculations etc. taken from this web page.

© 1996-2008 Martin Hepperle
You may use the data given in this document for your personal use. If you use this document for a publication, you have to cite the source. A publication of a recompilation of the given material is not allowed, if the resulting product is sold for more than the production costs.

This document may accidentally refer to trade names and trademarks, which are owned by national or international companies, but which are unknown by me. Their rights are fully recognized and these companies are kindly asked to inform me if they do not wish their names to be used at all or to be used in a different way.

This document is part of a frame set and can be found by navigating from the entry point at the Web site http://www.MH-AeroTools.de/.

Impressum und weitere rechtliche Hinweise für Deutschland