Class MappingEditor

    • Constructor Detail

      • MappingEditor

        public MappingEditor​(NamedObj container,
                             java.lang.String name)
                      throws IllegalActionException,
                             NameDuplicationException
        Constructs a mapping editor.
        Parameters:
        container - Container of the director.
        name - Name of this attribute.
        Throws:
        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.
    • Method Detail

      • getMappingFile

        public java.io.File getMappingFile()
                                    throws IllegalActionException
        Gets mapping file name.
        Returns:
        The name of the mapping file.
        Throws:
        IllegalActionException - If the director is not a MetroIIDirector.
      • saveMapping

        public void saveMapping​(java.lang.String content)
                         throws IllegalActionException
        Saves content to mapping file.
        Parameters:
        content - the content to save to the mapping file.
        Throws:
        IllegalActionException - a failed or interrupted I/O operations has occurred.