throw new AgreeException("There is not an AGREE annex in the '" + sysType.getName() + "' system type.");
}
AgreeProgram agreeProgram = new AgreeASTBuilder().getAgreeProgram(si);
Node lustreNode = AgreeNodeToLustreContract.translate(agreeProgram.topNode, agreeProgram);
MATLABPrimaryFunction matlabFunction = LustreToMATLABTranslator.translate(lustreNode, agreeProgram);
<BUG>String dirStr = getOutputDirectory();
if (dirStr == null || dirStr.isEmpty()) {</BUG>
return Status.CANCEL_STATUS;
}
String matlabFuncScriptName = matlabFunction.name + ".m";

throw new AgreeException("There is not an AGREE annex in the '" + sysType.getName() + "' system type.");
}
AgreeProgram agreeProgram = new AgreeASTBuilder().getAgreeProgram(si);
Node lustreNode = AgreeNodeToLustreContract.translate(agreeProgram.topNode, agreeProgram);
MATLABPrimaryFunction matlabFunction = LustreToMATLABTranslator.translate(lustreNode, agreeProgram);
ModelInfo info = getModelInfo(ct);
if (info == null) {
return Status.CANCEL_STATUS;
}
String dirStr = info.outputDirPath;
if (dirStr == null || dirStr.isEmpty()) {
return Status.CANCEL_STATUS;
}
String matlabFuncScriptName = matlabFunction.name + ".m";
