Examples of deepEntityList()


Examples of ptolemy.actor.CompositeActor.deepEntityList()

        CompositeActor castContainer = container;

        // First, include all actors as nodes in the graph.
        // get all the contained actors.
        List entities = castContainer.deepEntityList();
        Iterator actors = entities.iterator();
        int actorCount = entities.size();

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

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        while (actors.hasNext()) {
            Actor actor = (Actor) actors.next();
            dag.addNodeWeight(actor);
        }

        actors = castContainer.deepEntityList().iterator();

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

            // Find the successors of the actor
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

    public void copyAttributesOtherThanVariable(NamedObj object) {
        if (object instanceof CompositeActor) {
            CompositeActor model = (CompositeActor) object;

            // Loop over all the model instance classes.
            for (Iterator entities = model.deepEntityList().iterator(); entities
                    .hasNext();) {
                ComponentEntity entity = (ComponentEntity) entities.next();

                // recurse.
                copyAttributesOtherThanVariable(entity);
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        if (compositeActor == null) {
            throw new NotSchedulableException(this, "SRRandomizedScheduler "
                    + "cannot schedule graph with no container.");
        }

        List actorList = compositeActor.deepEntityList();

        Collections.shuffle(actorList);

        Schedule schedule = new Schedule();
        Iterator actorIterator = actorList.iterator();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

     @exception IllegalActionException If thrown will getting the depth
     *  of the IO ports or while updating the depth of the the actors.
     */
    protected void _computeActorDepth() throws IllegalActionException {
        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()

     @return The list of input ports.
     */
    private List _getInputPortList() {
        CompositeActor container = (CompositeActor) getContainer()
                .getContainer();
        List actors = container.deepEntityList();
        Iterator actorIterator = actors.iterator();
        List inputPortList = new LinkedList();

        while (actorIterator.hasNext()) {
            Actor containedActor = (Actor) actorIterator.next();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

     @return The list of output ports.
     */
    private List _getOutputPortList() {
        CompositeActor container = (CompositeActor) getContainer()
                .getContainer();
        List actors = container.deepEntityList();
        Iterator actorIterator2 = actors.iterator();
        List outputPortList = new LinkedList();

        while (actorIterator2.hasNext()) {
            Actor containedActor = (Actor) actorIterator2.next();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        }

        CompositeActor container = (CompositeActor) director.getContainer();

        // A linked list containing all the actors.
        List allActorList = container.deepEntityList();

        // externalRates maps from external
        // ports to the number of tokens that that port
        // will produce or consume in each firing.
        // It gets populated with the fractional production ratios
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        int dimensions = rangeValue.length();
        double[] randomLocation = new double[dimensions];

        CompositeActor container = (CompositeActor) getContainer();
        StringBuffer changeMoML = new StringBuffer("<group>\n");
        Iterator actors = container.deepEntityList().iterator();

        while (actors.hasNext()) {
            Entity node = (Entity) actors.next();

            // Skip actors that are not properly marked.
View Full Code Here

Examples of ptolemy.actor.CompositeActor.deepEntityList()

        // A linked list containing all the actors.
        LinkedList allActorList = new LinkedList();

        // Populate it.
        for (Iterator entities = container.deepEntityList().iterator(); entities
                .hasNext();) {
            ComponentEntity entity = (ComponentEntity) entities.next();

            // Fill allActorList with the list of things that we can schedule
            if (entity instanceof Actor) {
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.