Class IDAttribute

  • All Implemented Interfaces:
    java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable, Singleton

    public class IDAttribute
    extends SingletonAttribute
    This attribute identifies the containing model, showing its name, base class, last modified date, author, and contributors information. Of these, only the contributors information is editable. For the others, they are inferred from either the model itself or the operations on the model. Unfortunately, the changes will not be shown on the display until the model is saved, closed and re-opened.

    Since:
    Ptolemy II 4.1
    Version:
    $Id$
    Author:
    Edward A. Lee
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Yellow (eal)
    • Field Detail

      • contributors

        public StringAttribute contributors
        The contributors of the model.
      • created

        public StringAttribute created
        The date that this model was created.
      • baseClass

        public StringAttribute baseClass
        The base class of the containing class or entity.
      • isClass

        public StringAttribute isClass
        A boolean indicating whether the container is a class or an instance. This is a string that must have value "true" or "false".
      • lastUpdated

        public StringAttribute lastUpdated
        The date that this model was last updated.
      • name

        public StringAttribute name
        The name of the containing class or entity.
    • Constructor Detail

      • IDAttribute

        public IDAttribute​(Entity container,
                           java.lang.String name)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct an attribute with the given name contained by the specified container. The container argument must not be null, or a NullPointerException will be thrown. This attribute will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
        Parameters:
        container - The container.
        name - The name of this attribute.
        Throws:
        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.