Package ptolemy.actor.util

Examples of ptolemy.actor.util.CalendarQueue$CQLinkedList


    /** In addition to the preinitialization implemented in the super
     *  class, create the interrupt event queue and the TM event queue.
     *  @exception IllegalActionException If thrown by the super class.
     */
    public void preinitialize() throws IllegalActionException {
        _eventQueue = new CalendarQueue(new TMEventComparator(), 16, 2);
        _interruptQueue = new DECQEventQueue(2, 2, true);

        _disabledActors = null;

        //_noMoreActorsToFire = false;
View Full Code Here


     */
    public void initialize() throws IllegalActionException {
        super.initialize();
        _currentInput = null;
        _currentOutput = null;
        _delayedOutputTokens = new CalendarQueue(
                new TimedEvent.TimeComparator());
    }
View Full Code Here

    /** Construct an empty event queue.
     */
    public DECQEventQueue() {
        // Construct a calendar queue _cQueue with its default parameters:
        // minBinCount is 2, binCountFactor is 2, and isAdaptive is true.
        _cQueue = new CalendarQueue(new DECQComparator());
    }
View Full Code Here

     @param isAdaptive If the queue changes its number of bins at run time.
     */
    public DECQEventQueue(int minBinCount, int binCountFactor,
            boolean isAdaptive) {
        // Construct a calendar queue _cQueue with the given parameters.
        _cQueue = new CalendarQueue(new DECQComparator(), minBinCount,
                binCountFactor);
        _cQueue.setAdaptive(isAdaptive);
    }
View Full Code Here

     */
    public void initialize() throws IllegalActionException {
        super.initialize();
        _currentInput = null;
        _currentOutput = null;
        _delayedOutputTokens = new CalendarQueue(
                new TimedEvent.TimeComparator());
    }
View Full Code Here

     *   cannot be cloned.
     *  @return The new TimedPNDirector.
     */
    public Object clone(Workspace workspace) throws CloneNotSupportedException {
        TimedPNDirector newObject = (TimedPNDirector) super.clone(workspace);
        newObject._eventQueue = new CalendarQueue(
                new TimedEvent.TimeComparator());
        newObject._delayBlockCount = 0;
        return newObject;
    }
View Full Code Here

TOP

Related Classes of ptolemy.actor.util.CalendarQueue$CQLinkedList

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.