
StringAttribute |
ptolemy.kernel.util.StringAttribute |
An attribute that has a string value.
Use setExpression() to define the value, as in for example
attribute.setExpression("xxx");
The default value of the string contained by this attribute is the empty
string.
By default, an instance of this class is fully visible in
a user interface. The visibility is indicated to the user
interface when the user interface calls the getVisibility() method
of this class and the value Settable.FULL is returned to the userInterface.
Note that the string value within StringAttribute cannot reference
other StringAttributes or Parameters, so if an actor has a public
StringAttribute, then one cannot make the value of that attribute
dependent on a value higher in the hierarchy. Usually, actors have
public ptolemy.data.expr.Parameters instead of public StringAttributes
so that the value can reference other parameters. The primary reason
to use StringAttribute is if you want a string that will not be parsed
and you do not want to type a leading a trailing double quote.
Author(s): Edward A. Lee
Version:$Id: StringAttribute.java,v 1.56 2006/03/29 00:02:46 cxh Exp $
Pt.Proposed Rating:Green (eal)
Pt.Accepted Rating:Green (cxh)