public class MappingEditor extends Attribute
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
MappingEditor(NamedObj container,
java.lang.String name)
Constructs a mapping editor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
actorNames()
Returns actors names on all hierarchies.
|
java.io.File |
getMappingFile()
Gets mapping file name.
|
java.lang.String |
readMapping()
Reads mapping constraints.
|
void |
saveMapping(java.lang.String content)
Saves content to mapping file.
|
_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 MappingEditor(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Container of the director.name
- Name of this attribute.IllegalActionException
- If the director is not compatible with the specified
container. May be thrown in a derived class.NameDuplicationException
- If the container is not a CompositeActor and the name
collides with an entity in the container.public java.io.File getMappingFile() throws IllegalActionException
IllegalActionException
- If the director is not a MetroIIDirector.public java.lang.String readMapping() throws IllegalActionException
IllegalActionException
- If the mapping file cannot be read.public void saveMapping(java.lang.String content) throws IllegalActionException
content
- the content to save to the mapping file.IllegalActionException
- a failed or interrupted I/O operations has occurred.public java.lang.String actorNames() throws IllegalActionException
IllegalActionException