Re: Ptplot and multiple background colours

2006-02-15 Thread Edward A. Lee
You could have another data set that outlines the correct range... Edward Lee At 12:25 PM 2/15/2006, Ryan wrote: Hi all, I am trying to use ptplot to create a dynamically updating graph which displays the chest compression depth of a CPR doll in real time. One of the things I was hoping to do

Re: [kepler-dev] getting links from a compositeEntity

2006-02-15 Thread Edward A. Lee
Links are not objects in the Ptolemy II abstract syntax. Relations are objects... Relations contain a list of references to ports that they are linked to, and the ports contain a list of the relations that they are linked to. Edward At 02:25 PM 2/15/2006, Chad Berkley wrote: Hi, I'm trying t

Re: Actor attributeChanged() methods and validating mutliple changes.

2006-02-15 Thread Edward A. Lee
Why not set the parameter values as follows: This looks to me like a rather non-orthogonal design. Why not have: a1 = something a3 = 0 or 1 ortrue or false(depending on semantics) then calculate what you now call a2: a2 = 2*a1 + a3 Edward At 10:36 AM 2/15/2006, Kevin Ruland

Re: getting links from a compositeEntity

2006-02-15 Thread Michael J Wirthlin
I use the List CompositeEntity.relationList() method to obtain the relations within a CompositeEntity. Once I have a relation from this list, I iterate over the ports linked to the relation using the Relation.linkedPortList(). Chad Berkley wrote: Hi, I'm trying to find a programatic way t

Re: Ptplot and multiple background colours

2006-02-15 Thread Christopher Brooks
Hi Ryan, The easiest way would be to use two datasets, one for the correct data and one for the incorrect data. A more complex way would be to hack up ptolemy.plot.Plot so that it changes the background colors. This could get tricky, since you want it to zoom properly. Another way would be to s

getting links from a compositeEntity

2006-02-15 Thread Chad Berkley
Hi, I'm trying to find a programatic way to access the links that are contained in a composite. The only method I see that kind of does this is CompositeEntity.exportLinks() which just returns a string moml description of the links, but no objects. Is there a way to get an object representa

Ptplot and multiple background colours

2006-02-15 Thread Ryan
Hi all,I am trying to use ptplot to create a dynamically updating graph whichdisplays the chest compression depth of a CPR doll in real time. Oneof the things I was hoping to do was have a "correct range" ofcompression represented by a green background with the rest of thebackground being r

Actor attributeChanged() methods and validating mutliple changes.

2006-02-15 Thread Kevin Ruland
Hi all, We have a number of actors which require certain conditions to be satisfied by attributes as a collection. For sake of example, suppose we have two attributes a1, a2 which are integers. And the following conditions must hold: a1 = 1 <=> a2 = 1, 2 a1 = 2 <=> a2 = 3, 4 You get the i