Examples of SDFScheduler


Examples of ptolemy.domains.sdf.kernel.SDFScheduler

     *  director.  This method is called once at initialize();
     *
     *  @exception IllegalActionException If the scheduler is null
     */
    private void _buildActorTable() throws IllegalActionException {
        SDFScheduler currentScheduler = (SDFScheduler) getScheduler();

        CompositeActor container = (CompositeActor) getContainer();

        if (container != null) {
            Iterator allActors = container.deepEntityList().iterator();

            while (allActors.hasNext()) {
                Actor actor = (Actor) allActors.next();
                DTActor dtActor = (DTActor) _allActorsTable.get(actor);

                if (dtActor == null) {
                    _allActorsTable.put(actor, new DTActor(actor));
                    dtActor = (DTActor) _allActorsTable.get(actor);
                    _actorTable.add(dtActor);
                }

                dtActor._repeats = currentScheduler
                        .getFiringCount((Entity) dtActor._actor);
            }
        }

        // Include the container as an actor.  This is needed for
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.