Re: [Ptolemy] Re: Transparent CompositeActor firings?

2004-06-16 Thread Stephen Andrew Neuendorffer
At 02:25 PM 6/16/2004, Christopher Hylands Brooks wrote: The following appeared in comp.soft-sys.ptolemy. If you respond, please cc [EMAIL PROTECTED] -Christopher --- Forwarded Message From: Mark Hodson [EMAIL PROTECTED] Subject: Transparent CompositeActor firings? Date: Tue, 15 Jun 2004

Re: [Ptolemy] [Info] needed regarding execution under SDF model

2004-06-03 Thread Stephen Andrew Neuendorffer
At 05:53 AM 6/3/2004, Philippe.Dumont wrote: Stephen Andrew Neuendorffer wrote: I'm a bit at a loss as to why it must execute N1 times? In seems to me like the N1 firings of HT1 and the N2 firings of HT2 could be hidden inside the actor, but without more information about where the desired

Re: NullPointerException in 4.0alpha initialize

2004-05-13 Thread Stephen Andrew Neuendorffer
Looks like receivers are not getting created for one of the actors, which shouldn't happen. It would be helpful to get the generated MoML file, along with any custom java actors you are using... Steve At 11:23 AM 5/13/2004, Zimdars, Andrew wrote: [I previously posted this to the newsgroup, but

Re: XML fragments as StringTokens/XMLTokens

2004-04-14 Thread Stephen Andrew Neuendorffer
Andrew, The expression language does not have any bindings for xml tokens, unfortunately It probably should have at least a function that takes a StringToken and returns an XMLToken. There are several possible immediate solutions: 1) In vergil, use the expression modifiers/ (with the

Re: removing and readding actors to a model

2003-11-24 Thread Stephen Andrew Neuendorffer
I think it makes more sense to use Java's classloader to do this (as Matt suggests) rather than hot-swap. With hot-swap, the classes are expected to be consistent with one another (as with a debugger, for instance) Since there is no way to ensure this, an exception will likely result. We've

Re: Adding a new type to BaseType

2003-11-05 Thread Stephen Andrew Neuendorffer
To speed up type comparisons, the TypeLattice keeps a cache of comparison information in a 2D array. The 2D array is preallocated in the TypeLattice class of size Type.HASH_MAX. You have to change that value when adding a new type. (or simply implement the getTypeHash method to return

Re: icon editor

2003-09-23 Thread Stephen Andrew Neuendorffer
It sounds like you have a proof that it doesn't work! :) In all seriousness, the Icon Editor was written quite a while ago and was never really useful enough to be used, even when it did run. I think a better long term solution is to integrate one of the many SVG-creating graphics tools into

Re: [Ptolemy] Re: The ID PI is undefined. in Ptolemy II 3.0-beta ...

2003-08-18 Thread Stephen Andrew Neuendorffer
Yes, this is a bug in the code generator that shipped with the beta. It is likely that the final release will include a fix that allows constants (like PI) to be dealt with correctly. Note that for other reasons, the Butterfly demo will not generate usable code. (Because the plotter uses parts

Re: Compiling custom source in ptolemy and SVG issues....

2003-06-13 Thread Stephen Andrew Neuendorffer
At 02:18 AM 6/13/2003 -0700, Hitanshu Gandhi wrote: Hi, In my Ptolemy simulation, I have several classes,refered in a XML file. On finding an error in a class, I recompile it. But Ptolemy refuses to notice the updated file. if I close my simulation window, and tell vergil to reopen my xml file,

Re: Passing non-expression strings to an Actor

2003-03-19 Thread Stephen Andrew Neuendorffer
Assuming you are writing your own actor, the easiest way to deal with this is to use a StringAttribute instead of a Parameter. This issue comes up in other contexts as well... for example, if you have a string with octal codes in it, the expression parser properly substitutes them into the

Re: Token as an abstract base class?

2003-03-13 Thread Stephen Andrew Neuendorffer
Originally, token was intended to be used as a token to represent a pure event i.e. one without a value. At the same time it was a base class for all the other token classes. We have since made an EventToken class to represent pure events. It remains public for some level of backward

Re: [Ptolemy] Re: Serving Multiple tokens

2003-02-23 Thread Stephen Andrew Neuendorffer
You're right... You need a queue to keep the incoming requests and an 'arbiter' to dispatch requests when servers become idle. I imagine it would be fairly easy to build an arbiter using an FSM model. When a server finishes processing, it sends an event to the arbiter saying it is available.

Re: Contour plotting?

2003-02-14 Thread Stephen Andrew Neuendorffer
It is probably easiest to rely on matlab for more complex plots: contour plots, surface plots, charts, etc... Fortunately, it is relatively easy to get data into matlab using the matlab interface in ptolemy... At various times we've pondered improving this situation, but it can be quite a bit

Re: Control of contained directors and complete simulations

2003-02-14 Thread Stephen Andrew Neuendorffer
As you mention, time in Ptolemy models is in some sense a global variable.. Timed domains are (by default) built so that at all levels of the model follow some basic consistency rules. However, this it not, strictly necessary. Some domains, such as CT 'fudge' time slightly by being very