Examples of preFire()


Examples of ptolemy.actor.Actor.prefire()

                        // list of disabled actors.
                        _disableActor(actorToFire);
                        break;
                    }

                    if (!actorToFire.prefire()) {
                        break;
                    }

                    actorToFire.fire();
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                    _debug("Prefire event generator: "
                            + ((Nameable) actor).getName() + " at time "
                            + getModelTime());
                }

                if (!actor.prefire()) {
                    _setExecutionPhase(CTExecutionPhase.UNKNOWN_PHASE);
                    throw new IllegalActionException(
                            actor,
                            "Actor is not ready to fire. In the CT domain, "
                                    + "all event generators should be ready to fire"
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

            if (_debugging && _verbose) {
                _debug("Prefire output actor: " + ((Nameable) actor).getName()
                        + " at time " + getModelTime());
            }

            if (!actor.prefire()) {
                throw new IllegalActionException(
                        actor,
                        "Actor is not ready to fire. In the CT domain, "
                                + "all continuous actors should be ready to fire "
                                + "at all times.\n"
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

            if (_debugging && _verbose) {
                _debug("Prefire actor: " + ((Nameable) actor).getName()
                        + " at time " + getModelTime());
            }

            if (actor.prefire()) {
                if (_debugging && _verbose) {
                    _debug("Fire actor: " + ((Nameable) actor).getName()
                            + " at time " + getModelTime());
                }
View Full Code Here

Examples of ptolemy.actor.Actor.prefire()

                if (_debugging && _verbose) {
                    _debug("Prefire dynamic actor: "
                            + ((Nameable) actor).getName());
                }

                boolean ready = actor.prefire();

                if (actor instanceof CTCompositeActor) {
                    ready = ready
                            && ((CTCompositeActor) actor)
                                    .prefireDynamicActors();
View Full Code Here

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

Examples of ptolemy.actor.Actor.prefire()

                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

Examples of ptolemy.actor.Actor.prefire()

        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

Examples of ptolemy.actor.Actor.prefire()

            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.