Examples of fireAt()


Examples of ptolemy.actor.Director.fireAt()

                }

                // If there is one transition enabled, the HSFSMDirector requests
                // to be fired again at the same time to see whether the next
                // state has some outgoing transition enabled.
                executiveDirector.fireAt(container, getModelTime());
            }

            // If this iteration will not generate more events, (the
            // current phase of execution is neithter generating-event nor
            // iterating-purely-discrete-actors), or the executive director
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        _mutationVersion = -1;

        if (!_isTopLevel()) {
            TypedCompositeActor container = (TypedCompositeActor) getContainer();
            Director exe = container.getExecutiveDirector();
            exe.fireAt(container, getModelTime());
        }
    }

    /** If this is not a top-level director, request a refiring at the current
     *  model time. Otherwise, behave exactly as a CTMultiSolverDirector.
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

    private void _requestRefireAt(Time time) throws IllegalActionException {
        TypedCompositeActor container = (TypedCompositeActor) getContainer();
        Director outsideDirector = container.getExecutiveDirector();

        if (outsideDirector != null) {
            outsideDirector.fireAt(container, time);
        }
    }

    /** Most of the constructor initialization is relegated to this method.
     *  Initialization process includes :
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

                if (RealTimeComposite.this._debugging) {
                    RealTimeComposite.this
                            ._debug("---- Actor requests firing at time "
                                    + time + ": " + actor.getFullName());
                }
                director.fireAt(RealTimeComposite.this, time);
            }
            if (actor != RealTimeComposite.this) {
                // The fireAt() request is coming from the inside, so
                // when the firing occurs, we want to post an input
                // frame (even if there are no input events) for
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

                                    + ". Model time is "
                                    + environmentTime
                                    + ", and real time is "
                                    + time);
                }
                director.fireAt(RealTimeComposite.this, time);
            }
        }

        /** Return the current time of the enclosing actor if the delay
         *  is zero. Otherwise, get the local notion of current time.
View Full Code Here

Examples of ptolemy.actor.sched.FixedPointDirector.fireAt()

        _phase = 0;
        _readyToFire = true;

        // Schedule the first firing.
        _nextOutputTime = _cycleStartTime.add(_offsets[0]);
        director.fireAt(this, _nextOutputTime);
    }

    /** Update the state of the actor and schedule the next firing,
     *  if the director is in the discrete phase.
     *  @exception IllegalActionException If the director throws it when
View Full Code Here

Examples of ptolemy.actor.sched.FixedPointDirector.fireAt()

                    + " must be less than the " + "period, which is "
                    + periodValue);
        }

        _nextOutputTime = _cycleStartTime.add(_offsets[_phase]);
        director.fireAt(this, _nextOutputTime);
        return true;
    }

    /** Return true if this actor is scheduled to fire at the current time.
     *  @return True if this actor is scheduled to fire at the current time.
View Full Code Here

Examples of ptolemy.domains.ct.kernel.CTDirector.fireAt()

                    + " must be less than the " + "period, which is "
                    + periodValue);
        }

        _nextOutputTime = _cycleStartTime.add(_offsets[_phase]);
        director.fireAt(this, _nextOutputTime);
        return true;
    }

    ///////////////////////////////////////////////////////////////////
    ////                         private variables                 ////
View Full Code Here

Examples of ptolemy.domains.de.kernel.DEDirector.fireAt()

            // reset timer
            double delay = ((DoubleToken) set.get(0)).doubleValue();

            if (delay > 0.0) {
                _expireTime = now.add(delay);
                dir.fireAt(this, _expireTime);
            } else {
                // disable timer
                _expireTime = new Time(dir, -1.0);
            }
View Full Code Here

Examples of ptolemy.domains.de.kernel.DEDirector.fireAt()

        //System.out.println("DEChannel " + getFullName() +
        //        " initializing at time " + getCurrentTime());
        DEDirector dir = (DEDirector) getDirector();
        Time now = dir.getModelTime();
        dir.fireAt(this, now.add(((DoubleToken) maxDelay.getToken())
                .doubleValue()
                * Math.random()));
    }

    /** If this is the first fire, output the request
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.