kernel package
supports clustered hierarchical graphs, which are collections of
entities and relations between those entities. Its
actor package extends the kernel so that entities have
functionality and can communicate via the relations. Its
domains extend the actor package by imposing models of
computation on the interaction between entities. Examples of
models of computation include discrete-event systems, dataflow,
process networks, synchronous/reactive systems, and communicating
sequential processes.
Ptolemy II includes a number of support packages, such as
data, providing a type system, data encapsulation and an
expression parser,
plot, providing visual display of data,
math, providing matrix and vector math and signal
processing functions, and
graph, providing graph-theoretic manipulations.
The three volumes of the Ptolemy II Design Document describes the Ptolemy II design and the implementation of the Java classes.
The "Using Vergil" describes how to use Vergil.
We developed Ptolemy II 8.1.devel under Mac OS X and Windows and with JDK1.6.0_22
Ptolemy II 5.0 will not compile under Java 1.3 because we use the java.lang.URI class, which is present only in Java 1.4 and later. JDK 1.5 or later is required so that these packages can use generics: backtrack, ptalon and others. JDK 1.6 is required because ptdb uses javax.swing.GroupLayout.
Ptolemy II has been compiled and run under IBM JDK 1.6.0. There are the following limitations under IBM JDK 1.6.0
Contents:
The MoMLParser includes a list of backward compatibility filters that make certain changes on models when read, handling such issues as actors being moved or renamed and parameter names being changed. The filters themselves are defined in ptolemy.moml.filter. If you have developed your own actors under earlier versions of Ptolemy II by writing your own Java files, you should recompile all your java code with the new release. In theory, copying the .class files should work, but recompiling is safer.
ptII8.1.devel.src.tar.gz)
requires GNU tar or WinZip. Solaris 2.5.1 tar will fail to
untar this file with a checksum error because the pathnames are longer
than 100 characters.
Note further that some of the .class names are longer than 31 characters, which may cause problems when downloading zip files on the Macintosh and using Stuffit.
#in_browser, then
Ptolemy II will invoke the User's web browser. Unfortunately, this
does not always work, especially under Windows if Netscape is already
running. The workaround is to exit Netscape and let Ptolemy II
start up Netscape for you.
vergil.jnlp file has spaces in it. The workaround is
to place your Ptolemy II tree in a directory that does not have spaces
in the path name if you plan on using Web Start.
com.microstar.htm.htmException: XML element "entity" triggers exception:
java.lang.Exception: Attempted to lookup 'Waveform', but got:
java.lang.ClassNotFoundException: Waveform
Attempted to find as a moml class, but got:
java.security.AccessControlException: access denied
(java.net.SocketPermission ptolemy.eecs.berkeley.edu resolve)
in file:/C:/Program Files/Ptolemy/Ptolemy II 3.0 beta2/
ptolemy/moml/demo/Networked/ at line 62 and column 118
at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:1341)
at com.microstar.htm.htmParser.parseElement(XmlParser.java:944)
at com.microstar.htm.htmParser.parseContent(XmlParser.java:1117)
at com.microstar.htm.htmParser.parseElement(XmlParser.java:946)
at com.microstar.htm.htmParser.parseDocument(XmlParser.java:495)
at com.microstar.htm.htmParser.doParse(XmlParser.java:175)
at com.microstar.htm.htmParser.parse(XmlParser.java:145)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:492)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:471)
at ptolemy.moml.MoMLParser.parse(MoMLParser.java:456)
at ptolemy.actor.gui.MoMLApplet._createModel(MoMLApplet.java:188)
The Network demo does not work as a local applet because the xml file
includes a reference to http://ptolemy.eecs.berkeley.edu, which is
not on the local file system, so we get a SecurityException.
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIlatest/ptII/ptolemy/moml/demo/Networked/Networked.htm
$PTII/ptolemy/actor/lib/BooleanSwitchIcon.xml
is an icon for
$PTII/ptolemy/actor/lib/BooleanSwitch.java
Didier Mauuary reports that under Windows 98, configure failed
to set up the MATLAB_DIR, PTCC
and PTDLLTOOL makefile variables, but after
he set them by hand:
MATLAB_DIR = /cygdrive/c/MATLABR11 PTCC = gcc PTDLLTOOL = dlltoolhe was able to get farther with the recompilation of the Matlab interface.
Embedding a PN typed composite actor inside a non-process top level such as DE does not work. In fact embedding a process domain inside a non-process domain is likely to have problems. Profess Lee wrote:
Yes, it looks as if the code is designed so that process domains (PN, CSP) can only be used within process domains. I'm not sure to what extent this is a limitation of the process domains vs. a semantic problem. What would PN mean within DE? Since PN has no well-defined notion of a "firing", how would you assign time stamps to the outputs of a PN actor? By default in DE, the time stamps of the outputs of an actor match those of the inputs that triggered the firing. There is no such notion in PN.
http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html
export JAVAFLAGS=-Dsun.java2d.print.pipeline=pdl vergilThen edit the file by hand in Illustrator to add the transparency back in.
For limitations discovered after the release, see the Ptolemy II 8.1.devel website
Last Updated: $Date: 2011-01-05 20:47:13 +0100 (Wed, 05 Jan 2011) $