Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.Nameable


     *  This method simply defers to the manager, notifying it.  If there
     *  is no container, or the container is not an instance of
     *  CompositeActor, or if it has no manager, do nothing.
     */
    public void invalidateResolvedTypes() {
        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Manager manager = ((CompositeActor) container).getManager();

            if (manager != null) {
View Full Code Here


    public boolean prefire() throws IllegalActionException {
        if (_debugging) {
            _debug("Director: Called prefire().");
        }

        Nameable container = getContainer();

        if (container instanceof Actor) {
            Director executiveDirector = ((Actor) container)
                    .getExecutiveDirector();
View Full Code Here

        }
        // preinitialize protected variables.
        _currentTime = getModelStartTime();
        _stopRequested = false;
        // preinitialize all the contained actors.
        Nameable container = getContainer();
        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();
            while (actors.hasNext()) {
                Actor actor = (Actor) actors.next();
View Full Code Here

     *  to the manager. If there is no manager, or if the container
     *  is not an instance of CompositeActor, then do nothing.
     *  @param actor The actor to initialize.
     */
    public void requestInitialization(Actor actor) {
        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Manager manager = ((CompositeActor) container).getManager();

            if (manager != null) {
View Full Code Here

    public void setContainer(NamedObj container) throws IllegalActionException,
            NameDuplicationException {
        try {
            _workspace.getWriteAccess();

            Nameable oldContainer = getContainer();

            if (oldContainer instanceof CompositeActor
                    && (oldContainer != container)) {
                // Need to remove this director as the active one of the
                // old container. Search for another director contained
View Full Code Here

        // Set _stopRequested first before looping through actors below
        // so isStopRequested() more useful while we are still looping
        // below.  Kepler's EML2000DataSource needed this.
        _stopRequested = true;

        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();
View Full Code Here

     *  that the wrapup() method will be called next.
     *  If the container is not an instance of CompositeActor, then this
     *  method does nothing.
     */
    public void stopFire() {
        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();

View Full Code Here

     *  If the container is not an instance of CompositeActor, then
     *  this method does nothing.
     *  <p>
     */
    public void terminate() {
        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();

View Full Code Here

            for (Initializable initializable : _initializables) {
                initializable.wrapup();
            }
        }

        Nameable container = getContainer();

        if (container instanceof CompositeActor) {
            Iterator actors = ((CompositeActor) container).deepEntityList()
                    .iterator();
View Full Code Here

     *  the result of calling this method on that other effigy;
     *  otherwise, return this effigy.
     *  @return The top-level effigy that (deeply) contains this one.
     */
    public Effigy topEffigy() {
        Nameable container = getContainer();

        if (container instanceof Effigy) {
            return ((Effigy) container).topEffigy();
        } else {
            return this;
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.Nameable

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.