Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.SingletonAttribute


        // Ensure that the library is marked as a library.
        Attribute marker = library.getAttribute("_libraryMarker");

        if (marker == null) {
            new SingletonAttribute(library, "_libraryMarker");
        }

        return (CompositeEntity) library;
    }
View Full Code Here


        if (_library != null) {
            Attribute marker = _library.getAttribute("_libraryMarker");

            if (marker == null) {
                try {
                    new SingletonAttribute(_library, "_libraryMarker");
                } catch (KernelException ex) {
                    throw new InternalErrorException(
                            "Can't add library marker: " + ex);
                }
            }
View Full Code Here

     @exception IllegalActionException If this object has
     *   no container.
     */
    public int moveToFirst() throws IllegalActionException {
        try {
            new SingletonAttribute(this, "_renderFirst");
            Attribute renderLast = getAttribute("_renderLast");

            if (renderLast != null) {
                renderLast.setContainer(null);
            }
View Full Code Here

     @exception IllegalActionException If this object has
     *   no container.
     */
    public int moveToLast() throws IllegalActionException {
        try {
            new SingletonAttribute(this, "_renderLast");
            Attribute renderFirst = getAttribute("_renderFirst");

            if (renderFirst != null) {
                renderFirst.setContainer(null);
            }
View Full Code Here

        scale.addChoice("relative amplitude decibels");
        scale.addChoice("relative power decibels");

        // Ports
        array = new TypedIOPort(this, "array", true, false);
        new SingletonAttribute(array, "_showName");

        output = new TypedIOPort(this, "output", false, true);

        // Set Type Constraints.
        array.setTypeEquals(new ArrayType(BaseType.DOUBLE));
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.SingletonAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.