Re: Multiple models, serially or concurrently

2008-07-26 Thread Edward A. Lee
At 10:50 AM 7/25/2008, Paul Allen wrote: >I found this answer helpful. I have one follow-up question: You said that you >use MoMLParser.parse(String) to open multiple instances. Does using teh >MoMLParser.parse(URL) version of that method NOT open multiple instances? No... In almost any applica

Re: Multiple models, serially or concurrently

2008-07-25 Thread Paul Allen
I found this answer helpful. I have one follow-up question: You said that you use MoMLParser.parse(String) to open multiple instances. Does using teh MoMLParser.parse(URL) version of that method NOT open multiple instances? Brian Hudson wrote: Do I remember correctly that Ptolemy does no

Re: Multiple models, serially or concurrently

2008-07-25 Thread Brian Hudson
Correct. If you look at the Javadoc for MoMLParser.parse(URL, URL) it states: *"If the input URL has already been parsed, then return the model that previously parsed."* Using the MoMLParser.parse(String) method this doesn't happen. MoMLParser.parser(String) just ends up calling MoMLParser.parse(

Re: Multiple models, serially or concurrently

2008-07-25 Thread Christopher Brooks
Hi Richard, Ptolemy II does support multithreaded execution. See for example $PTII/ptolemy/domains/de/demo/RealTimeComposite/RealTimeComposite.xml Ptolemy has threaded domains such as Kahn Process Networks (PN) where each actor executes in a Java Thread. It should be possible to run multiple mo

Re: Multiple models, serially or concurrently

2008-07-25 Thread Brian Hudson
> > Do I remember correctly that Ptolemy does not in any way support > Java concurrency or multi-threading? > This depends on your domain really. PN for example uses quite a bit of threading. If so, then I would assume that one couldn't safely run 2 models in one JVM, > even if each had its own i

Multiple models, serially or concurrently

2008-07-25 Thread Richard Ware
1) Do I remember correctly that Ptolemy does not in any way support Java concurrency or multi-threading? If so, then I would assume that one couldn't safely run 2 models in one JVM, even if each had its own instances of TypedCompositeActor, Manager, Director, etc. If one wanted concurrency, one