Examples of deepEntityList()


Examples of ptolemy.actor.CompositeActor.deepEntityList()

    /** Call requestFinish() on all receivers.
     */
    private void _requestFinishOnReceivers() {
        CompositeActor container = (CompositeActor) getContainer();
        Iterator actors = container.deepEntityList().iterator();
        Iterator actorPorts;
        ProcessReceiver nextReceiver;

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        protected Schedule _getSchedule() throws IllegalActionException,
                NotSchedulableException {
            StaticSchedulingDirector director = (StaticSchedulingDirector) getContainer();
            CompositeActor compositeActor = (CompositeActor) (director
                    .getContainer());
            List actors = compositeActor.deepEntityList();
            Iterator actorIterator = actors.iterator();
            TreeSet sortedActors = new TreeSet(new LeftRightComparator());
            while (actorIterator.hasNext()) {
                Actor actor = (Actor) actorIterator.next();
                sortedActors.add(actor);
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

                    + _codeGenerator.comment(container.getName()
                            + "'s offset variables"));
            code.append(tempCode);
        }

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            StringBuffer tempCode2 = new StringBuffer();
            Actor actor = (Actor) actors.next();
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        ptolemy.domains.sdf.kernel.SDFDirector director = (ptolemy.domains.sdf.kernel.SDFDirector) getComponent();
        CompositeActor container = (CompositeActor) director.getContainer();
        ptolemy.codegen.c.actor.TypedCompositeActor containerHelper = (ptolemy.codegen.c.actor.TypedCompositeActor) _getHelper(container);

        Iterator actors = container.deepEntityList().iterator();
        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            CodeGeneratorHelper actorHelper = (CodeGeneratorHelper) _getHelper((NamedObj) actor);
            Iterator inputPorts = actor.inputPortList().iterator();
            while (inputPorts.hasNext()) {
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        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);
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

     */
    private void _buildReceiverTable() throws IllegalActionException {
        CompositeActor container = (CompositeActor) getContainer();

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

            while (allActors.hasNext()) {
                Actor actor = (Actor) allActors.next();

                // Get all input ports
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        super.initialize();

        // Iterate through all output ports to see if any have initialValue
        // parameters or init values from initialization.
        CompositeActor compositeActor = (CompositeActor) (getContainer());
        List actorList = compositeActor.deepEntityList();
        ListIterator actors = actorList.listIterator();

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            List outputPortList = actor.outputPortList();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

     */
    protected Schedule _getSchedule() throws NotSchedulableException {
        StaticSchedulingDirector director = (StaticSchedulingDirector) getContainer();
        CompositeActor compositeActor = (CompositeActor) (director
                .getContainer());
        List actorList = compositeActor.deepEntityList();
        int actorCount = actorList.size();

        if (actorCount < 1) {
            throw new NotSchedulableException(
                    this,
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

     *  The results are cached in a hashtable _actorToDepth.
     *  Update the depths of existing events in the event queue.
     */
    private void _computeActorDepth() {
        CompositeActor container = (CompositeActor) getContainer();
        LinkedList actors = (LinkedList) container.deepEntityList();
        // Add container.
        actors.add(container);
        int numberOfActors = actors.size();
        _actorToDepth = new Hashtable(numberOfActors);

View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        ptolemy.domains.hdf.kernel.HDFDirector director = (ptolemy.domains.hdf.kernel.HDFDirector) getComponent();
        CompositeActor container = (CompositeActor) director.getContainer();
        ptolemy.codegen.c.actor.TypedCompositeActor containerHelper = (ptolemy.codegen.c.actor.TypedCompositeActor) _getHelper(container);

        List actors = container.deepEntityList();
        int numberOfActors = actors.size();
        int numberOfConfigurationsOfContainer = _schedules.length;

        int[] actorConfigurations = new int[numberOfActors];
        for (int configurationNumber = 0; configurationNumber < numberOfConfigurationsOfContainer; configurationNumber++) {
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.