Class ProcessLoader

java.lang.Object
neqsim.process.processmodel.ProcessLoader

public class ProcessLoader extends Object
The ProcessLoader class is responsible for loading process configurations from a YAML file and initializing the process system with the specified units and their properties.
Author:
esol
  • Constructor Details

    • ProcessLoader

      public ProcessLoader()
  • Method Details

    • loadProcessFromYaml

      public static void loadProcessFromYaml(File yamlFile, String yamlString, ProcessSystem process) throws Exception
      Loads a process from a YAML file or YAML string and initializes the process system.
      Parameters:
      yamlFile - the YAML file containing the process configuration (nullable if yamlString is used)
      yamlString - the YAML string containing the process configuration (nullable if yamlFile is used)
      process - the process system to initialize
      Throws:
      Exception - if loading or parsing fails
    • loadProcessFromYaml

      public static void loadProcessFromYaml(File yamlFile, ProcessSystem process) throws Exception
      Loads a process from a YAML file and initializes the process system.
      Parameters:
      yamlFile - the YAML file containing the process configuration
      process - the process system to initialize
      Throws:
      Exception - if loading or parsing fails
    • loadProcessFromYaml

      public static void loadProcessFromYaml(String yamlString, ProcessSystem process) throws Exception
      Loads a process from a YAML string and initializes the process system.
      Parameters:
      yamlString - the YAML string containing the process configuration
      process - the process system to initialize
      Throws:
      Exception - if loading or parsing fails
    • setProperty

      private static void setProperty(ProcessEquipmentInterface unit, String property, Object value)