Examples of entityList()


Examples of ptolemy.actor.CompositeActor.entityList()

         */
        public void fire() throws IllegalActionException {
            // Don't call "super.fire();" here, this actor contains its
            // own director.
            CompositeActor container = (CompositeActor) getContainer();
            Iterator actors = container.entityList().iterator();
            _postfireReturns = true;

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

View Full Code Here

Examples of ptolemy.actor.CompositeActor.entityList()

                }
            }
        }

        // Descend recursively into contained composites.
        Iterator entities = container.entityList(CompositeActor.class)
                .iterator();

        while (entities.hasNext()) {
            CompositeActor contained = (CompositeActor) entities.next();
            contained.preinitialize();
View Full Code Here

Examples of ptolemy.actor.TypedCompositeActor.entityList()

     @exception IllegalActionException If there is a problem in
     *   obtaining the number of initial token for delay actors
     */
    private void _debugViewActorTable() throws IllegalActionException {
        TypedCompositeActor container = (TypedCompositeActor) getContainer();
        List entityList = container.entityList();
        _debug("\nACTOR TABLE with " + entityList.size() + " unique actors");
        _debug("---------------------------------------");

        Iterator actors = entityList.iterator();

View Full Code Here

Examples of ptolemy.actor.gui.ModelDirectory.entityList()

                            // effigies open.  We check for that condition,
                            // and report the error here.  Otherwise, we
                            // pass the error to the caller.
                            ModelDirectory dir = (ModelDirectory) effigy
                                    .topEffigy().getContainer();
                            List effigies = dir.entityList(Effigy.class);

                            // We might get to here if we are running a
                            // vergil with a model specified as a command
                            // line argument and the model has an invalid
                            // parameter.
View Full Code Here

Examples of ptolemy.actor.gui.TextEffigy.entityList()

            textEffigy = TextEffigy.newTextEffigy(effigy,
                    ((StringAttribute) attribute).getExpression());
        }

        // textEffigy may already have a tableau.
        Iterator tableaux = textEffigy.entityList(TextEditorTableau.class)
                .iterator();

        if (tableaux.hasNext()) {
            return (TextEditorTableau) tableaux.next();
        }
View Full Code Here

Examples of ptolemy.domains.ct.kernel.CTCompositeActor.entityList()

        sub.connect(subinAction, hscInAct);

        //hscInPz.link(rSubPz);
        //hscInV.link(rSubOutV);
        //hscInR.link(rSubOutR);
        Iterator entities = sub.entityList().iterator();

        while (entities.hasNext()) {
            Entity ent = (Entity) entities.next();
            Port p = ent.getPort("inputPx");
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMActor.entityList()

        try {
            FSMActor controller = ((ModalModel) getContainer()).getController();

            if (_conservativeAnalysis) {
                // Conservative approximation
                Iterator states = controller.entityList(State.class).iterator();
                while (states.hasNext()) {
                    State state = (State) states.next();
                    Actor[] actors = state.getRefinement();
                    // If the modal model has no refinements, the modal model is
                    // basically an FSM actor. We use the function dependency of
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMActor.entityList()

            Local thisLocal = body.getThisLocal();

            // Set the initial state.
            String initialStateName = ((StringAttribute) entity
                    .getAttribute("initialStateName")).getExpression();
            int initialStateIndex = entity.entityList().indexOf(
                    entity.getEntity(initialStateName));
            units.add(Jimple.v().newAssignStmt(
                    Jimple.v().newInstanceFieldRef(thisLocal,
                            currentStateField.makeRef()),
                    IntConstant.v(initialStateIndex)));
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMActor.entityList()

                }
            }

            Map stateToStartStmt = new HashMap();
            List stateStmtList = new LinkedList();
            int numberOfStates = entity.entityList().size();

            // Figure out what state we are in.
            for (Iterator states = entity.entityList().iterator(); states
                    .hasNext();) {
                State state = (State) states.next();
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.FSMActor.entityList()

            Map stateToStartStmt = new HashMap();
            List stateStmtList = new LinkedList();
            int numberOfStates = entity.entityList().size();

            // Figure out what state we are in.
            for (Iterator states = entity.entityList().iterator(); states
                    .hasNext();) {
                State state = (State) states.next();
                Stmt startStmt = Jimple.v().newNopStmt();

                stateToStartStmt.put(state, startStmt);
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.