|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.kernel.util.AbstractSettableAttribute
ptolemy.data.expr.Variable
ptolemy.data.expr.Parameter
ptolemy.domains.ptera.lib.TableauParameter
public class TableauParameter
A parameter to encapsulate a tableau. The tableau can be used by different events for user interaction.
Report
,
SetTableau
,
Serialized Form
Red (tfeng) |
Yellow (tfeng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.data.expr.Variable |
---|
Variable.VariableScope |
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Nested classes/interfaces inherited from interface ptolemy.kernel.util.Settable |
---|
Settable.Visibility |
Field Summary |
---|
Fields inherited from class ptolemy.data.expr.Variable |
---|
_currentExpression, _needsEvaluation, _parserScope, _parseTreeValid, _valueListeners |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.kernel.util.Settable |
---|
EXPERT, FULL, NONE, NOT_EDITABLE |
Constructor Summary | |
---|---|
TableauParameter(NamedObj container,
java.lang.String name)
Construct a parameter with the given name contained by the specified entity. |
Method Summary | |
---|---|
void |
addInitializable(Initializable initializable)
Not implemented. |
java.lang.Object |
clone(Workspace workspace)
Clone the variable. |
java.lang.String |
getExpression()
Return an empty string because a tableau cannot be specified with an expression. |
void |
initialize()
Initialize the tableau with null and close any existing tableau. |
void |
preinitialize()
Do nothing. |
void |
removeInitializable(Initializable initializable)
Not implemented. |
void |
setContainer(NamedObj container)
Specify the container, and add this variable to the list of attributes in the container. |
void |
setExpression(java.lang.String expression)
Do nothing because a tableau cannot be specified with an exception. |
void |
wrapup()
Do nothing. |
Methods inherited from class ptolemy.data.expr.Parameter |
---|
addChoice, exportMoML, getChoices, removeAllChoices, removeChoice |
Methods inherited from class ptolemy.kernel.util.AbstractSettableAttribute |
---|
getDefaultExpression |
Methods inherited from class ptolemy.kernel.util.Attribute |
---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, updateContent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.kernel.util.Settable |
---|
getDisplayName |
Methods inherited from interface ptolemy.kernel.util.Nameable |
---|
description, getContainer, getFullName, getName, getName |
Constructor Detail |
---|
public TableauParameter(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the parameter.
IllegalActionException
- If the parameter is not of an
acceptable class for the container.
NameDuplicationException
- If the name coincides with
a parameter already in the container.Method Detail |
---|
public void addInitializable(Initializable initializable)
addInitializable
in interface Initializable
initializable
- The initializable.Initializable.removeInitializable(Initializable)
public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class Variable
workspace
- The workspace in which to place the cloned variable.
java.lang.CloneNotSupportedException
- Not thrown in this base class.Object.clone()
public java.lang.String getExpression()
getExpression
in interface Settable
getExpression
in class Variable
setExpression(String)
public void initialize() throws IllegalActionException
initialize
in interface Initializable
IllegalActionException
- If the existing tableau cannot be
retrieved.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
IllegalActionException
- Not thrown in this class.public void removeInitializable(Initializable initializable)
removeInitializable
in interface Initializable
initializable
- The initializable.Initializable.addInitializable(Initializable)
public void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
If this method results in a change of container (which it usually does), then remove this variable from the scope of any scope dependent of this variable.
This method is write-synchronized on the workspace and increments its version number.
setContainer
in class Variable
container
- The proposed container of this variable.
IllegalActionException
- If the container will not accept
a variable as its attribute, or this variable and the container
are not in the same workspace, or the proposed container would
result in recursive containment.
NameDuplicationException
- If the container already has
an attribute with the name of this variable.Attribute.getContainer()
public void setExpression(java.lang.String expression)
setExpression
in interface Settable
setExpression
in class Variable
expression
- The expression.getExpression()
public void wrapup() throws IllegalActionException
wrapup
in interface Initializable
IllegalActionException
- Not thrown in this class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |