Package ptolemy.kernel.util

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


     @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

            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

                    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

        }

        _insideChannel = null;

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

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

        }

        _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

            }

            Entity container = (Entity) getContainer();

            // Superclass assures that the container is not null.
            Nameable relationContainer = relation.getContainer();

            if ((container != relationContainer)
                    && (container.getContainer() != relationContainer)) {
                throw new IllegalActionException(this, relation,
                        "Link crosses levels of the hierarchy");
View Full Code Here

     */
    protected boolean _isInsideLinkable(Nameable entity) {
        try {
            _workspace.getReadAccess();

            Nameable portContainer = getContainer();

            while (entity != null) {
                if (portContainer == entity) {
                    return true;
                }
View Full Code Here

                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

            _debug(getFullName(), "preinitializing.");
        }

        // Verify that this director resides in an appropriate level
        // of hierarchy.
        Nameable nameable = getContainer();

        if (!(nameable instanceof CompositeActor)) {
            throw new IllegalActionException(this,
                    "has no CompositeActor container.");
        }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.Nameable

Copyright © 2018 www.massapicom. 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.