Interface IFmuFactory


  • public interface IFmuFactory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SESSION_SCHEME
      File prefix for session relative files
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean accept​(java.net.URI uri)
      The accept method returns true if this factory will handle instantiation of the file into an FMU
      org.intocps.fmi.IFmu instantiate​(java.io.File sessionRoot, java.net.URI uri)
      Instantiates an FMU from the file
    • Field Detail

      • SESSION_SCHEME

        static final java.lang.String SESSION_SCHEME
        File prefix for session relative files
        See Also:
        Constant Field Values
    • Method Detail

      • accept

        boolean accept​(java.net.URI uri)
        The accept method returns true if this factory will handle instantiation of the file into an FMU
        Parameters:
        uri - the file
        Returns:
        true, if handled by this factory
      • instantiate

        org.intocps.fmi.IFmu instantiate​(java.io.File sessionRoot,
                                         java.net.URI uri)
                                  throws java.lang.Exception
        Instantiates an FMU from the file
        Parameters:
        sessionRoot - the root of the session
        uri - the FMU file or directory
        Returns:
        an instance of an FMU
        Throws:
        java.lang.Exception - throws an exception for any internal error