Package ptolemy.actor

Examples of ptolemy.actor.Actor.prefire()


                _interruptQueue.take();

                Actor actor = interruptEvent.actor();

                if (actor != null) {
                    if (actor.prefire()) {
                        actor.fire();

                        if (!actor.postfire()) {
                            _disableActor(actor);
                        }
View Full Code Here


                // Check if there are any events with equal priority
                // for this actor. If so, make them available to the
                // actor at the same time.
                Actor actor = event.actor();

                if ((actor == getContainer()) || !actor.prefire()) {
                    // If the actor is the container of this director,
                    // then the event is at the output boundary.
                    // Remove the event and look at the next event.
                    _eventQueue.take();
                    event = null;
View Full Code Here

                _interruptQueue.take();

                Actor actor = interruptEvent.actor();

                if (actor != null) {
                    if (actor.prefire()) {
                        actor.fire();

                        if (!actor.postfire()) {
                            _disableActor(actor);
                        }
View Full Code Here

                // incrementing of time to that inside director.
                _insideDirector = insideDirector;
                _pseudoTimeEnabled = true;
            }

            boolean flag = actor.prefire();

            if (_debugging) {
                _debug(new FiringEvent(this, actor, FiringEvent.AFTER_PREFIRE,
                        1));
            }
View Full Code Here

                    }

                    _debug(new FiringEvent(this, actorToFire,
                            FiringEvent.BEFORE_PREFIRE));

                    if (!actorToFire.prefire()) {
                        _debug("*** Prefire returned false.");
                        break;
                    }

                    _debug(new FiringEvent(this, actorToFire,
View Full Code Here

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

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

                    actorToFire.fire();
View Full Code Here

                    _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

            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

            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

                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

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.