Class ValidationFramework

java.lang.Object
neqsim.integration.ValidationFramework

public class ValidationFramework extends Object
Core framework for validating NeqSim simulations before execution.

Purpose: Detect setup errors early (missing mixing rules, invalid parameters, unconverged state) before long-running simulations. Enables AI agents to self-correct and provides developers with clear error messages.

Usage:

SystemInterface system = new SystemSrkEos(...);
system.addComponent("methane", 0.5);
// Missing: system.setMixingRule("classic")

ValidationResult result = system.validate();
if (!result.isReady()) {
  System.err.println(result.getErrorsSummary());
  // Output: "Validation failed: Mixing rule not set for SystemSrkEos"
}
  • Constructor Details

    • ValidationFramework

      public ValidationFramework()
  • Method Details

    • validate

      public static ValidationFramework.ValidationBuilder validate(String objectName)
      Convenience method for creating a validation builder.
      Parameters:
      objectName - the name of the object being validated
      Returns:
      a new ValidationBuilder instance