03.08.2013 Views

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

PTOLEMY II - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Custom Applets<br />

peruse the Ptolemy <strong>II</strong> tree (rooted at $PT<strong>II</strong>) and look for jar files. There are a few exceptions; for example,<br />

domain jar files, such as de.jar, do not include the demos, even though the demos are in a subpackage<br />

of the domain package.<br />

The longer story is that the make install rule in Ptolemy <strong>II</strong> makefiles builds various jar files<br />

that contain the Ptolemy <strong>II</strong> .class files. In general, make install builds a jar file in each directory that<br />

contains more than one .class file. If a directory contains subdirectories that in turn contain jar files,<br />

then the subdirectory jar files are expanded and included in the upper level jar file. For example, the<br />

$PT<strong>II</strong>/ptolemy/kernel/makefile contains:<br />

# Used to build jar files<br />

PTPACKAGE = ptolemy.kernel<br />

PTDIST = $(PTPACKAGE)$(PTVERSION)<br />

PTCLASSJAR =<br />

# Include the .class files from these jars in PTCLASSALLJAR<br />

PTCLASSALLJARS = \<br />

util/util.jar<br />

PTCLASSALLJAR = kernel.jar<br />

In this case make install will build a jar file called kernel.jar that contains all the .class files in<br />

the current directory and the contents of $PT<strong>II</strong>/ptolemy/kernel/util/util.jar.<br />

8.3.8 Hints for Developing Applets<br />

When developing applets, you may find it easier to test using appletviewer instead of invoking a<br />

full browser.<br />

Other hints may be found in $PT<strong>II</strong>/doc/coding/applets.htm<br />

244 Ptolemy <strong>II</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!