From d0ac3a9f022ef032019a42f1473bf63dadfc2696 Mon Sep 17 00:00:00 2001 From: Kenneth Lausdahl Date: Thu, 8 Feb 2024 14:03:46 +0100 Subject: [PATCH] updated fmu validation --- .../org/intocps/maestro/framework/fmi2/Fmi2FmuValidator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/fmi2/src/main/java/org/intocps/maestro/framework/fmi2/Fmi2FmuValidator.java b/frameworks/fmi2/src/main/java/org/intocps/maestro/framework/fmi2/Fmi2FmuValidator.java index 54386c56c..0b0747991 100644 --- a/frameworks/fmi2/src/main/java/org/intocps/maestro/framework/fmi2/Fmi2FmuValidator.java +++ b/frameworks/fmi2/src/main/java/org/intocps/maestro/framework/fmi2/Fmi2FmuValidator.java @@ -1,6 +1,7 @@ package org.intocps.maestro.framework.fmi2; import maestro.MaestroCheck; +import maestro.MaestroCheckFMI2; import maestro.OnFailError; import org.intocps.fmi.IFmu; import org.intocps.maestro.ast.LexToken; @@ -32,7 +33,7 @@ public boolean validate(String id, URI path, IErrorReporter reporter) { try { logger.trace("Validating: {} at {}", id, path); IFmu fmu = FmuFactory.create(null, path); - MaestroCheck checker = new MaestroCheck(); + MaestroCheckFMI2 checker = new MaestroCheckFMI2(); List onFailErrors = checker.check(fmu.getModelDescription()); onFailErrors.forEach(onFailError -> {