[kepler-dev] [Bug 2896] New: - StringConstant actor will not accept strings with '$'

Edward A. Lee eal at eecs.berkeley.edu
Tue Jul 24 06:33:19 PDT 2007


I think you can enter $$ for $.

Note that I think it's a mistake to circumvent the expression
language mechanism of string evaluations. If you want an actor
that supports filenames, it's much better to use a FileParameter
to specify the file name. This way, when you edit parameters, you
get the option to browse the file system. It also has good support
for specifying filenames relative to the classpath and the
root of the PTII tree.

Edward

At 03:13 PM 7/23/2007, bugzilla-daemon at ecoinformatics.org wrote:
>http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2896
>
>           Summary: StringConstant actor will not accept strings with '$'
>           Product: Kepler
>           Version: 1.0.0beta3
>          Platform: Other
>        OS/Version: All
>            Status: NEW
>          Severity: normal
>          Priority: P2
>         Component: actors
>        AssignedTo: higgins at nceas.ucsb.edu
>        ReportedBy: higgins at nceas.ucsb.edu
>         QAContact: kepler-dev at ecoinformatics.org
>
>
>Try entering a string like 'foo$bar' in the StringConstant actor. It will give
>an error trying to evaluate 'bar' as a parameter. It looks like it is
>evaluating the string using Ptolemy's expression language.
>
>I think this is because Kepler's StringActor is NOT the same as the Ptolemy
>StringActor. It has been modified to allow the string to be set to a filename
>and I think this causes an evaluation of the string. This may be useful for
>setting filenames, but it causes problems with some strings.
>_______________________________________________
>Kepler-dev mailing list
>Kepler-dev at ecoinformatics.org
>http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev

------------ 
Edward A. Lee
Chair of EECS and Robert S. Pepper Distinguished Professor
231 Cory Hall, UC Berkeley, Berkeley, CA 94720-1770
phone: 510-642-0253, fax: 510-642-2845
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal  



More information about the Kepler-dev mailing list