Class ModelDescription


  • public class ModelDescription
    extends java.lang.Object
    • Constructor Detail

      • ModelDescription

        public ModelDescription​(java.io.File file)
                         throws javax.xml.parsers.ParserConfigurationException,
                                org.xml.sax.SAXException,
                                java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
      • ModelDescription

        public ModelDescription​(java.io.InputStream file)
                         throws javax.xml.parsers.ParserConfigurationException,
                                org.xml.sax.SAXException,
                                java.io.IOException
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException
    • Method Detail

      • lookupSingle

        public static org.w3c.dom.Node lookupSingle​(java.lang.Object doc,
                                                    javax.xml.xpath.XPath xpath,
                                                    java.lang.String expression)
                                             throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • lookup

        public static org.w3c.dom.NodeList lookup​(java.lang.Object doc,
                                                  javax.xml.xpath.XPath xpath,
                                                  java.lang.String expression)
                                           throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • formateNodeWithAtt

        public static java.lang.String formateNodeWithAtt​(java.lang.Object o)
      • getModelId

        public java.lang.String getModelId()
                                    throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getGuid

        public java.lang.String getGuid()
                                 throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getFmiVersion

        public java.lang.String getFmiVersion()
                                       throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getModelDescription

        public java.lang.String getModelDescription()
                                             throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getAuthor

        public java.lang.String getAuthor()
                                   throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getModelVersion

        public java.lang.String getModelVersion()
                                         throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getCopyright

        public java.lang.String getCopyright()
                                      throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getLicense

        public java.lang.String getLicense()
                                    throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getGenerationTool

        public java.lang.String getGenerationTool()
                                           throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getGenerationDateAndTime

        public java.lang.String getGenerationDateAndTime()
                                                  throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getVariableNamingConvention

        public java.lang.String getVariableNamingConvention()
                                                     throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getVendorToolName

        public java.lang.String getVendorToolName()
                                           throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getNeedsExecutionTool

        public boolean getNeedsExecutionTool()
                                      throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getCanGetAndSetFmustate

        public boolean getCanGetAndSetFmustate()
                                        throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getCanBeInstantiatedOnlyOncePerProcess

        public boolean getCanBeInstantiatedOnlyOncePerProcess()
                                                       throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getCanInterpolateInputs

        public boolean getCanInterpolateInputs()
                                        throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getCanHandleVariableCommunicationStepSize

        public boolean getCanHandleVariableCommunicationStepSize()
                                                          throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getLogCategories

        public java.util.List<ModelDescription.LogCategory> getLogCategories()
                                                                      throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException
      • getScalarVariables

        public java.util.List<ModelDescription.ScalarVariable> getScalarVariables()
                                                                           throws javax.xml.xpath.XPathExpressionException,
                                                                                  java.lang.reflect.InvocationTargetException,
                                                                                  java.lang.IllegalAccessException
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getOutputs

        public java.util.List<ModelDescription.ScalarVariable> getOutputs()
                                                                   throws javax.xml.xpath.XPathExpressionException,
                                                                          java.lang.reflect.InvocationTargetException,
                                                                          java.lang.IllegalAccessException
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getDerivativesMap

        public java.util.Map<ModelDescription.ScalarVariable,​ModelDescription.ScalarVariable> getDerivativesMap()
                                                                                                               throws javax.xml.xpath.XPathExpressionException,
                                                                                                                      java.lang.reflect.InvocationTargetException,
                                                                                                                      java.lang.IllegalAccessException
        Returns:
        Map of ports to derivative ports.
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getDerivatives

        public java.util.List<ModelDescription.ScalarVariable> getDerivatives()
                                                                       throws javax.xml.xpath.XPathExpressionException,
                                                                              java.lang.reflect.InvocationTargetException,
                                                                              java.lang.IllegalAccessException
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getInitialUnknowns

        public java.util.List<ModelDescription.ScalarVariable> getInitialUnknowns()
                                                                           throws javax.xml.xpath.XPathExpressionException,
                                                                                  java.lang.reflect.InvocationTargetException,
                                                                                  java.lang.IllegalAccessException
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • parse

        public void parse()
                   throws javax.xml.xpath.XPathExpressionException,
                          java.lang.reflect.InvocationTargetException,
                          java.lang.IllegalAccessException
        Throws:
        javax.xml.xpath.XPathExpressionException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • getMaxOutputDerivativeOrder

        public int getMaxOutputDerivativeOrder()
                                        throws javax.xml.xpath.XPathExpressionException
        Throws:
        javax.xml.xpath.XPathExpressionException