Package neqsim.util.validation


package neqsim.util.validation
AI-friendly validation framework for NeqSim.

This package provides structured validation with actionable error messages designed for both human users and AI agents (like GitHub Copilot). Key features:

  • Pre-execution validation to catch configuration errors early
  • Structured error messages with severity levels
  • Remediation hints that AI can parse and act upon
  • Integration with NeqSim's ML/RL infrastructure

Quick Start:


// Validate any NeqSim object
ValidationResult result = SimulationValidator.validate(fluid);
if (!result.isValid()) {
  System.out.println(result.getReport());
  // Each issue includes: severity, message, remediation hint
}

// For process systems with RL integration
AIIntegrationHelper helper = AIIntegrationHelper.forProcess(process);
if (helper.isReady()) {
  ExecutionResult result = helper.safeRun();
  RLEnvironment env = helper.createRLEnvironment();
}

Key Classes:

Severity Levels:

  • CRITICAL - Blocks execution, must be fixed
  • MAJOR - Likely to cause incorrect results
  • MINOR - Unexpected but not fatal
  • INFO - Informational note
Since:
1.0
See Also: