Examples of Nameable


Examples of ptolemy.kernel.util.Nameable

        LinkedList componentList = director.findTransitions(this);
        Iterator components = componentList.iterator();

        while (components.hasNext()) {
            Nameable componentActor = (Nameable) components.next();

            if (componentActor instanceof TypedCompositeActor) {
                TypedCompositeActor transitionComponent = (TypedCompositeActor) componentActor;

                if (director.isTransitionReady(transitionComponent)) {
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

    public boolean prefire() throws IllegalActionException {
        if (_debugging) {
            _debug("HybridModalDirector: Called prefire().");
        }
        _resetAllReceivers();
        Nameable container = getContainer();
        if (container instanceof Actor) {
            Director executiveDirector = ((Actor) container)
                    .getExecutiveDirector();
            if (executiveDirector != null) {
                Time outTime = executiveDirector.getModelTime();
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

            ComponentRelation relation = (ComponentRelation) relations.next();
            Iterator linkedObjects = relation.linkedObjectsList().iterator();
            while (linkedObjects.hasNext()) {
                Object linkedObject = linkedObjects.next();

                Nameable relationContainer = relation.getContainer();
                if (linkedObject instanceof Relation) {

                    Relation linkedRelation = (Relation) linkedObject;
                    Nameable linkedObjectContainer = linkedRelation
                            .getContainer();
                    if (relationContainer != linkedObjectContainer
                            && linkedObjectContainer.getContainer() != relationContainer) {
                        relation.unlink(linkedRelation);
                    }
                } else {
                    // Must be a port.
                    Port linkedPort = (Port) linkedObject;
                    Nameable linkedObjectContainer = linkedPort.getContainer();
                    if (relationContainer != linkedObjectContainer
                            && linkedObjectContainer.getContainer() != relationContainer) {
                        linkedPort.unlink(relation);
                    }
                }
            }
        }
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

                return null;
            }

            _refinement = new TypedActor[size];

            Nameable container = getContainer();
            TypedCompositeActor containerContainer = (TypedCompositeActor) container
                    .getContainer();
            int index = 0;

            while (tokenizer.hasMoreTokens()) {
                String name = tokenizer.nextToken().trim();
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

    private DirectedAcyclicGraph _constructDirectedGraph()
            throws IllegalActionException {
        // Clear the graph
        DirectedAcyclicGraph portsGraph = new DirectedAcyclicGraph();

        Nameable container = getContainer();

        // If the container is not composite actor, there are no actors.
        if (!(container instanceof CompositeActor)) {
            return portsGraph;
        }
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

     @exception IllegalActionException If thrown by the executive director.
     */
    public void fireAt(Actor actor, Time time) throws IllegalActionException {
        // Note that the actor parameter is ignored, because it does not
        // matter which actor requests firing.
        Nameable container = getContainer();
        if (container instanceof Actor) {
            Actor modalModel = (Actor) container;
            Director executiveDirector = modalModel.getExecutiveDirector();
            if (executiveDirector != null) {
                executiveDirector.fireAt(modalModel, time);
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

            if (name == null) {
                throw new IllegalActionException(this, "No name for mode "
                        + "controller is set.");
            }

            Nameable container = getContainer();

            if (!(container instanceof CompositeActor)) {
                throw new IllegalActionException(this, "No controller found.");
            }
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

                    for (int i = 0; i < allReceivers.length; ++i) {
                        resultsList.clear();

                        for (int j = 0; j < allReceivers[i].length; ++j) {
                            Receiver receiver = allReceivers[i][j];
                            Nameable cont = receiver.getContainer()
                                    .getContainer();

                            if (cont == controller) {
                                resultsList.add(receiver);
                            } else {
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

        }

        _insideChannel = null;

        String channelName = insideChannel.stringValue();
        Nameable container = getContainer();

        if (container instanceof CompositeEntity) {
            ComponentEntity entity = ((CompositeEntity) container)
                    .getEntity(channelName);
View Full Code Here

Examples of ptolemy.kernel.util.Nameable

        }

        _outsideChannel = null;

        String channelName = outsideChannel.stringValue();
        Nameable container = getContainer();

        if (container != null) {
            Nameable containersContainer = container.getContainer();

            if (containersContainer instanceof CompositeEntity) {
                ComponentEntity channel = ((CompositeEntity) containersContainer)
                        .getEntity(channelName);
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.