Class ProcessLoader
java.lang.Object
neqsim.process.processmodel.ProcessLoader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadProcessFromYaml(File yamlFile, String yamlString, ProcessSystem process) Loads a process from a YAML file or YAML string and initializes the process system.static voidloadProcessFromYaml(File yamlFile, ProcessSystem process) Loads a process from a YAML file and initializes the process system.static voidloadProcessFromYaml(String yamlString, ProcessSystem process) Loads a process from a YAML string and initializes the process system.private static voidsetProperty(ProcessEquipmentInterface unit, String property, Object value)
-
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
Loads a process from a YAML file and initializes the process system.- Parameters:
yamlFile- the YAML file containing the process configurationprocess- the process system to initialize- Throws:
Exception- if loading or parsing fails
-
loadProcessFromYaml
Loads a process from a YAML string and initializes the process system.- Parameters:
yamlString- the YAML string containing the process configurationprocess- the process system to initialize- Throws:
Exception- if loading or parsing fails
-
setProperty
-