[kepler-dev] Re: [Ptolemy] largest number of actors in a Ptolemy II model

Christopher Brooks cxh at eecs.berkeley.edu
Thu Aug 5 14:13:20 PDT 2004


Steve beat me to it, but here are my thoughts:

Well, to paraphrase Mark Twain, who attributed the quote to Disraeli:
"There are lies, damn lies and Ptolemy statistics"

As a quick hack, I counted the number of "<entity" strings in some
models.  This is not a perfect measure, but it is a start.

It looks like one of the models that we do not distribute has 711
entities.  The counts for that model and others are below:
 
 711 ./ptolemy/domains/wireless/demo/MACProtocolModel/MACProtocolModel.xml
 276 ./ptolemy/domains/gr/lib/experimental/demo/InverseKinematics/InverseKinematics.xml
 196 ./ptolemy/domains/gr/lib/experimental/demo/pickstates/pickstates.xml
 175 ./ptolemy/domains/gr/lib/experimental/IKsimple.xml
 148 ./ptolemy/domains/gr/lib/experimental/demo/RobotArm/RobotArm.xml
 135 ./ptolemy/domains/gr/lib/experimental/lynxArm.xml
 120 ./ptolemy/domains/gr/lib/experimental/demo/microwave/microwave.xml

We don't distribute the models above in the release, but the models
below are shipped:

 102 ./ptolemy/domains/gr/demo/StickyMasses/StickyMasses.xml
 100 ./ptolemy/domains/gr/demo/FurutaPendulum/FurutaPendulum.xml
  96 ./ptolemy/domains/hde/test/auto/SOC_Sobel_FSM_HDE.xml


ptolemy/apps has some largish models as well:
 571 ptolemy/apps/etherealSting/E2/classifierNchannels.xml
 570 ptolemy/apps/etherealSting/E2/classifierNchannelsWithOutput.xml
 565 ptolemy/apps/etherealSting/E2/classifierNchannelsNoPlots.xml
 348 ptolemy/apps/anytimecontrol/CompareControllers.xml
 236 ptolemy/apps/crazyboard/crazyboardModelLQRGiotto.xml
 229 ptolemy/apps/crazyboard/crazyboardModelDE4.xml
 228 ptolemy/apps/crazyboard/crazyboardModelModalLQR.xml
 224 ptolemy/apps/crazyboard/crazyboardModelLQRWithGraphicImage.xml
 223 ptolemy/apps/crazyboard/crazyboardModelLQRWithGraphics.xml
 221 ptolemy/apps/crazyboard/crazyboardModelLQR.xml

To get these numbers, I used
find . -xdev -name "*.xml" -exec ls -s {} \; > /tmp/f2
grep "<entity" `awk '{print $2}' /tmp/f2` | gawk -F : '{print $1}' > /tmp/entity2
uniq -c /tmp/entity2 | sort -nr | head

The number of actors could get a little strange when we consider
classes and such.  

I think it would be fairly straightforward to automatically construct
large trivial models that used lots of actors using 
Ramp -> Scale -> Scale ... ->Display
However, I'm not sure what such a model would prove, since it is an
artificial measurement.

I seem to remember that this paper:
Jozsef Ludvig, James McCarthy, Stephen Neuendorffer, and Sonia
R. Sachs, "Reprogrammable Platforms for High-speed Data Acquisition,"
Thirty-Fifth Asilomar Conference on Signals, Systems, and Computers,
Asilomar Hotel Conference Grounds, November 4-7, 2001.
http://ptolemy.eecs.berkeley.edu/publications/papers/01/Asilomar/
had some really big models.

I've seen models of around 2Mb in size, though this was before the
class mechanism was implemented, so the size would likely be smaller
now.


-Christopher

--------

    
    Hi:
    
    Can anyone give me an estimate about the largest model (#actors) in a
    Ptolemy II model that has been done? (maybe with reference)
    
    thanks!
    
    Bertram
    _______________________________________________
    Ptolemy maillist  -  Ptolemy at chess.eecs.berkeley.edu
    http://chess.eecs.berkeley.edu/ptolemy/listinfo/ptolemy
--------



More information about the Kepler-dev mailing list