Examples of exportMoML()


Examples of ptolemy.actor.CompositeActor.exportMoML()

                CompositeActor model = (CompositeActor) _parser.parse(str
                        .stringValue());
                StringWriter writer = new StringWriter();

                try {
                    model.exportMoML(writer, 1);
                } catch (Exception ex) {
                    // FIXME: don't ignore?
                }

                String modelMoML = writer.toString();
View Full Code Here

Examples of ptolemy.actor.CompositeActor.exportMoML()

            if (generatorAttribute == null) {
                System.out.println("MakefileWriter: Warning, parsing '"
                        + _generatorAttributeFileName
                        + "' did not contain an attribute " + " called '"
                        + Copernicus.GENERATOR_NAME + "'"
                        + toplevel.exportMoML());
                generatorAttribute = new GeneratorAttribute(toplevel,
                        Copernicus.GENERATOR_NAME);
            }
        } catch (Exception ex) {
            throw new InternalErrorException(_model, ex, "Problem getting the"
View Full Code Here

Examples of ptolemy.actor.CompositeActor.exportMoML()

            FileWriter writer = null;

            try {
                writer = new FileWriter(newModelFile);
                toplevel.exportMoML(writer);
            } finally {
                if (writer != null) {
                    writer.close();
                }
            }
View Full Code Here

Examples of ptolemy.data.expr.Variable.exportMoML()

                    }
                    _previousNode = node;

                    try {

                        String moml = node.exportMoML().replaceFirst(
                                "<property",
                                "<property createIfNecessary=\"true\"");

                        // Insert the new variable so that other
                        // variables may use it.
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.ia.InterfaceAutomaton.exportMoML()

                url);
        automaton.addPorts();

        automaton.combineInternalTransitions();

        System.out.println(automaton.exportMoML());
    }

    /** Pass the first command line argument to the constructor.
     *  The command line argument is the name of a MoML file for
     *  InterfaceAutomaton.
View Full Code Here

Examples of ptolemy.domains.fsm.kernel.ia.InterfaceAutomaton.exportMoML()

        for (int i = 1; i < momls.length; i++) {
            composition = composition.compose(automata[i], considerTransient);
        }

        System.out.println(composition.exportMoML());
    }

    /** Pass the command line arguments to the constructor. The command line
     *  argument is a list of MoML files for InterfaceAutomaton.
     *  @param args The command line arguments.
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.exportMoML()

        Iterator entities = entityList().iterator();

        while (entities.hasNext()) {
            ComponentEntity entity = (ComponentEntity) entities.next();
            entity.exportMoML(output, depth);
        }
    }

    /** Override the base class to remove the ports and inside relations
     *  of this actor. This method assumes the caller has write access
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.exportMoML()

            Iterator classes = classDefinitionList().iterator();

            while (classes.hasNext()) {
                ComponentEntity entity = (ComponentEntity) classes.next();
                entity.exportMoML(stringWriter, 1);
            }

            Iterator entities = entityList().iterator();

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

Examples of ptolemy.kernel.ComponentEntity.exportMoML()

            Iterator entities = entityList().iterator();

            while (entities.hasNext()) {
                ComponentEntity entity = (ComponentEntity) entities.next();
                entity.exportMoML(stringWriter, 1);
            }

            stringWriter.write("</group>");
            return stringWriter.toString();
        } catch (IOException ex) {
View Full Code Here

Examples of ptolemy.kernel.ComponentEntity.exportMoML()

                    System.out.println("Loading class: "
                            + actor.getClass().getName() + " in: "
                            + server.serviceID.toString());
                }

                distributedActor.loadMoML(actor.exportMoML());

                // Is this needed?
                distributedActor.initialize();
            } catch (RemoteException e) {
                KernelException.stackTraceToString(e);
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.