parameters into Ptolemy via MoMLSimpleApplication?

parameters into Ptolemy via MoMLSimpleApplication?

Post by beska_milt » Wed, 11 Aug 2004 01:00:40


Looking in the FAQ ( http://www.yqcomputer.com/ ) on
how to execute Ptolemy, one of the ways is via:

java -classpath $PTII ptolemy.actor.gui.MoMLSimpleApplication foo.xml

This is the way we're using, since we want to be able to run the application
without connecting to a display. However, we need to be able to pass
parameters into the application, and the FAQ continues by saying how to pass
in parameters using the other methods, "that MoMLSimpleApplication does not
do this type of command line parsing."

Is there a straightforward way to pass parameters in to
MoMLSimpleApplication?

Mose Wingert

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://www.yqcomputer.com/


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
 
 
 

parameters into Ptolemy via MoMLSimpleApplication?

Post by cxh » Wed, 11 Aug 2004 02:06:48

Did you see my response from July 22?
http://www.yqcomputer.com/ %40maury.eecs.berkeley.edu&output=gplain
says:


-Christopher
--------

Looking in the FAQ ( http://www.yqcomputer.com/ ) o
n
how to execute Ptolemy, one of the ways is via:

java -classpath $PTII ptolemy.actor.gui.MoMLSimpleApplication foo.xml

This is the way we're using, since we want to be able to run the applicatio
n
without connecting to a display. However, we need to be able to pass
parameters into the application, and the FAQ continues by saying how to pas
s
in parameters using the other methods, "that MoMLSimpleApplication does not

do this type of command line parsing."

Is there a straightforward way to pass parameters in to
MoMLSimpleApplication?

Mose Wingert

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://www.yqcomputer.com/


---------------------------------------------------------------------------
-
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM

 
 
 

parameters into Ptolemy via MoMLSimpleApplication?

Post by beska_milt » Wed, 11 Aug 2004 02:49:57

>Did you see my response from July 22?

I did, I just wasn't sure if that was the only way...since you had quite a
list of various methods for sending parameters, and mentioned that one in
passing as being a bit of a kludge, I thought you might have a better way to
do this more specific request.

I'll work with the the "hacky" method, and see if I can't get that to work.

Thanks for the quick response.

Mose Wingert

_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and
more! http://www.yqcomputer.com/


----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM
 
 
 

parameters into Ptolemy via MoMLSimpleApplication?

Post by cxh » Wed, 11 Aug 2004 03:10:25

Cool that you saw my original response, I was concerned that it
had been eaten by the mailing list and only made it to the newsgroup.

I guess if I was doing lots of parameter passing, I would extend
MoMLSimpleApplication and add the _parseArgs() functionality
found in MoMLApplication that does parameter processing.

If I remember correctly, MoMLApplication calls
UIManager.setLookAndFeel, which is what actually invokes the graphical
subsystem. Using the Headless feature of Java might help.

http://www.yqcomputer.com/ #headless
says
"To run our environment with a headless implementation, the follow
property may be specified at the java command line:

-Djava.awt.headless=true"

The following seems to run ok without X11 running for me under
Solaris:
cd $PTII
$PTII/bin/ptinvoke -Djava.awt.headless=true ptolemy.actor.gui.MoMLApplication ptolemy/domains/sdf/demo/Butterfly/Butterfly.xml

-Christopher



--------

>Did you see my response from July 22?

I did, I just wasn't sure if that was the only way...since you had quite a
list of various methods for sending parameters, and mentioned that one in
passing as being a bit of a kludge, I thought you might have a better way t
o
do this more specific request.

I'll work with the the "hacky" method, and see if I can't get that to work.

Thanks for the quick response.

Mose Wingert

_________________________________________________________________
Check out Election 2004 for up-to-date election news, plus voter tools and
more! http://www.yqcomputer.com/
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: XXXX@XXXXX.COM