Examples of exportMoML()


Examples of ptolemy.kernel.ComponentRelation.exportMoML()

        Iterator relations = model.relationList().iterator();

        StringBuffer relationsMoML = new StringBuffer();
        while (relations.hasNext()) {
            ComponentRelation relation = (ComponentRelation) relations.next();
            relationsMoML.append(relation.exportMoML());
            relation.unlinkAll();
        }

        actor.removeAllPorts();
        actor.createPorts();
View Full Code Here

Examples of ptolemy.kernel.Entity.exportMoML()

                            .toplevel();
                    try {
                        _parser.reset();
                        // Export the model into moml string and then import it
                        // again. Needed b some models with unnoticeable state.
                        NamedObj newModel = _parser.parse(model.exportMoML());
                        Tableau tableau = configuration.openModel(newModel,
                                effigy);
                        if (_tableaus[i] != null) {
                            _tableaus[i].close();
                        }
View Full Code Here

Examples of ptolemy.kernel.Entity.exportMoML()

            // specified a set of prototype refinements.
            if (refinements instanceof CompositeEntity) {
                String choiceName = choiceNames[choiceIndex];
                Entity template = ((CompositeEntity) refinements)
                        .getEntity(choiceName);
                String templateDescription = template.exportMoML(newName);
                moml = "<group>" + templateDescription + "<entity name=\""
                        + state.getName(container)
                        + "\"><property name=\"refinementName\" value=\""
                        + currentRefinements + "\"/></entity></group>";
            } else {
View Full Code Here

Examples of ptolemy.kernel.Entity.exportMoML()

            // specified a set of prototype refinements.
            if (refinements instanceof CompositeEntity) {
                String choiceName = choiceNames[choiceIndex];
                Entity template = ((CompositeEntity) refinements)
                        .getEntity(choiceName);
                String templateDescription = template.exportMoML(newName);
                moml = "<group>" + templateDescription + "<relation name=\""
                        + transition.getName(container)
                        + "\"><property name=\"refinementName\" value=\""
                        + currentRefinements + "\"/></relation></group>";
            } else {
View Full Code Here

Examples of ptolemy.kernel.Entity.exportMoML()

                if (attribute != null) {
                    CompositeEntity library = attribute.getLibrary();
                    Entity prototype = library.getEntity("state");

                    if (prototype != null) {
                        moml = prototype.exportMoML(stateName);

                        // FIXME: Get location name from prototype.
                    }
                }
            } catch (Exception ex) {
View Full Code Here

Examples of ptolemy.kernel.Port.exportMoML()

        Iterator ports = portList().iterator();

        while (ports.hasNext()) {
            Port port = (Port) ports.next();
            port.exportMoML(output, depth);
        }

        output.write(exportLinks(depth, null));
    }
View Full Code Here

Examples of ptolemy.kernel.Port.exportMoML()

        Iterator ports = portList().iterator();

        while (ports.hasNext()) {
            Port port = (Port) ports.next();
            port.exportMoML(output, depth);
        }

        Iterator entities = entityList().iterator();

        while (entities.hasNext()) {
View Full Code Here

Examples of ptolemy.kernel.Port.exportMoML()

        Iterator ports = portList().iterator();

        while (ports.hasNext()) {
            Port port = (Port) ports.next();
            port.exportMoML(output, depth);
        }
    }

    /** Notify this actor that the given entity has been added inside it.
     *  Override the base class to do nothing. This will prevent it from
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.exportMoML()

            throws IOException {
        Iterator attributes = attributeList().iterator();

        while (attributes.hasNext()) {
            Attribute attribute = (Attribute) attributes.next();
            attribute.exportMoML(output, depth);
        }

        Iterator ports = portList().iterator();

        while (ports.hasNext()) {
View Full Code Here

Examples of ptolemy.kernel.util.Attribute.exportMoML()

            throws IOException {
        Iterator attributes = attributeList().iterator();

        while (attributes.hasNext()) {
            Attribute attribute = (Attribute) attributes.next();
            attribute.exportMoML(output, depth);
        }

        Iterator ports = portList().iterator();

        while (ports.hasNext()) {
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.