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

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

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

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