Class EnvironmentFMU

  • All Implemented Interfaces:
    org.intocps.fmi.IFmu

    public class EnvironmentFMU
    extends java.lang.Object
    implements org.intocps.fmi.IFmu
    • Constructor Summary

      Constructors 
      Constructor Description
      EnvironmentFMU​(java.lang.String fmuName, java.lang.String instanceName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void calculateInputs​(java.util.HashMap<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,​java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable>> envInputs)
      The valuereference start index is equal to
      void calculateOutputs​(java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,​java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable>> envOutputs)  
      static EnvironmentFMU createEnvironmentFMU​(java.lang.String fmuName, java.lang.String instanceName)  
      void createModelDescriptionXML()  
      org.intocps.maestro.framework.fmi2.ModelConnection.Variable createVariable​(org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable sv)  
      java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getInputs()  
      static EnvironmentFMU getInstance()  
      java.io.InputStream getModelDescription()  
      java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getOutputs()  
      java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.Variable,​java.lang.Object> getRequestedOutputValues()
      Gets the value of the inputs of the environment FMU.
      java.util.Map<java.lang.String,​org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getSourceToEnvironmentVariableInputs()  
      java.util.Map<java.lang.String,​org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getSourceToEnvironmentVariableOutputs()  
      java.lang.String getTypesPlatform()  
      java.lang.String getVersion()  
      org.intocps.fmi.IFmiComponent instantiate​(java.lang.String s, java.lang.String s1, boolean b, boolean b1, org.intocps.fmi.IFmuCallback iFmuCallback)  
      boolean isValid()  
      void load()  
      void setOutputValues​(java.util.List<org.intocps.maestro.plugin.initializer.ModelParameter> outputValues)
      Sets the value of the outputs of the environment FMU.
      void unLoad()  
      • Methods inherited from class java.lang.Object

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

      • EnvironmentFMU

        public EnvironmentFMU​(java.lang.String fmuName,
                              java.lang.String instanceName)
    • Method Detail

      • createEnvironmentFMU

        public static EnvironmentFMU createEnvironmentFMU​(java.lang.String fmuName,
                                                          java.lang.String instanceName)
      • getRequestedOutputValues

        public java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.Variable,​java.lang.Object> getRequestedOutputValues()
                                                                                                                                   throws org.intocps.maestro.framework.fmi2.InvalidVariableStringException
        Gets the value of the inputs of the environment FMU. The requested outputs from the non-virtual FMUs corresponding to the inputs of the environment FMU.
        Returns:
        Throws:
        org.intocps.maestro.framework.fmi2.InvalidVariableStringException
      • setOutputValues

        public void setOutputValues​(java.util.List<org.intocps.maestro.plugin.initializer.ModelParameter> outputValues)
        Sets the value of the outputs of the environment FMU.
        Parameters:
        outputValues -
      • getSourceToEnvironmentVariableInputs

        public java.util.Map<java.lang.String,​org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getSourceToEnvironmentVariableInputs()
      • getSourceToEnvironmentVariableOutputs

        public java.util.Map<java.lang.String,​org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getSourceToEnvironmentVariableOutputs()
      • createVariable

        public org.intocps.maestro.framework.fmi2.ModelConnection.Variable createVariable​(org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable sv)
                                                                                   throws org.intocps.maestro.framework.fmi2.InvalidVariableStringException
        Throws:
        org.intocps.maestro.framework.fmi2.InvalidVariableStringException
      • createModelDescriptionXML

        public void createModelDescriptionXML()
      • getInputs

        public java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getInputs()
      • getOutputs

        public java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable> getOutputs()
      • load

        public void load()
                  throws org.intocps.fmi.FmuInvocationException,
                         org.intocps.fmi.FmuMissingLibraryException
        Specified by:
        load in interface org.intocps.fmi.IFmu
        Throws:
        org.intocps.fmi.FmuInvocationException
        org.intocps.fmi.FmuMissingLibraryException
      • instantiate

        public org.intocps.fmi.IFmiComponent instantiate​(java.lang.String s,
                                                         java.lang.String s1,
                                                         boolean b,
                                                         boolean b1,
                                                         org.intocps.fmi.IFmuCallback iFmuCallback)
                                                  throws javax.xml.xpath.XPathExpressionException,
                                                         org.intocps.fmi.FmiInvalidNativeStateException
        Specified by:
        instantiate in interface org.intocps.fmi.IFmu
        Throws:
        javax.xml.xpath.XPathExpressionException
        org.intocps.fmi.FmiInvalidNativeStateException
      • unLoad

        public void unLoad()
                    throws org.intocps.fmi.FmiInvalidNativeStateException
        Specified by:
        unLoad in interface org.intocps.fmi.IFmu
        Throws:
        org.intocps.fmi.FmiInvalidNativeStateException
      • getVersion

        public java.lang.String getVersion()
                                    throws org.intocps.fmi.FmiInvalidNativeStateException
        Specified by:
        getVersion in interface org.intocps.fmi.IFmu
        Throws:
        org.intocps.fmi.FmiInvalidNativeStateException
      • getTypesPlatform

        public java.lang.String getTypesPlatform()
                                          throws org.intocps.fmi.FmiInvalidNativeStateException
        Specified by:
        getTypesPlatform in interface org.intocps.fmi.IFmu
        Throws:
        org.intocps.fmi.FmiInvalidNativeStateException
      • getModelDescription

        public java.io.InputStream getModelDescription()
                                                throws java.util.zip.ZipException,
                                                       java.io.IOException
        Specified by:
        getModelDescription in interface org.intocps.fmi.IFmu
        Throws:
        java.util.zip.ZipException
        java.io.IOException
      • isValid

        public boolean isValid()
        Specified by:
        isValid in interface org.intocps.fmi.IFmu
      • calculateInputs

        public void calculateInputs​(java.util.HashMap<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,​java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable>> envInputs)
        The valuereference start index is equal to
        Parameters:
        envInputs -
      • calculateOutputs

        public void calculateOutputs​(java.util.Map<org.intocps.maestro.framework.fmi2.ModelConnection.ModelInstance,​java.util.List<org.intocps.maestro.fmi.Fmi2ModelDescription.ScalarVariable>> envOutputs)