* @exception NameDuplicationException If the container already has
* an attribute with the name of this variable.
*/
public void setContainer(NamedObj container) throws IllegalActionException,
NameDuplicationException {
Nameable previousContainer = getContainer();
super.setContainer(container);
if (container != previousContainer) {
// Every variable that this may shadow in its new location
// must invalidate all their dependents.