[kepler-dev] Building Actors
jones at nceas.ucsb.edu
Fri Oct 26 08:43:00 PDT 2007
Thank you for your comments. We are aware of the issues you mention,
but I still appreciate getting your comments. We have specific plans to
separate the Kepler kernel/core from the actors, and to make it far
easier to develop and run actors by 3rd party users. We have recently
added a new feature that allows actors to include the jar files on which
they depend in their actor archive (kar file), and Kepler can now load
these actors dynamically at runtime. Therefore, if you can package your
actor as a KAR file (which is just a jar file with a Manifest that
contains the MoML and jar files), you should be able to use the 'Import
KAR' menu item to add it to your system. Alternatively, if your Java
code for your actor is on the classpath already (ie, via a modified
batch file), then you should be able to use your actor by calling the
'Instantiate Component' menu item and give it the fully qualified name
of the actor class. The former approach (via KAR) is preferred because
it loads the actor into the tree on the left.
The line-ending issue you are having is definitely weird. One of the
developers at NCEAS that uses Eclipse has been trying to reproduce your
issue, but alas without luck -- although he has run into several other
issues. The Kepler project supports the Ant build as the main build
system for the project -- I'd like to know if the ant build works for
you. We will continue to try to determine why the Eclipse build is
broken, but it would be helpful to know if ant works: "ant full-clean
ptolemy buildkarlib run-dev" should build everything from scratch.
Please continue sending comments -- they help us tremendously.
Kenneth Evans wrote:
> After working on it several hours again last night, I still can’t build
> Kepler. I’m not complaining. It is as good a way to learn the program
> as any, and I am confident it will be fixed.
> The problem is that I shouldn’t have to be building it. While
> contributing as a developer may be feasible at some time, I only learned
> about Kepler last week and I am presently not sufficiently knowledgeable
> to contribute. I would not like uniformed amateurs contributing to my
> projects, and I would not do that to others.
> All I want to do is implement an actor. I wrote one in about 15 min.
> (using the HelloWorld tutorial) two days ago. I still can’t run it.
> I am aware of a program, JAS3, that is developed at Stanford and is used
> by the high-energy physics community. (You can Google it.) This
> program has plug-ins, which are similar to actors in that they [may]
> consist of a relatively simple Java file. They have a tree view with
> the plug-in on the left, similar to what is in Kepler. However, in
> their GUI you can create, edit, and compile the Java program, and add it
> to the tree or modify it while in the tree. (You can also use it from
> the tree, of course.) This is actually not that hard to implement.
> Perhaps I’ve missed something, but it seems very inconvenient to create
> and debug actors in Kepler. If I were running an experiment using the
> Kepler workflow, I would like to be able to correct mistakes or change
> things deeper than the flow diagram on the fly during a run.
> (I realize it may not be wise to be critical when you are an uninformed
> amateur, but hopefully this will be taken in the right spirit. ;-)
> Kepler-dev mailing list
> Kepler-dev at ecoinformatics.org
Matthew B. Jones
Director of Informatics Research and Development
National Center for Ecological Analysis and Synthesis (NCEAS)
UC Santa Barbara
jones at nceas.ucsb.edu Ph: 1-907-523-1960
More information about the Kepler-dev