Class MoMLUtilities


  • public class MoMLUtilities
    extends java.lang.Object
    This class provides access to the Ptolemy MoML parser in ptolemy.moml by using reflection.
    Since:
    Ptolemy II 8.0
    Version:
    $Id$
    Author:
    Christopher Brooks. Based on ParseMoML by Edward A. Lee. Based on MatlabUtilities by Steve Neuendorffer and Zoltan Kemenczy (Research in Motion Ltd.)
    See Also:
    ParseTreeEvaluator
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Summary

      Constructors 
      Constructor Description
      MoMLUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ActorToken parseMoML​(java.lang.String moml)
      Parse the string provided and return the result wrapped in a token.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MoMLUtilities

        public MoMLUtilities()
    • Method Detail

      • parseMoML

        public static ActorToken parseMoML​(java.lang.String moml)
                                    throws java.lang.Exception
        Parse the string provided and return the result wrapped in a token.
        Parameters:
        moml - The MoML string.
        Returns:
        The result of parsing the MoML.
        Throws:
        java.lang.Exception - If the MoML is invalid or the results is not an instance of Entity.