public class ContainmentExtender extends Attribute implements ContainmentExtender
NamedObj.getContainer()
. The getExtendedContainer()
method returns
the container of the object that contains the implementing attribute. The
returned container is supposed to be the object that visually contains the
object that owns the implementing attribute, as seen by the model designer. In
particular, for a modal model (either FSM or Ptera), even though a refinement is
visually contained by a state or an event, NamedObj.getContainer()
of
that refinement does not return the state or event because of a difference
between the visual representation and internal data representation. In that
case, getExtendedContainer()
of this class returns the state or event.NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ContainmentExtender(RefinementActor container,
java.lang.String name)
Construct a ContainmentExtender attribute with the given name contained
by the specified Refinement.
|
ContainmentExtender(State container,
java.lang.String name)
Construct a ContainmentExtender attribute with the given name contained
by the specified State.
|
Modifier and Type | Method and Description |
---|---|
NamedObj |
getContainedObject(java.lang.String name)
Get an object with the given name within the container.
|
NamedObj |
getExtendedContainer()
Get the extended container.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public ContainmentExtender(RefinementActor container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.NameDuplicationException
- If the name coincides with
an attribute already in the container.public ContainmentExtender(State container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.NameDuplicationException
- If the name coincides with
an attribute already in the container.public NamedObj getContainedObject(java.lang.String name) throws IllegalActionException
getContainedObject
in interface ContainmentExtender
name
- The name of the object.IllegalActionException
- If the refinement of the containing
state cannot be found, or if a comma-separated list is malformed.public NamedObj getExtendedContainer() throws IllegalActionException
getExtendedContainer
in interface ContainmentExtender
IllegalActionException
- If the specified refinement cannot be
found in a state, or if a comma-separated list is malformed.