[kepler-dev] Using PortParameter and ParameterPort

Jianting Zhang jzhang at lternet.edu
Fri Dec 9 10:12:33 PST 2005


Hi, 

 

I was trying to use PortParameter/ParameterPort to specify the data type and
initial value of a port representing a parameter of a command line module.
When I use 

"<property name="units" class="ptolemy.actor.parameters.PortParameter"
value="meters"/>",

 there is an error saying "The ID meters is undefined.". It is ok if I
change "meters" to a number like "10". 

 It seems that the value was getting parsed. Is there any way to use string
instead of numbers when combined with PortParameter? Just like 

"<property name="comments" class="ptolemy.data.expr.StringParameter"
value="... ">. 

 

Thanks 

 

Jianting

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-dev/attachments/20051209/ccf69861/attachment.htm


More information about the Kepler-dev mailing list