Package ptolemy.actor

Examples of ptolemy.actor.Actor.prefire()


        Iterator actors = schedule.get(CTSchedule.STATE_TRANSITION_ACTORS)
                .actorIterator();

        while (actors.hasNext()) {
            Actor next = (Actor) actors.next();
            if (!next.prefire()) {
                throw new IllegalActionException(
                        next,
                        "Expected prefire() to return true!\n"
                                + "Perhaps a continuous input is being driven by a "
                                + "discrete output?");
View Full Code Here


                if (_debugging) {
                    _debug("Process async pulled actor "
                            + ((Nameable) pulledActor).getName());
                }

                if (pulledActor.prefire()) {
                    if (_debugging) {
                        _debug("Async pulled actor ready to fire "
                                + ((Nameable) pulledActor).getName());
                    }
View Full Code Here

        if (_actorsToFire.size() > 0) {
            while (_actorsToFire.size() > 0) {
                Actor actor = (Actor) _actorsToFire.removeFirst();

                if (actor.prefire()) {
                    if (_debugging) {
                        _debug("Fire actor " + ((Nameable) actor).getName());
                    }

                    actor.fire();
View Full Code Here

            while (providers.hasNext()) {
                Actor provider = (Actor) providers.next();

                if (_isPullThrough(provider)) {
                    if (provider.prefire()) {
                        if (!_actorsToFire.contains(provider)) {
                            _actorsToFire.add(provider);
                        }
                    } else {
                        _requestSyncPull(provider);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.