OMCompiler/Compiler/Script/OpenModelicaScriptingAPI.mo
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | encapsulated package OpenModelicaScriptingAPI | ||
| 2 | |||
| 3 | import Absyn; | ||
| 4 | import AbsynUtil; | ||
| 5 | import CevalScript; | ||
| 6 | import Parser; | ||
| 7 | |||
| 8 | protected | ||
| 9 | |||
| 10 | import Values; | ||
| 11 | import ValuesMake; | ||
| 12 | import ValuesUtil; | ||
| 13 | constant Absyn.Msg dummyMsg = Absyn.MSG(SOURCEINFO("<interactive>",false,1,1,1,1,0.0)); | ||
| 14 | |||
| 15 | public | ||
| 16 | |||
| 17 | function oms_getVersion | ||
| 18 | output String res; | ||
| 19 | algorithm | ||
| 20 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getVersion", {}, dummyMsg); | |
| 21 | end oms_getVersion; | ||
| 22 | |||
| 23 | function oms_terminate | ||
| 24 | input String cref; | ||
| 25 | output Integer res; | ||
| 26 | algorithm | ||
| 27 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_terminate", {Values.STRING(cref)}, dummyMsg); | |
| 28 | end oms_terminate; | ||
| 29 | |||
| 30 | function oms_stepUntil | ||
| 31 | input String cref; | ||
| 32 | input Real stopTime; | ||
| 33 | output Integer res; | ||
| 34 | algorithm | ||
| 35 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_stepUntil", {Values.STRING(cref), Values.REAL(stopTime)}, dummyMsg); | |
| 36 | end oms_stepUntil; | ||
| 37 | |||
| 38 | function oms_simulate | ||
| 39 | input String cref; | ||
| 40 | output Integer res; | ||
| 41 | algorithm | ||
| 42 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_simulate", {Values.STRING(cref)}, dummyMsg); | |
| 43 | end oms_simulate; | ||
| 44 | |||
| 45 | function oms_setWorkingDirectory | ||
| 46 | input String newWorkingDir; | ||
| 47 | output Integer res; | ||
| 48 | algorithm | ||
| 49 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setWorkingDirectory", {Values.STRING(newWorkingDir)}, dummyMsg); | |
| 50 | end oms_setWorkingDirectory; | ||
| 51 | |||
| 52 | function oms_setVariableStepSize | ||
| 53 | input String cref; | ||
| 54 | input Real initialStepSize; | ||
| 55 | input Real minimumStepSize; | ||
| 56 | input Real maximumStepSize; | ||
| 57 | output Integer res; | ||
| 58 | algorithm | ||
| 59 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setVariableStepSize", {Values.STRING(cref), Values.REAL(initialStepSize), Values.REAL(minimumStepSize), Values.REAL(maximumStepSize)}, dummyMsg); | |
| 60 | end oms_setVariableStepSize; | ||
| 61 | |||
| 62 | function oms_setTolerance | ||
| 63 | input String cref; | ||
| 64 | input Real absoluteTolerance; | ||
| 65 | input Real relativeTolerance; | ||
| 66 | output Integer res; | ||
| 67 | algorithm | ||
| 68 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setTolerance", {Values.STRING(cref), Values.REAL(absoluteTolerance), Values.REAL(relativeTolerance)}, dummyMsg); | |
| 69 | end oms_setTolerance; | ||
| 70 | |||
| 71 | function oms_setTLMSocketData | ||
| 72 | input String cref; | ||
| 73 | input String address; | ||
| 74 | input Integer managerPort; | ||
| 75 | input Integer monitorPort; | ||
| 76 | output Integer res; | ||
| 77 | algorithm | ||
| 78 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setTLMSocketData", {Values.STRING(cref), Values.STRING(address), Values.INTEGER(managerPort), Values.INTEGER(monitorPort)}, dummyMsg); | |
| 79 | end oms_setTLMSocketData; | ||
| 80 | |||
| 81 | function oms_setTLMPositionAndOrientation | ||
| 82 | input String cref; | ||
| 83 | input Real x1; | ||
| 84 | input Real x2; | ||
| 85 | input Real x3; | ||
| 86 | input Real A11; | ||
| 87 | input Real A12; | ||
| 88 | input Real A13; | ||
| 89 | input Real A21; | ||
| 90 | input Real A22; | ||
| 91 | input Real A23; | ||
| 92 | input Real A31; | ||
| 93 | input Real A32; | ||
| 94 | input Real A33; | ||
| 95 | output Integer res; | ||
| 96 | algorithm | ||
| 97 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setTLMPositionAndOrientation", {Values.STRING(cref), Values.REAL(x1), Values.REAL(x2), Values.REAL(x3), Values.REAL(A11), Values.REAL(A12), Values.REAL(A13), Values.REAL(A21), Values.REAL(A22), Values.REAL(A23), Values.REAL(A31), Values.REAL(A32), Values.REAL(A33)}, dummyMsg); | |
| 98 | end oms_setTLMPositionAndOrientation; | ||
| 99 | |||
| 100 | function oms_setTempDirectory | ||
| 101 | input String newTempDir; | ||
| 102 | output Integer res; | ||
| 103 | algorithm | ||
| 104 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setTempDirectory", {Values.STRING(newTempDir)}, dummyMsg); | |
| 105 | end oms_setTempDirectory; | ||
| 106 | |||
| 107 | function oms_setStopTime | ||
| 108 | input String cref; | ||
| 109 | input Real stopTime; | ||
| 110 | output Integer res; | ||
| 111 | algorithm | ||
| 112 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setStopTime", {Values.STRING(cref), Values.REAL(stopTime)}, dummyMsg); | |
| 113 | end oms_setStopTime; | ||
| 114 | |||
| 115 | function oms_setStartTime | ||
| 116 | input String cref; | ||
| 117 | input Real startTime; | ||
| 118 | output Integer res; | ||
| 119 | algorithm | ||
| 120 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setStartTime", {Values.STRING(cref), Values.REAL(startTime)}, dummyMsg); | |
| 121 | end oms_setStartTime; | ||
| 122 | |||
| 123 | function oms_setSignalFilter | ||
| 124 | input String cref; | ||
| 125 | input String regex; | ||
| 126 | output Integer res; | ||
| 127 | algorithm | ||
| 128 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setSignalFilter", {Values.STRING(cref), Values.STRING(regex)}, dummyMsg); | |
| 129 | end oms_setSignalFilter; | ||
| 130 | |||
| 131 | function oms_setResultFile | ||
| 132 | input String cref; | ||
| 133 | input String filename; | ||
| 134 | input Integer bufferSize; | ||
| 135 | output Integer res; | ||
| 136 | algorithm | ||
| 137 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setResultFile", {Values.STRING(cref), Values.STRING(filename), Values.INTEGER(bufferSize)}, dummyMsg); | |
| 138 | end oms_setResultFile; | ||
| 139 | |||
| 140 | function oms_setRealInputDerivative | ||
| 141 | input String cref; | ||
| 142 | input Real value; | ||
| 143 | output Integer res; | ||
| 144 | algorithm | ||
| 145 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setRealInputDerivative", {Values.STRING(cref), Values.REAL(value)}, dummyMsg); | |
| 146 | end oms_setRealInputDerivative; | ||
| 147 | |||
| 148 | function oms_setReal | ||
| 149 | input String cref; | ||
| 150 | input Real value; | ||
| 151 | output Integer res; | ||
| 152 | algorithm | ||
| 153 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setReal", {Values.STRING(cref), Values.REAL(value)}, dummyMsg); | |
| 154 | end oms_setReal; | ||
| 155 | |||
| 156 | function oms_setLoggingLevel | ||
| 157 | input Integer logLevel; | ||
| 158 | output Integer res; | ||
| 159 | algorithm | ||
| 160 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setLoggingLevel", {Values.INTEGER(logLevel)}, dummyMsg); | |
| 161 | end oms_setLoggingLevel; | ||
| 162 | |||
| 163 | function oms_setLoggingInterval | ||
| 164 | input String cref; | ||
| 165 | input Real loggingInterval; | ||
| 166 | output Integer res; | ||
| 167 | algorithm | ||
| 168 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setLoggingInterval", {Values.STRING(cref), Values.REAL(loggingInterval)}, dummyMsg); | |
| 169 | end oms_setLoggingInterval; | ||
| 170 | |||
| 171 | function oms_setLogFile | ||
| 172 | input String filename; | ||
| 173 | output Integer res; | ||
| 174 | algorithm | ||
| 175 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setLogFile", {Values.STRING(filename)}, dummyMsg); | |
| 176 | end oms_setLogFile; | ||
| 177 | |||
| 178 | function oms_setInteger | ||
| 179 | input String cref; | ||
| 180 | input Integer value; | ||
| 181 | output Integer res; | ||
| 182 | algorithm | ||
| 183 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setInteger", {Values.STRING(cref), Values.INTEGER(value)}, dummyMsg); | |
| 184 | end oms_setInteger; | ||
| 185 | |||
| 186 | function oms_setFixedStepSize | ||
| 187 | input String cref; | ||
| 188 | input Real stepSize; | ||
| 189 | output Integer res; | ||
| 190 | algorithm | ||
| 191 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setFixedStepSize", {Values.STRING(cref), Values.REAL(stepSize)}, dummyMsg); | |
| 192 | end oms_setFixedStepSize; | ||
| 193 | |||
| 194 | function oms_setCommandLineOption | ||
| 195 | input String cmd; | ||
| 196 | output Integer res; | ||
| 197 | algorithm | ||
| 198 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setCommandLineOption", {Values.STRING(cmd)}, dummyMsg); | |
| 199 | end oms_setCommandLineOption; | ||
| 200 | |||
| 201 | function oms_setBoolean | ||
| 202 | input String cref; | ||
| 203 | input Boolean value; | ||
| 204 | output Integer res; | ||
| 205 | algorithm | ||
| 206 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_setBoolean", {Values.STRING(cref), Values.BOOL(value)}, dummyMsg); | |
| 207 | end oms_setBoolean; | ||
| 208 | |||
| 209 | function oms_RunFile | ||
| 210 | input String filename; | ||
| 211 | output Integer res; | ||
| 212 | algorithm | ||
| 213 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_RunFile", {Values.STRING(filename)}, dummyMsg); | |
| 214 | end oms_RunFile; | ||
| 215 | |||
| 216 | function oms_reset | ||
| 217 | input String cref; | ||
| 218 | output Integer res; | ||
| 219 | algorithm | ||
| 220 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_reset", {Values.STRING(cref)}, dummyMsg); | |
| 221 | end oms_reset; | ||
| 222 | |||
| 223 | function oms_rename | ||
| 224 | input String cref; | ||
| 225 | input String newCref; | ||
| 226 | output Integer res; | ||
| 227 | algorithm | ||
| 228 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_rename", {Values.STRING(cref), Values.STRING(newCref)}, dummyMsg); | |
| 229 | end oms_rename; | ||
| 230 | |||
| 231 | function oms_removeSignalsFromResults | ||
| 232 | input String cref; | ||
| 233 | input String regex; | ||
| 234 | output Integer res; | ||
| 235 | algorithm | ||
| 236 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_removeSignalsFromResults", {Values.STRING(cref), Values.STRING(regex)}, dummyMsg); | |
| 237 | end oms_removeSignalsFromResults; | ||
| 238 | |||
| 239 | function oms_newModel | ||
| 240 | input String cref; | ||
| 241 | output Integer res; | ||
| 242 | algorithm | ||
| 243 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_newModel", {Values.STRING(cref)}, dummyMsg); | |
| 244 | end oms_newModel; | ||
| 245 | |||
| 246 | function oms_loadSnapshot | ||
| 247 | input String cref; | ||
| 248 | input String snapshot; | ||
| 249 | output String res1; | ||
| 250 | output Integer res2; | ||
| 251 | algorithm | ||
| 252 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_loadSnapshot", {Values.STRING(cref), Values.STRING(snapshot)}, dummyMsg); | |
| 253 | end oms_loadSnapshot; | ||
| 254 | |||
| 255 | function oms_listUnconnectedConnectors | ||
| 256 | input String cref; | ||
| 257 | output String res1; | ||
| 258 | output Integer res2; | ||
| 259 | algorithm | ||
| 260 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_listUnconnectedConnectors", {Values.STRING(cref)}, dummyMsg); | |
| 261 | end oms_listUnconnectedConnectors; | ||
| 262 | |||
| 263 | function oms_list | ||
| 264 | input String cref; | ||
| 265 | output String res1; | ||
| 266 | output Integer res2; | ||
| 267 | algorithm | ||
| 268 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_list", {Values.STRING(cref)}, dummyMsg); | |
| 269 | end oms_list; | ||
| 270 | |||
| 271 | function oms_instantiate | ||
| 272 | input String cref; | ||
| 273 | output Integer res; | ||
| 274 | algorithm | ||
| 275 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_instantiate", {Values.STRING(cref)}, dummyMsg); | |
| 276 | end oms_instantiate; | ||
| 277 | |||
| 278 | function oms_initialize | ||
| 279 | input String cref; | ||
| 280 | output Integer res; | ||
| 281 | algorithm | ||
| 282 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_initialize", {Values.STRING(cref)}, dummyMsg); | |
| 283 | end oms_initialize; | ||
| 284 | |||
| 285 | function oms_importSnapshot | ||
| 286 | input String cref; | ||
| 287 | input String snapshot; | ||
| 288 | output Integer res; | ||
| 289 | algorithm | ||
| 290 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_importSnapshot", {Values.STRING(cref), Values.STRING(snapshot)}, dummyMsg); | |
| 291 | end oms_importSnapshot; | ||
| 292 | |||
| 293 | function oms_importFile | ||
| 294 | input String filename; | ||
| 295 | output String res1; | ||
| 296 | output Integer res2; | ||
| 297 | algorithm | ||
| 298 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_importFile", {Values.STRING(filename)}, dummyMsg); | |
| 299 | end oms_importFile; | ||
| 300 | |||
| 301 | function oms_getVariableStepSize | ||
| 302 | input String cref; | ||
| 303 | output Real res1; | ||
| 304 | output Real res2; | ||
| 305 | output Real res3; | ||
| 306 | output Integer res4; | ||
| 307 | algorithm | ||
| 308 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.REAL(res2), Values.REAL(res3), Values.INTEGER(res4)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getVariableStepSize", {Values.STRING(cref)}, dummyMsg); | |
| 309 | end oms_getVariableStepSize; | ||
| 310 | |||
| 311 | function oms_getTolerance | ||
| 312 | input String cref; | ||
| 313 | output Real res1; | ||
| 314 | output Real res2; | ||
| 315 | output Integer res3; | ||
| 316 | algorithm | ||
| 317 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.REAL(res2), Values.INTEGER(res3)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getTolerance", {Values.STRING(cref)}, dummyMsg); | |
| 318 | end oms_getTolerance; | ||
| 319 | |||
| 320 | function oms_getSystemType | ||
| 321 | input String cref; | ||
| 322 | output Integer res1; | ||
| 323 | output Integer res2; | ||
| 324 | algorithm | ||
| 325 | ✗ | (_,Values.TUPLE({Values.INTEGER(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getSystemType", {Values.STRING(cref)}, dummyMsg); | |
| 326 | end oms_getSystemType; | ||
| 327 | |||
| 328 | function oms_getSubModelPath | ||
| 329 | input String cref; | ||
| 330 | output String res1; | ||
| 331 | output Integer res2; | ||
| 332 | algorithm | ||
| 333 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getSubModelPath", {Values.STRING(cref)}, dummyMsg); | |
| 334 | end oms_getSubModelPath; | ||
| 335 | |||
| 336 | function oms_getStopTime | ||
| 337 | input String cref; | ||
| 338 | output Real res1; | ||
| 339 | output Integer res2; | ||
| 340 | algorithm | ||
| 341 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getStopTime", {Values.STRING(cref)}, dummyMsg); | |
| 342 | end oms_getStopTime; | ||
| 343 | |||
| 344 | function oms_getStartTime | ||
| 345 | input String cref; | ||
| 346 | output Real res1; | ||
| 347 | output Integer res2; | ||
| 348 | algorithm | ||
| 349 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getStartTime", {Values.STRING(cref)}, dummyMsg); | |
| 350 | end oms_getStartTime; | ||
| 351 | |||
| 352 | function oms_getSolver | ||
| 353 | input String cref; | ||
| 354 | output Integer res1; | ||
| 355 | output Integer res2; | ||
| 356 | algorithm | ||
| 357 | ✗ | (_,Values.TUPLE({Values.INTEGER(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getSolver", {Values.STRING(cref)}, dummyMsg); | |
| 358 | end oms_getSolver; | ||
| 359 | |||
| 360 | function oms_getReal | ||
| 361 | input String cref; | ||
| 362 | output Real res1; | ||
| 363 | output Integer res2; | ||
| 364 | algorithm | ||
| 365 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getReal", {Values.STRING(cref)}, dummyMsg); | |
| 366 | end oms_getReal; | ||
| 367 | |||
| 368 | function oms_getModelState | ||
| 369 | input String cref; | ||
| 370 | output Integer res1; | ||
| 371 | output Integer res2; | ||
| 372 | algorithm | ||
| 373 | ✗ | (_,Values.TUPLE({Values.INTEGER(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getModelState", {Values.STRING(cref)}, dummyMsg); | |
| 374 | end oms_getModelState; | ||
| 375 | |||
| 376 | function oms_getInteger | ||
| 377 | input String cref; | ||
| 378 | input Integer value; | ||
| 379 | output Integer res; | ||
| 380 | algorithm | ||
| 381 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getInteger", {Values.STRING(cref), Values.INTEGER(value)}, dummyMsg); | |
| 382 | end oms_getInteger; | ||
| 383 | |||
| 384 | function oms_getFixedStepSize | ||
| 385 | input String cref; | ||
| 386 | output Real res1; | ||
| 387 | output Integer res2; | ||
| 388 | algorithm | ||
| 389 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getFixedStepSize", {Values.STRING(cref)}, dummyMsg); | |
| 390 | end oms_getFixedStepSize; | ||
| 391 | |||
| 392 | function oms_getBoolean | ||
| 393 | input String cref; | ||
| 394 | output Boolean res1; | ||
| 395 | output Integer res2; | ||
| 396 | algorithm | ||
| 397 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_getBoolean", {Values.STRING(cref)}, dummyMsg); | |
| 398 | end oms_getBoolean; | ||
| 399 | |||
| 400 | function oms_extractFMIKind | ||
| 401 | input String filename; | ||
| 402 | output Integer res1; | ||
| 403 | output Integer res2; | ||
| 404 | algorithm | ||
| 405 | ✗ | (_,Values.TUPLE({Values.INTEGER(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_extractFMIKind", {Values.STRING(filename)}, dummyMsg); | |
| 406 | end oms_extractFMIKind; | ||
| 407 | |||
| 408 | function oms_exportSnapshot | ||
| 409 | input String cref; | ||
| 410 | output String res1; | ||
| 411 | output Integer res2; | ||
| 412 | algorithm | ||
| 413 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_exportSnapshot", {Values.STRING(cref)}, dummyMsg); | |
| 414 | end oms_exportSnapshot; | ||
| 415 | |||
| 416 | function oms_exportDependencyGraphs | ||
| 417 | input String cref; | ||
| 418 | input String initialization; | ||
| 419 | input String event; | ||
| 420 | input String simulation; | ||
| 421 | output Integer res; | ||
| 422 | algorithm | ||
| 423 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_exportDependencyGraphs", {Values.STRING(cref), Values.STRING(initialization), Values.STRING(event), Values.STRING(simulation)}, dummyMsg); | |
| 424 | end oms_exportDependencyGraphs; | ||
| 425 | |||
| 426 | function oms_export | ||
| 427 | input String cref; | ||
| 428 | input String filename; | ||
| 429 | output Integer res; | ||
| 430 | algorithm | ||
| 431 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_export", {Values.STRING(cref), Values.STRING(filename)}, dummyMsg); | |
| 432 | end oms_export; | ||
| 433 | |||
| 434 | function oms_deleteConnectorFromTLMBus | ||
| 435 | input String busCref; | ||
| 436 | input String connectorCref; | ||
| 437 | output Integer res; | ||
| 438 | algorithm | ||
| 439 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_deleteConnectorFromTLMBus", {Values.STRING(busCref), Values.STRING(connectorCref)}, dummyMsg); | |
| 440 | end oms_deleteConnectorFromTLMBus; | ||
| 441 | |||
| 442 | function oms_deleteConnectorFromBus | ||
| 443 | input String busCref; | ||
| 444 | input String connectorCref; | ||
| 445 | output Integer res; | ||
| 446 | algorithm | ||
| 447 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_deleteConnectorFromBus", {Values.STRING(busCref), Values.STRING(connectorCref)}, dummyMsg); | |
| 448 | end oms_deleteConnectorFromBus; | ||
| 449 | |||
| 450 | function oms_deleteConnection | ||
| 451 | input String crefA; | ||
| 452 | input String crefB; | ||
| 453 | output Integer res; | ||
| 454 | algorithm | ||
| 455 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_deleteConnection", {Values.STRING(crefA), Values.STRING(crefB)}, dummyMsg); | |
| 456 | end oms_deleteConnection; | ||
| 457 | |||
| 458 | function oms_delete | ||
| 459 | input String cref; | ||
| 460 | output Integer res; | ||
| 461 | algorithm | ||
| 462 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_delete", {Values.STRING(cref)}, dummyMsg); | |
| 463 | end oms_delete; | ||
| 464 | |||
| 465 | function oms_copySystem | ||
| 466 | input String source; | ||
| 467 | input String target; | ||
| 468 | output Integer res; | ||
| 469 | algorithm | ||
| 470 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_copySystem", {Values.STRING(source), Values.STRING(target)}, dummyMsg); | |
| 471 | end oms_copySystem; | ||
| 472 | |||
| 473 | function oms_compareSimulationResults | ||
| 474 | input String filenameA; | ||
| 475 | input String filenameB; | ||
| 476 | input String var; | ||
| 477 | input Real relTol; | ||
| 478 | input Real absTol; | ||
| 479 | output Integer res; | ||
| 480 | algorithm | ||
| 481 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_compareSimulationResults", {Values.STRING(filenameA), Values.STRING(filenameB), Values.STRING(var), Values.REAL(relTol), Values.REAL(absTol)}, dummyMsg); | |
| 482 | end oms_compareSimulationResults; | ||
| 483 | |||
| 484 | function oms_addTLMConnection | ||
| 485 | input String crefA; | ||
| 486 | input String crefB; | ||
| 487 | input Real delay; | ||
| 488 | input Real alpha; | ||
| 489 | input Real linearimpedance; | ||
| 490 | input Real angularimpedance; | ||
| 491 | output Integer res; | ||
| 492 | algorithm | ||
| 493 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addTLMConnection", {Values.STRING(crefA), Values.STRING(crefB), Values.REAL(delay), Values.REAL(alpha), Values.REAL(linearimpedance), Values.REAL(angularimpedance)}, dummyMsg); | |
| 494 | end oms_addTLMConnection; | ||
| 495 | |||
| 496 | function oms_addTimeIndicator | ||
| 497 | input String signal; | ||
| 498 | output Integer res; | ||
| 499 | algorithm | ||
| 500 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addTimeIndicator", {Values.STRING(signal)}, dummyMsg); | |
| 501 | end oms_addTimeIndicator; | ||
| 502 | |||
| 503 | function oms_addSubModel | ||
| 504 | input String cref; | ||
| 505 | input String fmuPath; | ||
| 506 | output Integer res; | ||
| 507 | algorithm | ||
| 508 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addSubModel", {Values.STRING(cref), Values.STRING(fmuPath)}, dummyMsg); | |
| 509 | end oms_addSubModel; | ||
| 510 | |||
| 511 | function oms_addStaticValueIndicator | ||
| 512 | input String signal; | ||
| 513 | input Real lower; | ||
| 514 | input Real upper; | ||
| 515 | input Real stepSize; | ||
| 516 | output Integer res; | ||
| 517 | algorithm | ||
| 518 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addStaticValueIndicator", {Values.STRING(signal), Values.REAL(lower), Values.REAL(upper), Values.REAL(stepSize)}, dummyMsg); | |
| 519 | end oms_addStaticValueIndicator; | ||
| 520 | |||
| 521 | function oms_addSignalsToResults | ||
| 522 | input String cref; | ||
| 523 | input String regex; | ||
| 524 | output Integer res; | ||
| 525 | algorithm | ||
| 526 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addSignalsToResults", {Values.STRING(cref), Values.STRING(regex)}, dummyMsg); | |
| 527 | end oms_addSignalsToResults; | ||
| 528 | |||
| 529 | function oms_addExternalModel | ||
| 530 | input String cref; | ||
| 531 | input String path; | ||
| 532 | input String startscript; | ||
| 533 | output Integer res; | ||
| 534 | algorithm | ||
| 535 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addExternalModel", {Values.STRING(cref), Values.STRING(path), Values.STRING(startscript)}, dummyMsg); | |
| 536 | end oms_addExternalModel; | ||
| 537 | |||
| 538 | function oms_addEventIndicator | ||
| 539 | input String signal; | ||
| 540 | output Integer res; | ||
| 541 | algorithm | ||
| 542 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addEventIndicator", {Values.STRING(signal)}, dummyMsg); | |
| 543 | end oms_addEventIndicator; | ||
| 544 | |||
| 545 | function oms_addDynamicValueIndicator | ||
| 546 | input String signal; | ||
| 547 | input String lower; | ||
| 548 | input String upper; | ||
| 549 | input Real stepSize; | ||
| 550 | output Integer res; | ||
| 551 | algorithm | ||
| 552 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addDynamicValueIndicator", {Values.STRING(signal), Values.STRING(lower), Values.STRING(upper), Values.REAL(stepSize)}, dummyMsg); | |
| 553 | end oms_addDynamicValueIndicator; | ||
| 554 | |||
| 555 | function oms_addConnectorToTLMBus | ||
| 556 | input String busCref; | ||
| 557 | input String connectorCref; | ||
| 558 | input String type_; | ||
| 559 | output Integer res; | ||
| 560 | algorithm | ||
| 561 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addConnectorToTLMBus", {Values.STRING(busCref), Values.STRING(connectorCref), Values.STRING(type_)}, dummyMsg); | |
| 562 | end oms_addConnectorToTLMBus; | ||
| 563 | |||
| 564 | function oms_addConnectorToBus | ||
| 565 | input String busCref; | ||
| 566 | input String connectorCref; | ||
| 567 | output Integer res; | ||
| 568 | algorithm | ||
| 569 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addConnectorToBus", {Values.STRING(busCref), Values.STRING(connectorCref)}, dummyMsg); | |
| 570 | end oms_addConnectorToBus; | ||
| 571 | |||
| 572 | function oms_addConnection | ||
| 573 | input String crefA; | ||
| 574 | input String crefB; | ||
| 575 | output Integer res; | ||
| 576 | algorithm | ||
| 577 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addConnection", {Values.STRING(crefA), Values.STRING(crefB)}, dummyMsg); | |
| 578 | end oms_addConnection; | ||
| 579 | |||
| 580 | function oms_addBus | ||
| 581 | input String cref; | ||
| 582 | output Integer res; | ||
| 583 | algorithm | ||
| 584 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "oms_addBus", {Values.STRING(cref)}, dummyMsg); | |
| 585 | end oms_addBus; | ||
| 586 | |||
| 587 | function unloadOMSimulator | ||
| 588 | output Integer res; | ||
| 589 | algorithm | ||
| 590 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "unloadOMSimulator", {}, dummyMsg); | |
| 591 | end unloadOMSimulator; | ||
| 592 | |||
| 593 | function loadOMSimulator | ||
| 594 | output Integer res; | ||
| 595 | algorithm | ||
| 596 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadOMSimulator", {}, dummyMsg); | |
| 597 | end loadOMSimulator; | ||
| 598 | |||
| 599 | function reverseLookup | ||
| 600 | input String name; | ||
| 601 | input String scope; | ||
| 602 | input Boolean exactMatch; | ||
| 603 | input Boolean prettyPrint; | ||
| 604 | output String res; | ||
| 605 | algorithm | ||
| 606 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "reverseLookup", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(name))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(scope))), Values.BOOL(exactMatch), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 607 | end reverseLookup; | ||
| 608 | |||
| 609 | function getClassDiagram | ||
| 610 | input String className; | ||
| 611 | input String fileName; | ||
| 612 | input String format; | ||
| 613 | input Integer depth; | ||
| 614 | input list<String> exclude; | ||
| 615 | input Boolean showModifiers; | ||
| 616 | output String res; | ||
| 617 | algorithm | ||
| 618 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getClassDiagram", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(fileName), Values.STRING(format), Values.INTEGER(depth), ValuesMake.makeArray(list(Values.STRING(exclude_iter) for exclude_iter in exclude)), Values.BOOL(showModifiers)}, dummyMsg); | |
| 619 | end getClassDiagram; | ||
| 620 | |||
| 621 | function getDefinitionAt | ||
| 622 | input String fileName; | ||
| 623 | input Integer line; | ||
| 624 | input Integer column; | ||
| 625 | input Boolean prettyPrint; | ||
| 626 | output String res; | ||
| 627 | algorithm | ||
| 628 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefinitionAt", {Values.STRING(fileName), Values.INTEGER(line), Values.INTEGER(column), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 629 | end getDefinitionAt; | ||
| 630 | |||
| 631 | function getDependencyGraph | ||
| 632 | input String scope; | ||
| 633 | input String fileName; | ||
| 634 | input Boolean prettyPrint; | ||
| 635 | output String res; | ||
| 636 | algorithm | ||
| 637 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDependencyGraph", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(scope))), Values.STRING(fileName), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 638 | end getDependencyGraph; | ||
| 639 | |||
| 640 | function getDefUseChains | ||
| 641 | input String className; | ||
| 642 | input String fileName; | ||
| 643 | input String scope; | ||
| 644 | input Boolean prettyPrint; | ||
| 645 | output String res; | ||
| 646 | algorithm | ||
| 647 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefUseChains", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(fileName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(scope))), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 648 | end getDefUseChains; | ||
| 649 | |||
| 650 | function getDefinitions | ||
| 651 | input Boolean addFunctions; | ||
| 652 | output String res; | ||
| 653 | algorithm | ||
| 654 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefinitions", {Values.BOOL(addFunctions)}, dummyMsg); | |
| 655 | end getDefinitions; | ||
| 656 | |||
| 657 | function qualifyPath | ||
| 658 | input String classPath; | ||
| 659 | input String path; | ||
| 660 | output String res; | ||
| 661 | protected | ||
| 662 | Absyn.Path res_path; | ||
| 663 | algorithm | ||
| 664 | ✗ | (_,Values.CODE(Absyn.C_TYPENAME(path=res_path))) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "qualifyPath", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(classPath))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(path)))}, dummyMsg); | |
| 665 | ✗ | res := AbsynUtil.pathString(res_path); | |
| 666 | end qualifyPath; | ||
| 667 | |||
| 668 | function restoreAST | ||
| 669 | input Integer id; | ||
| 670 | output Boolean res; | ||
| 671 | algorithm | ||
| 672 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "restoreAST", {Values.INTEGER(id)}, dummyMsg); | |
| 673 | end restoreAST; | ||
| 674 | |||
| 675 | function storeAST | ||
| 676 | output Integer res; | ||
| 677 | algorithm | ||
| 678 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "storeAST", {}, dummyMsg); | |
| 679 | end storeAST; | ||
| 680 | |||
| 681 | function modifierToJSON | ||
| 682 | input String modifier; | ||
| 683 | input Boolean prettyPrint; | ||
| 684 | output String res; | ||
| 685 | algorithm | ||
| 686 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "modifierToJSON", {Values.STRING(modifier), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 687 | end modifierToJSON; | ||
| 688 | |||
| 689 | function releaseModelInstanceReference | ||
| 690 | input Integer handle; | ||
| 691 | output Boolean res; | ||
| 692 | algorithm | ||
| 693 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "releaseModelInstanceReference", {Values.INTEGER(handle)}, dummyMsg); | |
| 694 | end releaseModelInstanceReference; | ||
| 695 | |||
| 696 | function getModelInstanceAnnotationReference | ||
| 697 | input String className; | ||
| 698 | input list<String> filter; | ||
| 699 | output Integer res; | ||
| 700 | algorithm | ||
| 701 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getModelInstanceAnnotationReference", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), ValuesMake.makeArray(list(Values.STRING(filter_iter) for filter_iter in filter))}, dummyMsg); | |
| 702 | end getModelInstanceAnnotationReference; | ||
| 703 | |||
| 704 | function getModelInstanceReference | ||
| 705 | input String className; | ||
| 706 | input String context; | ||
| 707 | input String modifier; | ||
| 708 | output Integer res; | ||
| 709 | algorithm | ||
| 710 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getModelInstanceReference", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(context))), Values.STRING(modifier)}, dummyMsg); | |
| 711 | end getModelInstanceReference; | ||
| 712 | |||
| 713 | function getModelInstanceAnnotation | ||
| 714 | input String className; | ||
| 715 | input list<String> filter; | ||
| 716 | input Boolean prettyPrint; | ||
| 717 | output String res; | ||
| 718 | algorithm | ||
| 719 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getModelInstanceAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), ValuesMake.makeArray(list(Values.STRING(filter_iter) for filter_iter in filter)), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 720 | end getModelInstanceAnnotation; | ||
| 721 | |||
| 722 | function getModelInstance | ||
| 723 | input String className; | ||
| 724 | input String context; | ||
| 725 | input String modifier; | ||
| 726 | input Boolean prettyPrint; | ||
| 727 | output String res; | ||
| 728 | algorithm | ||
| 729 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getModelInstance", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(context))), Values.STRING(modifier), Values.BOOL(prettyPrint)}, dummyMsg); | |
| 730 | end getModelInstance; | ||
| 731 | |||
| 732 | function convertPackageToLibrary | ||
| 733 | input String packageToConvert; | ||
| 734 | input String library; | ||
| 735 | input String libraryVersion; | ||
| 736 | output Boolean res; | ||
| 737 | algorithm | ||
| 738 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "convertPackageToLibrary", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(packageToConvert))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(library))), Values.STRING(libraryVersion)}, dummyMsg); | |
| 739 | end convertPackageToLibrary; | ||
| 740 | |||
| 741 | function runConversionScript | ||
| 742 | input String packageToConvert; | ||
| 743 | input String scriptFile; | ||
| 744 | output Boolean res; | ||
| 745 | algorithm | ||
| 746 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "runConversionScript", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(packageToConvert))), Values.STRING(scriptFile)}, dummyMsg); | |
| 747 | end runConversionScript; | ||
| 748 | |||
| 749 | function generateScriptingAPI | ||
| 750 | input String cl; | ||
| 751 | input String name; | ||
| 752 | output Boolean res1; | ||
| 753 | output String res2; | ||
| 754 | output String res3; | ||
| 755 | output String res4; | ||
| 756 | algorithm | ||
| 757 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), Values.STRING(res2), Values.STRING(res3), Values.STRING(res4)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateScriptingAPI", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl))), Values.STRING(name)}, dummyMsg); | |
| 758 | end generateScriptingAPI; | ||
| 759 | |||
| 760 | function deleteInitialState | ||
| 761 | input String cl; | ||
| 762 | input String state; | ||
| 763 | output Boolean res; | ||
| 764 | algorithm | ||
| 765 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deleteInitialState", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl))), Values.STRING(state)}, dummyMsg); | |
| 766 | end deleteInitialState; | ||
| 767 | |||
| 768 | function getInitialStates | ||
| 769 | input String cl; | ||
| 770 | output list<list<String>> res; | ||
| 771 | protected | ||
| 772 | Values.Value res_arr; | ||
| 773 | algorithm | ||
| 774 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInitialStates", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 775 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 776 | end getInitialStates; | ||
| 777 | |||
| 778 | function deleteTransition | ||
| 779 | input String cl; | ||
| 780 | input String from; | ||
| 781 | input String to; | ||
| 782 | input String condition; | ||
| 783 | input Boolean immediate; | ||
| 784 | input Boolean reset; | ||
| 785 | input Boolean synchronize; | ||
| 786 | input Integer priority; | ||
| 787 | output Boolean res; | ||
| 788 | algorithm | ||
| 789 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deleteTransition", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl))), Values.STRING(from), Values.STRING(to), Values.STRING(condition), Values.BOOL(immediate), Values.BOOL(reset), Values.BOOL(synchronize), Values.INTEGER(priority)}, dummyMsg); | |
| 790 | end deleteTransition; | ||
| 791 | |||
| 792 | function getTransitions | ||
| 793 | input String cl; | ||
| 794 | output list<list<String>> res; | ||
| 795 | protected | ||
| 796 | Values.Value res_arr; | ||
| 797 | algorithm | ||
| 798 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getTransitions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 799 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 800 | end getTransitions; | ||
| 801 | |||
| 802 | function getEnumerationLiterals | ||
| 803 | input String className; | ||
| 804 | output list<String> res; | ||
| 805 | protected | ||
| 806 | Values.Value res_arr; | ||
| 807 | algorithm | ||
| 808 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getEnumerationLiterals", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 809 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 810 | end getEnumerationLiterals; | ||
| 811 | |||
| 812 | function getDefaultComponentPrefixes | ||
| 813 | input String cl; | ||
| 814 | output String res; | ||
| 815 | algorithm | ||
| 816 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefaultComponentPrefixes", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 817 | end getDefaultComponentPrefixes; | ||
| 818 | |||
| 819 | function getDefaultComponentName | ||
| 820 | input String cl; | ||
| 821 | output String res; | ||
| 822 | algorithm | ||
| 823 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefaultComponentName", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 824 | end getDefaultComponentName; | ||
| 825 | |||
| 826 | function getClassInformation | ||
| 827 | input String cl; | ||
| 828 | output String res1; | ||
| 829 | output String res2; | ||
| 830 | output Boolean res3; | ||
| 831 | output Boolean res4; | ||
| 832 | output Boolean res5; | ||
| 833 | output String res6; | ||
| 834 | output Boolean res7; | ||
| 835 | output Integer res8; | ||
| 836 | output Integer res9; | ||
| 837 | output Integer res10; | ||
| 838 | output Integer res11; | ||
| 839 | output list<String> res12; | ||
| 840 | output Boolean res13; | ||
| 841 | output Boolean res14; | ||
| 842 | output String res15; | ||
| 843 | output String res16; | ||
| 844 | output Boolean res17; | ||
| 845 | output String res18; | ||
| 846 | output String res19; | ||
| 847 | output String res20; | ||
| 848 | output String res21; | ||
| 849 | output String res22; | ||
| 850 | protected | ||
| 851 | Values.Value res12_arr; | ||
| 852 | algorithm | ||
| 853 | ✗ | (_,Values.TUPLE({Values.STRING(res1), Values.STRING(res2), Values.BOOL(res3), Values.BOOL(res4), Values.BOOL(res5), Values.STRING(res6), Values.BOOL(res7), Values.INTEGER(res8), Values.INTEGER(res9), Values.INTEGER(res10), Values.INTEGER(res11), res12_arr, Values.BOOL(res13), Values.BOOL(res14), Values.STRING(res15), Values.STRING(res16), Values.BOOL(res17), Values.STRING(res18), Values.STRING(res19), Values.STRING(res20), Values.STRING(res21), Values.STRING(res22)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getClassInformation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 854 | ✗ | res12 := list(match res12_arr_iter case Values.STRING() then res12_arr_iter.string; end match for res12_arr_iter in ValuesUtil.arrayValues(res12_arr)); | |
| 855 | end getClassInformation; | ||
| 856 | |||
| 857 | function sortStrings | ||
| 858 | input list<String> arr; | ||
| 859 | output list<String> res; | ||
| 860 | protected | ||
| 861 | Values.Value res_arr; | ||
| 862 | algorithm | ||
| 863 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "sortStrings", {ValuesMake.makeArray(list(Values.STRING(arr_iter) for arr_iter in arr))}, dummyMsg); | |
| 864 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 865 | end sortStrings; | ||
| 866 | |||
| 867 | function checkInterfaceOfPackages | ||
| 868 | input String cl; | ||
| 869 | input list<list<String>> dependencyMatrix; | ||
| 870 | output Boolean res; | ||
| 871 | algorithm | ||
| 872 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "checkInterfaceOfPackages", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl))), ValuesMake.makeArray(list(ValuesMake.makeArray(list(Values.STRING(dependencyMatrix_iter_iter) for dependencyMatrix_iter_iter in dependencyMatrix_iter)) for dependencyMatrix_iter in dependencyMatrix))}, dummyMsg); | |
| 873 | end checkInterfaceOfPackages; | ||
| 874 | |||
| 875 | function GC_set_max_heap_size | ||
| 876 | input Real size; | ||
| 877 | output Boolean res; | ||
| 878 | algorithm | ||
| 879 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "GC_set_max_heap_size", {Values.REAL(size)}, dummyMsg); | |
| 880 | end GC_set_max_heap_size; | ||
| 881 | |||
| 882 | function GC_expand_hp | ||
| 883 | input Integer size; | ||
| 884 | output Boolean res; | ||
| 885 | algorithm | ||
| 886 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "GC_expand_hp", {Values.INTEGER(size)}, dummyMsg); | |
| 887 | end GC_expand_hp; | ||
| 888 | |||
| 889 | function GC_gcollect_and_unmap | ||
| 890 | algorithm | ||
| 891 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "GC_gcollect_and_unmap", {}, dummyMsg); | |
| 892 | end GC_gcollect_and_unmap; | ||
| 893 | |||
| 894 | function getMemorySize | ||
| 895 | output Real res; | ||
| 896 | algorithm | ||
| 897 | ✗ | (_,Values.REAL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getMemorySize", {}, dummyMsg); | |
| 898 | end getMemorySize; | ||
| 899 | |||
| 900 | function threadWorkFailed | ||
| 901 | algorithm | ||
| 902 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "threadWorkFailed", {}, dummyMsg); | |
| 903 | end threadWorkFailed; | ||
| 904 | |||
| 905 | function exit | ||
| 906 | input Integer status; | ||
| 907 | algorithm | ||
| 908 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "exit", {Values.INTEGER(status)}, dummyMsg); | |
| 909 | end exit; | ||
| 910 | |||
| 911 | function runScriptParallel | ||
| 912 | input list<String> scripts; | ||
| 913 | input Integer numThreads; | ||
| 914 | input Boolean useThreads; | ||
| 915 | output list<Boolean> res; | ||
| 916 | protected | ||
| 917 | Values.Value res_arr; | ||
| 918 | algorithm | ||
| 919 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "runScriptParallel", {ValuesMake.makeArray(list(Values.STRING(scripts_iter) for scripts_iter in scripts)), Values.INTEGER(numThreads), Values.BOOL(useThreads)}, dummyMsg); | |
| 920 | ✗ | res := list(match res_arr_iter case Values.BOOL() then res_arr_iter.boolean; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 921 | end runScriptParallel; | ||
| 922 | |||
| 923 | function numProcessors | ||
| 924 | output Integer res; | ||
| 925 | algorithm | ||
| 926 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "numProcessors", {}, dummyMsg); | |
| 927 | end numProcessors; | ||
| 928 | |||
| 929 | function generateEntryPoint | ||
| 930 | input String fileName; | ||
| 931 | input String entryPoint; | ||
| 932 | input String url; | ||
| 933 | algorithm | ||
| 934 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateEntryPoint", {Values.STRING(fileName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(entryPoint))), Values.STRING(url)}, dummyMsg); | |
| 935 | end generateEntryPoint; | ||
| 936 | |||
| 937 | function getDerivedClassModifierValue | ||
| 938 | input String className; | ||
| 939 | input String modifierName; | ||
| 940 | output String res; | ||
| 941 | algorithm | ||
| 942 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDerivedClassModifierValue", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifierName)))}, dummyMsg); | |
| 943 | end getDerivedClassModifierValue; | ||
| 944 | |||
| 945 | function getDerivedClassModifierNames | ||
| 946 | input String className; | ||
| 947 | output list<String> res; | ||
| 948 | protected | ||
| 949 | Values.Value res_arr; | ||
| 950 | algorithm | ||
| 951 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDerivedClassModifierNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 952 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 953 | end getDerivedClassModifierNames; | ||
| 954 | |||
| 955 | function getConversionsFromVersions | ||
| 956 | input String pack; | ||
| 957 | output list<String> res1; | ||
| 958 | output list<String> res2; | ||
| 959 | protected | ||
| 960 | Values.Value res1_arr; | ||
| 961 | Values.Value res2_arr; | ||
| 962 | algorithm | ||
| 963 | ✗ | (_,Values.TUPLE({res1_arr, res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getConversionsFromVersions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pack)))}, dummyMsg); | |
| 964 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 965 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 966 | end getConversionsFromVersions; | ||
| 967 | |||
| 968 | function getUses | ||
| 969 | input String pack; | ||
| 970 | output list<list<String>> res; | ||
| 971 | protected | ||
| 972 | Values.Value res_arr; | ||
| 973 | algorithm | ||
| 974 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getUses", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pack)))}, dummyMsg); | |
| 975 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 976 | end getUses; | ||
| 977 | |||
| 978 | function upgradeInstalledPackages | ||
| 979 | input Boolean installNewestVersions; | ||
| 980 | output Boolean res; | ||
| 981 | algorithm | ||
| 982 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "upgradeInstalledPackages", {Values.BOOL(installNewestVersions)}, dummyMsg); | |
| 983 | end upgradeInstalledPackages; | ||
| 984 | |||
| 985 | function getAvailablePackageConversionsFrom | ||
| 986 | input String pkg; | ||
| 987 | input String version; | ||
| 988 | output list<String> res; | ||
| 989 | protected | ||
| 990 | Values.Value res_arr; | ||
| 991 | algorithm | ||
| 992 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailablePackageConversionsFrom", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pkg))), Values.STRING(version)}, dummyMsg); | |
| 993 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 994 | end getAvailablePackageConversionsFrom; | ||
| 995 | |||
| 996 | function getAvailablePackageConversionsTo | ||
| 997 | input String pkg; | ||
| 998 | input String version; | ||
| 999 | output list<String> res; | ||
| 1000 | protected | ||
| 1001 | Values.Value res_arr; | ||
| 1002 | algorithm | ||
| 1003 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailablePackageConversionsTo", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pkg))), Values.STRING(version)}, dummyMsg); | |
| 1004 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1005 | end getAvailablePackageConversionsTo; | ||
| 1006 | |||
| 1007 | function getAvailablePackageVersions | ||
| 1008 | input String pkg; | ||
| 1009 | input String version; | ||
| 1010 | output list<String> res; | ||
| 1011 | protected | ||
| 1012 | Values.Value res_arr; | ||
| 1013 | algorithm | ||
| 1014 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailablePackageVersions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pkg))), Values.STRING(version)}, dummyMsg); | |
| 1015 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1016 | end getAvailablePackageVersions; | ||
| 1017 | |||
| 1018 | function installWasmToolchain | ||
| 1019 | input Boolean cxx; | ||
| 1020 | output String res; | ||
| 1021 | algorithm | ||
| 1022 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "installWasmToolchain", {Values.BOOL(cxx)}, dummyMsg); | |
| 1023 | end installWasmToolchain; | ||
| 1024 | |||
| 1025 | function updatePackageIndex | ||
| 1026 | output Boolean res; | ||
| 1027 | algorithm | ||
| 1028 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "updatePackageIndex", {}, dummyMsg); | |
| 1029 | end updatePackageIndex; | ||
| 1030 | |||
| 1031 | function installPackage | ||
| 1032 | input String pkg; | ||
| 1033 | input String version; | ||
| 1034 | input Boolean exactMatch; | ||
| 1035 | output Boolean res; | ||
| 1036 | algorithm | ||
| 1037 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "installPackage", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(pkg))), Values.STRING(version), Values.BOOL(exactMatch)}, dummyMsg); | |
| 1038 | end installPackage; | ||
| 1039 | |||
| 1040 | function getAvailableLibraryVersions | ||
| 1041 | input String libraryName; | ||
| 1042 | output list<String> res; | ||
| 1043 | protected | ||
| 1044 | Values.Value res_arr; | ||
| 1045 | algorithm | ||
| 1046 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailableLibraryVersions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(libraryName)))}, dummyMsg); | |
| 1047 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1048 | end getAvailableLibraryVersions; | ||
| 1049 | |||
| 1050 | function getAvailableLibraries | ||
| 1051 | output list<String> res; | ||
| 1052 | protected | ||
| 1053 | Values.Value res_arr; | ||
| 1054 | algorithm | ||
| 1055 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailableLibraries", {}, dummyMsg); | |
| 1056 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1057 | end getAvailableLibraries; | ||
| 1058 | |||
| 1059 | function searchClassNames | ||
| 1060 | input String searchText; | ||
| 1061 | input Boolean findInText; | ||
| 1062 | output list<String> res; | ||
| 1063 | protected | ||
| 1064 | Values.Value res_arr; | ||
| 1065 | algorithm | ||
| 1066 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "searchClassNames", {Values.STRING(searchText), Values.BOOL(findInText)}, dummyMsg); | |
| 1067 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1068 | end searchClassNames; | ||
| 1069 | |||
| 1070 | function extendsFrom | ||
| 1071 | input String className; | ||
| 1072 | input String baseClassName; | ||
| 1073 | output Boolean res; | ||
| 1074 | algorithm | ||
| 1075 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "extendsFrom", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(baseClassName)))}, dummyMsg); | |
| 1076 | end extendsFrom; | ||
| 1077 | |||
| 1078 | function getBooleanClassAnnotation | ||
| 1079 | input String className; | ||
| 1080 | input String annotationName; | ||
| 1081 | output Boolean res; | ||
| 1082 | algorithm | ||
| 1083 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getBooleanClassAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(annotationName)))}, dummyMsg); | |
| 1084 | end getBooleanClassAnnotation; | ||
| 1085 | |||
| 1086 | function classAnnotationExists | ||
| 1087 | input String className; | ||
| 1088 | input String annotationName; | ||
| 1089 | output Boolean res; | ||
| 1090 | algorithm | ||
| 1091 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "classAnnotationExists", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(annotationName)))}, dummyMsg); | |
| 1092 | end classAnnotationExists; | ||
| 1093 | |||
| 1094 | function getAnnotationModifierValue | ||
| 1095 | input String className; | ||
| 1096 | input String annotationName; | ||
| 1097 | input String modifierName; | ||
| 1098 | output String res; | ||
| 1099 | algorithm | ||
| 1100 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAnnotationModifierValue", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(annotationName), Values.STRING(modifierName)}, dummyMsg); | |
| 1101 | end getAnnotationModifierValue; | ||
| 1102 | |||
| 1103 | function getAnnotationNamedModifiers | ||
| 1104 | input String className; | ||
| 1105 | input String annotationName; | ||
| 1106 | output list<String> res; | ||
| 1107 | protected | ||
| 1108 | Values.Value res_arr; | ||
| 1109 | algorithm | ||
| 1110 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAnnotationNamedModifiers", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(annotationName)}, dummyMsg); | |
| 1111 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1112 | end getAnnotationNamedModifiers; | ||
| 1113 | |||
| 1114 | function getSimulationOptions | ||
| 1115 | input String name; | ||
| 1116 | input Real defaultStartTime; | ||
| 1117 | input Real defaultStopTime; | ||
| 1118 | input Real defaultTolerance; | ||
| 1119 | input Integer defaultNumberOfIntervals; | ||
| 1120 | input Real defaultInterval; | ||
| 1121 | output Real res1; | ||
| 1122 | output Real res2; | ||
| 1123 | output Real res3; | ||
| 1124 | output Integer res4; | ||
| 1125 | output Real res5; | ||
| 1126 | algorithm | ||
| 1127 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.REAL(res2), Values.REAL(res3), Values.INTEGER(res4), Values.REAL(res5)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getSimulationOptions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(name))), Values.REAL(defaultStartTime), Values.REAL(defaultStopTime), Values.REAL(defaultTolerance), Values.INTEGER(defaultNumberOfIntervals), Values.REAL(defaultInterval)}, dummyMsg); | |
| 1128 | end getSimulationOptions; | ||
| 1129 | |||
| 1130 | function isExperiment | ||
| 1131 | input String name; | ||
| 1132 | output Boolean res; | ||
| 1133 | algorithm | ||
| 1134 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isExperiment", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(name)))}, dummyMsg); | |
| 1135 | end isExperiment; | ||
| 1136 | |||
| 1137 | function getNthInheritedClass | ||
| 1138 | input String className; | ||
| 1139 | input Integer n; | ||
| 1140 | output String res; | ||
| 1141 | protected | ||
| 1142 | Absyn.Path res_path; | ||
| 1143 | algorithm | ||
| 1144 | ✗ | (_,Values.CODE(Absyn.C_TYPENAME(path=res_path))) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthInheritedClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.INTEGER(n)}, dummyMsg); | |
| 1145 | ✗ | res := AbsynUtil.pathString(res_path); | |
| 1146 | end getNthInheritedClass; | ||
| 1147 | |||
| 1148 | function getInheritedClasses | ||
| 1149 | input String name; | ||
| 1150 | output list<String> res; | ||
| 1151 | protected | ||
| 1152 | Values.Value res_arr; | ||
| 1153 | algorithm | ||
| 1154 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInheritedClasses", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(name)))}, dummyMsg); | |
| 1155 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1156 | end getInheritedClasses; | ||
| 1157 | |||
| 1158 | function getInheritanceCount | ||
| 1159 | input String className; | ||
| 1160 | output Integer res; | ||
| 1161 | algorithm | ||
| 1162 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInheritanceCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1163 | end getInheritanceCount; | ||
| 1164 | |||
| 1165 | function isProtected | ||
| 1166 | input String componentName; | ||
| 1167 | input String className; | ||
| 1168 | output Boolean res; | ||
| 1169 | algorithm | ||
| 1170 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isProtected", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1171 | end isProtected; | ||
| 1172 | |||
| 1173 | function isConstant | ||
| 1174 | input String componentName; | ||
| 1175 | input String className; | ||
| 1176 | output Boolean res; | ||
| 1177 | algorithm | ||
| 1178 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isConstant", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1179 | end isConstant; | ||
| 1180 | |||
| 1181 | function isParameter | ||
| 1182 | input String componentName; | ||
| 1183 | input String className; | ||
| 1184 | output Boolean res; | ||
| 1185 | algorithm | ||
| 1186 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isParameter", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1187 | end isParameter; | ||
| 1188 | |||
| 1189 | function isPrimitive | ||
| 1190 | input String className; | ||
| 1191 | output Boolean res; | ||
| 1192 | algorithm | ||
| 1193 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isPrimitive", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1194 | end isPrimitive; | ||
| 1195 | |||
| 1196 | function getBuiltinType | ||
| 1197 | input String cl; | ||
| 1198 | output String res; | ||
| 1199 | algorithm | ||
| 1200 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getBuiltinType", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1201 | end getBuiltinType; | ||
| 1202 | |||
| 1203 | function isProtectedClass | ||
| 1204 | input String cl; | ||
| 1205 | input String c2; | ||
| 1206 | output Boolean res; | ||
| 1207 | algorithm | ||
| 1208 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isProtectedClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl))), Values.STRING(c2)}, dummyMsg); | |
| 1209 | end isProtectedClass; | ||
| 1210 | |||
| 1211 | function isOperatorFunction | ||
| 1212 | input String cl; | ||
| 1213 | output Boolean res; | ||
| 1214 | algorithm | ||
| 1215 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isOperatorFunction", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1216 | end isOperatorFunction; | ||
| 1217 | |||
| 1218 | function isOperatorRecord | ||
| 1219 | input String cl; | ||
| 1220 | output Boolean res; | ||
| 1221 | algorithm | ||
| 1222 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isOperatorRecord", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1223 | end isOperatorRecord; | ||
| 1224 | |||
| 1225 | function isOperator | ||
| 1226 | input String cl; | ||
| 1227 | output Boolean res; | ||
| 1228 | algorithm | ||
| 1229 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isOperator", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1230 | end isOperator; | ||
| 1231 | |||
| 1232 | function isEnumeration | ||
| 1233 | input String cl; | ||
| 1234 | output Boolean res; | ||
| 1235 | algorithm | ||
| 1236 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isEnumeration", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1237 | end isEnumeration; | ||
| 1238 | |||
| 1239 | function isOptimization | ||
| 1240 | input String cl; | ||
| 1241 | output Boolean res; | ||
| 1242 | algorithm | ||
| 1243 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isOptimization", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1244 | end isOptimization; | ||
| 1245 | |||
| 1246 | function isConnector | ||
| 1247 | input String cl; | ||
| 1248 | output Boolean res; | ||
| 1249 | algorithm | ||
| 1250 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isConnector", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1251 | end isConnector; | ||
| 1252 | |||
| 1253 | function isModel | ||
| 1254 | input String cl; | ||
| 1255 | output Boolean res; | ||
| 1256 | algorithm | ||
| 1257 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1258 | end isModel; | ||
| 1259 | |||
| 1260 | function isRedeclare | ||
| 1261 | input String element; | ||
| 1262 | output Boolean res; | ||
| 1263 | algorithm | ||
| 1264 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isRedeclare", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(element)))}, dummyMsg); | |
| 1265 | end isRedeclare; | ||
| 1266 | |||
| 1267 | function isReplaceable | ||
| 1268 | input String element; | ||
| 1269 | output Boolean res; | ||
| 1270 | algorithm | ||
| 1271 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isReplaceable", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(element)))}, dummyMsg); | |
| 1272 | end isReplaceable; | ||
| 1273 | |||
| 1274 | function isPartial | ||
| 1275 | input String cl; | ||
| 1276 | output Boolean res; | ||
| 1277 | algorithm | ||
| 1278 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isPartial", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1279 | end isPartial; | ||
| 1280 | |||
| 1281 | function isFunction | ||
| 1282 | input String cl; | ||
| 1283 | output Boolean res; | ||
| 1284 | algorithm | ||
| 1285 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isFunction", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1286 | end isFunction; | ||
| 1287 | |||
| 1288 | function isBlock | ||
| 1289 | input String cl; | ||
| 1290 | output Boolean res; | ||
| 1291 | algorithm | ||
| 1292 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isBlock", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1293 | end isBlock; | ||
| 1294 | |||
| 1295 | function isRecord | ||
| 1296 | input String cl; | ||
| 1297 | output Boolean res; | ||
| 1298 | algorithm | ||
| 1299 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isRecord", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1300 | end isRecord; | ||
| 1301 | |||
| 1302 | function isClass | ||
| 1303 | input String cl; | ||
| 1304 | output Boolean res; | ||
| 1305 | algorithm | ||
| 1306 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1307 | end isClass; | ||
| 1308 | |||
| 1309 | function isPackage | ||
| 1310 | input String cl; | ||
| 1311 | output Boolean res; | ||
| 1312 | algorithm | ||
| 1313 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isPackage", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1314 | end isPackage; | ||
| 1315 | |||
| 1316 | function isType | ||
| 1317 | input String cl; | ||
| 1318 | output Boolean res; | ||
| 1319 | algorithm | ||
| 1320 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isType", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1321 | end isType; | ||
| 1322 | |||
| 1323 | function getClassRestriction | ||
| 1324 | input String cl; | ||
| 1325 | output String res; | ||
| 1326 | algorithm | ||
| 1327 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getClassRestriction", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1328 | end getClassRestriction; | ||
| 1329 | |||
| 1330 | function existClass | ||
| 1331 | input String cl; | ||
| 1332 | output Boolean res; | ||
| 1333 | algorithm | ||
| 1334 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "existClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1335 | end existClass; | ||
| 1336 | |||
| 1337 | function basename | ||
| 1338 | input String path; | ||
| 1339 | output String res; | ||
| 1340 | algorithm | ||
| 1341 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "basename", {Values.STRING(path)}, dummyMsg); | |
| 1342 | end basename; | ||
| 1343 | |||
| 1344 | function dirname | ||
| 1345 | input String path; | ||
| 1346 | output String res; | ||
| 1347 | algorithm | ||
| 1348 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "dirname", {Values.STRING(path)}, dummyMsg); | |
| 1349 | end dirname; | ||
| 1350 | |||
| 1351 | function getClassComment | ||
| 1352 | input String cl; | ||
| 1353 | output String res; | ||
| 1354 | algorithm | ||
| 1355 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getClassComment", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1356 | end getClassComment; | ||
| 1357 | |||
| 1358 | function typeNameStrings | ||
| 1359 | input String cl; | ||
| 1360 | output list<String> res; | ||
| 1361 | protected | ||
| 1362 | Values.Value res_arr; | ||
| 1363 | algorithm | ||
| 1364 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "typeNameStrings", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1365 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1366 | end typeNameStrings; | ||
| 1367 | |||
| 1368 | function typeNameString | ||
| 1369 | input String cl; | ||
| 1370 | output String res; | ||
| 1371 | algorithm | ||
| 1372 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "typeNameString", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1373 | end typeNameString; | ||
| 1374 | |||
| 1375 | function stringTypeName | ||
| 1376 | input String str; | ||
| 1377 | output String res; | ||
| 1378 | protected | ||
| 1379 | Absyn.Path res_path; | ||
| 1380 | algorithm | ||
| 1381 | ✗ | (_,Values.CODE(Absyn.C_TYPENAME(path=res_path))) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "stringTypeName", {Values.STRING(str)}, dummyMsg); | |
| 1382 | ✗ | res := AbsynUtil.pathString(res_path); | |
| 1383 | end stringTypeName; | ||
| 1384 | |||
| 1385 | function getTimeStamp | ||
| 1386 | input String cl; | ||
| 1387 | output Real res1; | ||
| 1388 | output String res2; | ||
| 1389 | algorithm | ||
| 1390 | ✗ | (_,Values.TUPLE({Values.REAL(res1), Values.STRING(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getTimeStamp", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1391 | end getTimeStamp; | ||
| 1392 | |||
| 1393 | function setDocumentationAnnotation | ||
| 1394 | input String class_; | ||
| 1395 | input String info; | ||
| 1396 | input String revisions; | ||
| 1397 | output Boolean res; | ||
| 1398 | algorithm | ||
| 1399 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setDocumentationAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(info), Values.STRING(revisions)}, dummyMsg); | |
| 1400 | end setDocumentationAnnotation; | ||
| 1401 | |||
| 1402 | function getDocumentationAnnotation | ||
| 1403 | input String cl; | ||
| 1404 | output list<String> res; | ||
| 1405 | protected | ||
| 1406 | Values.Value res_arr; | ||
| 1407 | algorithm | ||
| 1408 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDocumentationAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 1409 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1410 | end getDocumentationAnnotation; | ||
| 1411 | |||
| 1412 | function iconv | ||
| 1413 | input String string; | ||
| 1414 | input String from; | ||
| 1415 | input String to; | ||
| 1416 | output String res; | ||
| 1417 | algorithm | ||
| 1418 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "iconv", {Values.STRING(string), Values.STRING(from), Values.STRING(to)}, dummyMsg); | |
| 1419 | end iconv; | ||
| 1420 | |||
| 1421 | function getNthImport | ||
| 1422 | input String class_; | ||
| 1423 | input Integer index; | ||
| 1424 | output list<String> res; | ||
| 1425 | protected | ||
| 1426 | Values.Value res_arr; | ||
| 1427 | algorithm | ||
| 1428 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthImport", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1429 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1430 | end getNthImport; | ||
| 1431 | |||
| 1432 | function getImportedNames | ||
| 1433 | input String class_; | ||
| 1434 | output list<String> res1; | ||
| 1435 | output list<String> res2; | ||
| 1436 | protected | ||
| 1437 | Values.Value res1_arr; | ||
| 1438 | Values.Value res2_arr; | ||
| 1439 | algorithm | ||
| 1440 | ✗ | (_,Values.TUPLE({res1_arr, res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getImportedNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1441 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 1442 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 1443 | end getImportedNames; | ||
| 1444 | |||
| 1445 | function getMMfileTotalDependencies | ||
| 1446 | input String in_package_name; | ||
| 1447 | input String public_imports_dir; | ||
| 1448 | output list<String> res; | ||
| 1449 | protected | ||
| 1450 | Values.Value res_arr; | ||
| 1451 | algorithm | ||
| 1452 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getMMfileTotalDependencies", {Values.STRING(in_package_name), Values.STRING(public_imports_dir)}, dummyMsg); | |
| 1453 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1454 | end getMMfileTotalDependencies; | ||
| 1455 | |||
| 1456 | function getImportCount | ||
| 1457 | input String class_; | ||
| 1458 | output Integer res; | ||
| 1459 | algorithm | ||
| 1460 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getImportCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1461 | end getImportCount; | ||
| 1462 | |||
| 1463 | function getNthAnnotationString | ||
| 1464 | input String class_; | ||
| 1465 | input Integer index; | ||
| 1466 | output String res; | ||
| 1467 | algorithm | ||
| 1468 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthAnnotationString", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1469 | end getNthAnnotationString; | ||
| 1470 | |||
| 1471 | function getAnnotationCount | ||
| 1472 | input String class_; | ||
| 1473 | output Integer res; | ||
| 1474 | algorithm | ||
| 1475 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAnnotationCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1476 | end getAnnotationCount; | ||
| 1477 | |||
| 1478 | function getNthInitialEquationItem | ||
| 1479 | input String class_; | ||
| 1480 | input Integer index; | ||
| 1481 | output String res; | ||
| 1482 | algorithm | ||
| 1483 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthInitialEquationItem", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1484 | end getNthInitialEquationItem; | ||
| 1485 | |||
| 1486 | function getInitialEquationItemsCount | ||
| 1487 | input String class_; | ||
| 1488 | output Integer res; | ||
| 1489 | algorithm | ||
| 1490 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInitialEquationItemsCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1491 | end getInitialEquationItemsCount; | ||
| 1492 | |||
| 1493 | function getNthEquationItem | ||
| 1494 | input String class_; | ||
| 1495 | input Integer index; | ||
| 1496 | output String res; | ||
| 1497 | algorithm | ||
| 1498 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthEquationItem", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1499 | end getNthEquationItem; | ||
| 1500 | |||
| 1501 | function getEquationItemsCount | ||
| 1502 | input String class_; | ||
| 1503 | output Integer res; | ||
| 1504 | algorithm | ||
| 1505 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getEquationItemsCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1506 | end getEquationItemsCount; | ||
| 1507 | |||
| 1508 | function getNthInitialEquation | ||
| 1509 | input String class_; | ||
| 1510 | input Integer index; | ||
| 1511 | output String res; | ||
| 1512 | algorithm | ||
| 1513 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthInitialEquation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1514 | end getNthInitialEquation; | ||
| 1515 | |||
| 1516 | function getInitialEquationCount | ||
| 1517 | input String class_; | ||
| 1518 | output Integer res; | ||
| 1519 | algorithm | ||
| 1520 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInitialEquationCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1521 | end getInitialEquationCount; | ||
| 1522 | |||
| 1523 | function getNthEquation | ||
| 1524 | input String class_; | ||
| 1525 | input Integer index; | ||
| 1526 | output String res; | ||
| 1527 | algorithm | ||
| 1528 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthEquation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1529 | end getNthEquation; | ||
| 1530 | |||
| 1531 | function getEquationCount | ||
| 1532 | input String class_; | ||
| 1533 | output Integer res; | ||
| 1534 | algorithm | ||
| 1535 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getEquationCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1536 | end getEquationCount; | ||
| 1537 | |||
| 1538 | function getNthInitialAlgorithmItem | ||
| 1539 | input String class_; | ||
| 1540 | input Integer index; | ||
| 1541 | output String res; | ||
| 1542 | algorithm | ||
| 1543 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthInitialAlgorithmItem", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1544 | end getNthInitialAlgorithmItem; | ||
| 1545 | |||
| 1546 | function getInitialAlgorithmItemsCount | ||
| 1547 | input String class_; | ||
| 1548 | output Integer res; | ||
| 1549 | algorithm | ||
| 1550 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInitialAlgorithmItemsCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1551 | end getInitialAlgorithmItemsCount; | ||
| 1552 | |||
| 1553 | function getNthAlgorithmItem | ||
| 1554 | input String class_; | ||
| 1555 | input Integer index; | ||
| 1556 | output String res; | ||
| 1557 | algorithm | ||
| 1558 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthAlgorithmItem", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1559 | end getNthAlgorithmItem; | ||
| 1560 | |||
| 1561 | function getAlgorithmItemsCount | ||
| 1562 | input String class_; | ||
| 1563 | output Integer res; | ||
| 1564 | algorithm | ||
| 1565 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAlgorithmItemsCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1566 | end getAlgorithmItemsCount; | ||
| 1567 | |||
| 1568 | function getNthInitialAlgorithm | ||
| 1569 | input String class_; | ||
| 1570 | input Integer index; | ||
| 1571 | output String res; | ||
| 1572 | algorithm | ||
| 1573 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthInitialAlgorithm", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1574 | end getNthInitialAlgorithm; | ||
| 1575 | |||
| 1576 | function getInitialAlgorithmCount | ||
| 1577 | input String class_; | ||
| 1578 | output Integer res; | ||
| 1579 | algorithm | ||
| 1580 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInitialAlgorithmCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1581 | end getInitialAlgorithmCount; | ||
| 1582 | |||
| 1583 | function getNthAlgorithm | ||
| 1584 | input String class_; | ||
| 1585 | input Integer index; | ||
| 1586 | output String res; | ||
| 1587 | algorithm | ||
| 1588 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthAlgorithm", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.INTEGER(index)}, dummyMsg); | |
| 1589 | end getNthAlgorithm; | ||
| 1590 | |||
| 1591 | function getAlgorithmCount | ||
| 1592 | input String class_; | ||
| 1593 | output Integer res; | ||
| 1594 | algorithm | ||
| 1595 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAlgorithmCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1596 | end getAlgorithmCount; | ||
| 1597 | |||
| 1598 | function updateEquation | ||
| 1599 | input String className; | ||
| 1600 | input String oldEq; | ||
| 1601 | input String newEq; | ||
| 1602 | input Boolean matchAll; | ||
| 1603 | input Boolean matchShallow; | ||
| 1604 | input Boolean matchDescription; | ||
| 1605 | input Boolean mergeDescription; | ||
| 1606 | output Boolean res; | ||
| 1607 | algorithm | ||
| 1608 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "updateEquation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(oldEq), Values.STRING(newEq), Values.BOOL(matchAll), Values.BOOL(matchShallow), Values.BOOL(matchDescription), Values.BOOL(mergeDescription)}, dummyMsg); | |
| 1609 | end updateEquation; | ||
| 1610 | |||
| 1611 | function addEquation | ||
| 1612 | input String className; | ||
| 1613 | input String eq; | ||
| 1614 | input Boolean isInitial; | ||
| 1615 | output Boolean res; | ||
| 1616 | algorithm | ||
| 1617 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "addEquation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(eq), Values.BOOL(isInitial)}, dummyMsg); | |
| 1618 | end addEquation; | ||
| 1619 | |||
| 1620 | function getConnectionList | ||
| 1621 | input String className; | ||
| 1622 | output list<list<String>> res; | ||
| 1623 | protected | ||
| 1624 | Values.Value res_arr; | ||
| 1625 | algorithm | ||
| 1626 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getConnectionList", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1627 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1628 | end getConnectionList; | ||
| 1629 | |||
| 1630 | function getNthConnection | ||
| 1631 | input String className; | ||
| 1632 | input Integer index; | ||
| 1633 | output list<String> res; | ||
| 1634 | protected | ||
| 1635 | Values.Value res_arr; | ||
| 1636 | algorithm | ||
| 1637 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthConnection", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.INTEGER(index)}, dummyMsg); | |
| 1638 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1639 | end getNthConnection; | ||
| 1640 | |||
| 1641 | function getConnectionCount | ||
| 1642 | input String className; | ||
| 1643 | output Integer res; | ||
| 1644 | algorithm | ||
| 1645 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getConnectionCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1646 | end getConnectionCount; | ||
| 1647 | |||
| 1648 | function updateConnectionNames | ||
| 1649 | input String className; | ||
| 1650 | input String from; | ||
| 1651 | input String to; | ||
| 1652 | input String fromNew; | ||
| 1653 | input String toNew; | ||
| 1654 | output Boolean res; | ||
| 1655 | algorithm | ||
| 1656 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "updateConnectionNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(from), Values.STRING(to), Values.STRING(fromNew), Values.STRING(toNew)}, dummyMsg); | |
| 1657 | end updateConnectionNames; | ||
| 1658 | |||
| 1659 | function updateConnectionAnnotation | ||
| 1660 | input String className; | ||
| 1661 | input String from; | ||
| 1662 | input String to; | ||
| 1663 | input String annotate; | ||
| 1664 | output Boolean res; | ||
| 1665 | algorithm | ||
| 1666 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "updateConnectionAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(from), Values.STRING(to), Values.STRING(annotate)}, dummyMsg); | |
| 1667 | end updateConnectionAnnotation; | ||
| 1668 | |||
| 1669 | function getConnectorCount | ||
| 1670 | input String className; | ||
| 1671 | output Integer res; | ||
| 1672 | algorithm | ||
| 1673 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getConnectorCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 1674 | end getConnectorCount; | ||
| 1675 | |||
| 1676 | function setComponentProperties | ||
| 1677 | input String className; | ||
| 1678 | input String componentName; | ||
| 1679 | input list<Boolean> prefixArray; | ||
| 1680 | input list<String> variability; | ||
| 1681 | input list<Boolean> innerOuter; | ||
| 1682 | input list<String> direction; | ||
| 1683 | output Boolean res; | ||
| 1684 | algorithm | ||
| 1685 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setComponentProperties", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), ValuesMake.makeArray(list(Values.BOOL(prefixArray_iter) for prefixArray_iter in prefixArray)), ValuesMake.makeArray(list(Values.STRING(variability_iter) for variability_iter in variability)), ValuesMake.makeArray(list(Values.BOOL(innerOuter_iter) for innerOuter_iter in innerOuter)), ValuesMake.makeArray(list(Values.STRING(direction_iter) for direction_iter in direction))}, dummyMsg); | |
| 1686 | end setComponentProperties; | ||
| 1687 | |||
| 1688 | function setComponentComment | ||
| 1689 | input String className; | ||
| 1690 | input String componentName; | ||
| 1691 | input String comment; | ||
| 1692 | output Boolean res; | ||
| 1693 | algorithm | ||
| 1694 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setComponentComment", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), Values.STRING(comment)}, dummyMsg); | |
| 1695 | end setComponentComment; | ||
| 1696 | |||
| 1697 | function getComponentComment | ||
| 1698 | input String className; | ||
| 1699 | input String componentName; | ||
| 1700 | output String res; | ||
| 1701 | algorithm | ||
| 1702 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponentComment", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName)))}, dummyMsg); | |
| 1703 | end getComponentComment; | ||
| 1704 | |||
| 1705 | function removeExtendsModifiers | ||
| 1706 | input String className; | ||
| 1707 | input String baseClassName; | ||
| 1708 | input Boolean keepRedeclares; | ||
| 1709 | output Boolean res; | ||
| 1710 | algorithm | ||
| 1711 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "removeExtendsModifiers", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(baseClassName))), Values.BOOL(keepRedeclares)}, dummyMsg); | |
| 1712 | end removeExtendsModifiers; | ||
| 1713 | |||
| 1714 | function getInstantiatedParametersAndValues | ||
| 1715 | input String cls; | ||
| 1716 | output list<String> res; | ||
| 1717 | protected | ||
| 1718 | Values.Value res_arr; | ||
| 1719 | algorithm | ||
| 1720 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInstantiatedParametersAndValues", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cls)))}, dummyMsg); | |
| 1721 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1722 | end getInstantiatedParametersAndValues; | ||
| 1723 | |||
| 1724 | function getElementAnnotation | ||
| 1725 | input String elementName; | ||
| 1726 | output String res; | ||
| 1727 | algorithm | ||
| 1728 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getElementAnnotation", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(elementName)))}, dummyMsg); | |
| 1729 | end getElementAnnotation; | ||
| 1730 | |||
| 1731 | function getNthComponentCondition | ||
| 1732 | input String className; | ||
| 1733 | input Integer n; | ||
| 1734 | output String res; | ||
| 1735 | algorithm | ||
| 1736 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNthComponentCondition", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.INTEGER(n)}, dummyMsg); | |
| 1737 | end getNthComponentCondition; | ||
| 1738 | |||
| 1739 | function getComponentCount | ||
| 1740 | input String classPath; | ||
| 1741 | output Integer res; | ||
| 1742 | algorithm | ||
| 1743 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponentCount", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(classPath)))}, dummyMsg); | |
| 1744 | end getComponentCount; | ||
| 1745 | |||
| 1746 | function isExtendsModifierFinal | ||
| 1747 | input String className; | ||
| 1748 | input String extendsName; | ||
| 1749 | input String modifierName; | ||
| 1750 | output Boolean res; | ||
| 1751 | algorithm | ||
| 1752 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isExtendsModifierFinal", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(extendsName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifierName)))}, dummyMsg); | |
| 1753 | end isExtendsModifierFinal; | ||
| 1754 | |||
| 1755 | function removeElementModifiers | ||
| 1756 | input String className; | ||
| 1757 | input String componentName; | ||
| 1758 | input Boolean keepRedeclares; | ||
| 1759 | output Boolean res; | ||
| 1760 | algorithm | ||
| 1761 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "removeElementModifiers", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(componentName), Values.BOOL(keepRedeclares)}, dummyMsg); | |
| 1762 | end removeElementModifiers; | ||
| 1763 | |||
| 1764 | function getElementModifierValues | ||
| 1765 | input String className; | ||
| 1766 | input String modifier; | ||
| 1767 | output String res; | ||
| 1768 | algorithm | ||
| 1769 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getElementModifierValues", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifier)))}, dummyMsg); | |
| 1770 | end getElementModifierValues; | ||
| 1771 | |||
| 1772 | function getElementModifierValue | ||
| 1773 | input String className; | ||
| 1774 | input String modifier; | ||
| 1775 | output String res; | ||
| 1776 | algorithm | ||
| 1777 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getElementModifierValue", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifier)))}, dummyMsg); | |
| 1778 | end getElementModifierValue; | ||
| 1779 | |||
| 1780 | function getExtendsModifierNames | ||
| 1781 | input String className; | ||
| 1782 | input String extendsName; | ||
| 1783 | input Boolean useQuotes; | ||
| 1784 | output String res; | ||
| 1785 | algorithm | ||
| 1786 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getExtendsModifierNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(extendsName))), Values.BOOL(useQuotes)}, dummyMsg); | |
| 1787 | end getExtendsModifierNames; | ||
| 1788 | |||
| 1789 | function getElementModifierNames | ||
| 1790 | input String className; | ||
| 1791 | input String elementName; | ||
| 1792 | output list<String> res; | ||
| 1793 | protected | ||
| 1794 | Values.Value res_arr; | ||
| 1795 | algorithm | ||
| 1796 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getElementModifierNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(elementName)}, dummyMsg); | |
| 1797 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1798 | end getElementModifierNames; | ||
| 1799 | |||
| 1800 | function removeComponentModifiers | ||
| 1801 | input String class_; | ||
| 1802 | input String componentName; | ||
| 1803 | input Boolean keepRedeclares; | ||
| 1804 | output Boolean res; | ||
| 1805 | algorithm | ||
| 1806 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "removeComponentModifiers", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(componentName), Values.BOOL(keepRedeclares)}, dummyMsg); | |
| 1807 | end removeComponentModifiers; | ||
| 1808 | |||
| 1809 | function getComponentModifierValues | ||
| 1810 | input String class_; | ||
| 1811 | input String modifier; | ||
| 1812 | output String res; | ||
| 1813 | algorithm | ||
| 1814 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponentModifierValues", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifier)))}, dummyMsg); | |
| 1815 | end getComponentModifierValues; | ||
| 1816 | |||
| 1817 | function getComponentModifierValue | ||
| 1818 | input String class_; | ||
| 1819 | input String modifier; | ||
| 1820 | output String res; | ||
| 1821 | algorithm | ||
| 1822 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponentModifierValue", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modifier)))}, dummyMsg); | |
| 1823 | end getComponentModifierValue; | ||
| 1824 | |||
| 1825 | function getComponentModifierNames | ||
| 1826 | input String class_; | ||
| 1827 | input String componentName; | ||
| 1828 | output list<String> res; | ||
| 1829 | protected | ||
| 1830 | Values.Value res_arr; | ||
| 1831 | algorithm | ||
| 1832 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponentModifierNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(componentName)}, dummyMsg); | |
| 1833 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1834 | end getComponentModifierNames; | ||
| 1835 | |||
| 1836 | function getElements | ||
| 1837 | input String className; | ||
| 1838 | input Boolean useQuotes; | ||
| 1839 | algorithm | ||
| 1840 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getElements", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(useQuotes)}, dummyMsg); | |
| 1841 | end getElements; | ||
| 1842 | |||
| 1843 | function getComponents | ||
| 1844 | input String className; | ||
| 1845 | input Boolean useQuotes; | ||
| 1846 | algorithm | ||
| 1847 | ✗ | (_,Values.NORETCALL()) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getComponents", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(useQuotes)}, dummyMsg); | |
| 1848 | end getComponents; | ||
| 1849 | |||
| 1850 | function getParameterValue | ||
| 1851 | input String class_; | ||
| 1852 | input String parameterName; | ||
| 1853 | output String res; | ||
| 1854 | algorithm | ||
| 1855 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getParameterValue", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(parameterName)}, dummyMsg); | |
| 1856 | end getParameterValue; | ||
| 1857 | |||
| 1858 | function getParameterNames | ||
| 1859 | input String class_; | ||
| 1860 | output list<String> res; | ||
| 1861 | protected | ||
| 1862 | Values.Value res_arr; | ||
| 1863 | algorithm | ||
| 1864 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getParameterNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 1865 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1866 | end getParameterNames; | ||
| 1867 | |||
| 1868 | function deleteComponent | ||
| 1869 | input String componentName; | ||
| 1870 | input String classPath; | ||
| 1871 | output Boolean res; | ||
| 1872 | algorithm | ||
| 1873 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deleteComponent", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(componentName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(classPath)))}, dummyMsg); | |
| 1874 | end deleteComponent; | ||
| 1875 | |||
| 1876 | function closeSimulationResultFile | ||
| 1877 | output Boolean res; | ||
| 1878 | algorithm | ||
| 1879 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "closeSimulationResultFile", {}, dummyMsg); | |
| 1880 | end closeSimulationResultFile; | ||
| 1881 | |||
| 1882 | function checkCodeGraph | ||
| 1883 | input String graphfile; | ||
| 1884 | input String codefile; | ||
| 1885 | output list<String> res; | ||
| 1886 | protected | ||
| 1887 | Values.Value res_arr; | ||
| 1888 | algorithm | ||
| 1889 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "checkCodeGraph", {Values.STRING(graphfile), Values.STRING(codefile)}, dummyMsg); | |
| 1890 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1891 | end checkCodeGraph; | ||
| 1892 | |||
| 1893 | function checkTaskGraph | ||
| 1894 | input String filename; | ||
| 1895 | input String reffilename; | ||
| 1896 | output list<String> res; | ||
| 1897 | protected | ||
| 1898 | Values.Value res_arr; | ||
| 1899 | algorithm | ||
| 1900 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "checkTaskGraph", {Values.STRING(filename), Values.STRING(reffilename)}, dummyMsg); | |
| 1901 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1902 | end checkTaskGraph; | ||
| 1903 | |||
| 1904 | function diffSimulationResultsHtml | ||
| 1905 | input String var; | ||
| 1906 | input String actualFile; | ||
| 1907 | input String expectedFile; | ||
| 1908 | input Real relTol; | ||
| 1909 | input Real relTolDiffMinMax; | ||
| 1910 | input Real rangeDelta; | ||
| 1911 | output String res; | ||
| 1912 | algorithm | ||
| 1913 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "diffSimulationResultsHtml", {Values.STRING(var), Values.STRING(actualFile), Values.STRING(expectedFile), Values.REAL(relTol), Values.REAL(relTolDiffMinMax), Values.REAL(rangeDelta)}, dummyMsg); | |
| 1914 | end diffSimulationResultsHtml; | ||
| 1915 | |||
| 1916 | function diffSimulationResults | ||
| 1917 | input String actualFile; | ||
| 1918 | input String expectedFile; | ||
| 1919 | input String diffPrefix; | ||
| 1920 | input Real relTol; | ||
| 1921 | input Real relTolDiffMinMax; | ||
| 1922 | input Real rangeDelta; | ||
| 1923 | input list<String> vars; | ||
| 1924 | input Boolean keepEqualResults; | ||
| 1925 | output Boolean res1; | ||
| 1926 | output list<String> res2; | ||
| 1927 | protected | ||
| 1928 | Values.Value res2_arr; | ||
| 1929 | algorithm | ||
| 1930 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "diffSimulationResults", {Values.STRING(actualFile), Values.STRING(expectedFile), Values.STRING(diffPrefix), Values.REAL(relTol), Values.REAL(relTolDiffMinMax), Values.REAL(rangeDelta), ValuesMake.makeArray(list(Values.STRING(vars_iter) for vars_iter in vars)), Values.BOOL(keepEqualResults)}, dummyMsg); | |
| 1931 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 1932 | end diffSimulationResults; | ||
| 1933 | |||
| 1934 | function deltaSimulationResults | ||
| 1935 | input String filename; | ||
| 1936 | input String reffilename; | ||
| 1937 | input String method; | ||
| 1938 | input list<String> vars; | ||
| 1939 | output Real res; | ||
| 1940 | algorithm | ||
| 1941 | ✗ | (_,Values.REAL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deltaSimulationResults", {Values.STRING(filename), Values.STRING(reffilename), Values.STRING(method), ValuesMake.makeArray(list(Values.STRING(vars_iter) for vars_iter in vars))}, dummyMsg); | |
| 1942 | end deltaSimulationResults; | ||
| 1943 | |||
| 1944 | function compareSimulationResults | ||
| 1945 | input String filename; | ||
| 1946 | input String reffilename; | ||
| 1947 | input String logfilename; | ||
| 1948 | input Real relTol; | ||
| 1949 | input Real absTol; | ||
| 1950 | input list<String> vars; | ||
| 1951 | output list<String> res; | ||
| 1952 | protected | ||
| 1953 | Values.Value res_arr; | ||
| 1954 | algorithm | ||
| 1955 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "compareSimulationResults", {Values.STRING(filename), Values.STRING(reffilename), Values.STRING(logfilename), Values.REAL(relTol), Values.REAL(absTol), ValuesMake.makeArray(list(Values.STRING(vars_iter) for vars_iter in vars))}, dummyMsg); | |
| 1956 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1957 | end compareSimulationResults; | ||
| 1958 | |||
| 1959 | function filterSimulationResults | ||
| 1960 | input String inFile; | ||
| 1961 | input String outFile; | ||
| 1962 | input list<String> vars; | ||
| 1963 | input Integer numberOfIntervals; | ||
| 1964 | input Boolean removeDescription; | ||
| 1965 | input Boolean hintReadAllVars; | ||
| 1966 | output Boolean res; | ||
| 1967 | algorithm | ||
| 1968 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "filterSimulationResults", {Values.STRING(inFile), Values.STRING(outFile), ValuesMake.makeArray(list(Values.STRING(vars_iter) for vars_iter in vars)), Values.INTEGER(numberOfIntervals), Values.BOOL(removeDescription), Values.BOOL(hintReadAllVars)}, dummyMsg); | |
| 1969 | end filterSimulationResults; | ||
| 1970 | |||
| 1971 | function readSimulationResultVars | ||
| 1972 | input String fileName; | ||
| 1973 | input Boolean readParameters; | ||
| 1974 | input Boolean openmodelicaStyle; | ||
| 1975 | output list<String> res; | ||
| 1976 | protected | ||
| 1977 | Values.Value res_arr; | ||
| 1978 | algorithm | ||
| 1979 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "readSimulationResultVars", {Values.STRING(fileName), Values.BOOL(readParameters), Values.BOOL(openmodelicaStyle)}, dummyMsg); | |
| 1980 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 1981 | end readSimulationResultVars; | ||
| 1982 | |||
| 1983 | function readSimulationResultSize | ||
| 1984 | input String fileName; | ||
| 1985 | output Integer res; | ||
| 1986 | algorithm | ||
| 1987 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "readSimulationResultSize", {Values.STRING(fileName)}, dummyMsg); | |
| 1988 | end readSimulationResultSize; | ||
| 1989 | |||
| 1990 | function plotAll | ||
| 1991 | input Boolean externalWindow; | ||
| 1992 | input String fileName; | ||
| 1993 | input String title; | ||
| 1994 | input String grid; | ||
| 1995 | input Boolean logX; | ||
| 1996 | input Boolean logY; | ||
| 1997 | input String xLabel; | ||
| 1998 | input String yLabel; | ||
| 1999 | input list<Real> xRange; | ||
| 2000 | input list<Real> yRange; | ||
| 2001 | input Real curveWidth; | ||
| 2002 | input Integer curveStyle; | ||
| 2003 | input String legendPosition; | ||
| 2004 | input String footer; | ||
| 2005 | input Boolean autoScale; | ||
| 2006 | input Boolean forceOMPlot; | ||
| 2007 | input String yAxis; | ||
| 2008 | input String yLabelRight; | ||
| 2009 | input list<Real> yRangeRight; | ||
| 2010 | output Boolean res; | ||
| 2011 | algorithm | ||
| 2012 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "plotAll", {Values.BOOL(externalWindow), Values.STRING(fileName), Values.STRING(title), Values.STRING(grid), Values.BOOL(logX), Values.BOOL(logY), Values.STRING(xLabel), Values.STRING(yLabel), ValuesMake.makeArray(list(Values.REAL(xRange_iter) for xRange_iter in xRange)), ValuesMake.makeArray(list(Values.REAL(yRange_iter) for yRange_iter in yRange)), Values.REAL(curveWidth), Values.INTEGER(curveStyle), Values.STRING(legendPosition), Values.STRING(footer), Values.BOOL(autoScale), Values.BOOL(forceOMPlot), Values.STRING(yAxis), Values.STRING(yLabelRight), ValuesMake.makeArray(list(Values.REAL(yRangeRight_iter) for yRangeRight_iter in yRangeRight))}, dummyMsg); | |
| 2013 | end plotAll; | ||
| 2014 | |||
| 2015 | function getReplaceableChoices | ||
| 2016 | input String baseClass; | ||
| 2017 | input String parentClass; | ||
| 2018 | input Boolean includePartial; | ||
| 2019 | input Boolean sort; | ||
| 2020 | output list<list<String>> res; | ||
| 2021 | protected | ||
| 2022 | Values.Value res_arr; | ||
| 2023 | algorithm | ||
| 2024 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getReplaceableChoices", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(baseClass))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(parentClass))), Values.BOOL(includePartial), Values.BOOL(sort)}, dummyMsg); | |
| 2025 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2026 | end getReplaceableChoices; | ||
| 2027 | |||
| 2028 | function getAllSubtypeOf | ||
| 2029 | input String className; | ||
| 2030 | input String parentClass; | ||
| 2031 | input Boolean qualified; | ||
| 2032 | input Boolean includePartial; | ||
| 2033 | input Boolean sort; | ||
| 2034 | output list<String> res; | ||
| 2035 | protected | ||
| 2036 | Values.Value res_arr; | ||
| 2037 | algorithm | ||
| 2038 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAllSubtypeOf", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(parentClass))), Values.BOOL(qualified), Values.BOOL(includePartial), Values.BOOL(sort)}, dummyMsg); | |
| 2039 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2040 | end getAllSubtypeOf; | ||
| 2041 | |||
| 2042 | function getPackages | ||
| 2043 | input String class_; | ||
| 2044 | output list<String> res; | ||
| 2045 | protected | ||
| 2046 | Values.Value res_arr; | ||
| 2047 | algorithm | ||
| 2048 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getPackages", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 2049 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2050 | end getPackages; | ||
| 2051 | |||
| 2052 | function getUsedClassNames | ||
| 2053 | input String className; | ||
| 2054 | output list<String> res; | ||
| 2055 | protected | ||
| 2056 | Values.Value res_arr; | ||
| 2057 | algorithm | ||
| 2058 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getUsedClassNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2059 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2060 | end getUsedClassNames; | ||
| 2061 | |||
| 2062 | function getClassNames | ||
| 2063 | input String class_; | ||
| 2064 | input Boolean recursive; | ||
| 2065 | input Boolean qualified; | ||
| 2066 | input Boolean sort; | ||
| 2067 | input Boolean builtin; | ||
| 2068 | input Boolean showProtected; | ||
| 2069 | input Boolean includeConstants; | ||
| 2070 | output list<String> res; | ||
| 2071 | protected | ||
| 2072 | Values.Value res_arr; | ||
| 2073 | algorithm | ||
| 2074 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getClassNames", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.BOOL(recursive), Values.BOOL(qualified), Values.BOOL(sort), Values.BOOL(builtin), Values.BOOL(showProtected), Values.BOOL(includeConstants)}, dummyMsg); | |
| 2075 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2076 | end getClassNames; | ||
| 2077 | |||
| 2078 | function setClassComment | ||
| 2079 | input String class_; | ||
| 2080 | input String filename; | ||
| 2081 | output Boolean res; | ||
| 2082 | algorithm | ||
| 2083 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setClassComment", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(filename)}, dummyMsg); | |
| 2084 | end setClassComment; | ||
| 2085 | |||
| 2086 | function isShortDefinition | ||
| 2087 | input String class_; | ||
| 2088 | output Boolean res; | ||
| 2089 | algorithm | ||
| 2090 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "isShortDefinition", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 2091 | end isShortDefinition; | ||
| 2092 | |||
| 2093 | function setSourceFile | ||
| 2094 | input String class_; | ||
| 2095 | input String filename; | ||
| 2096 | output Boolean res; | ||
| 2097 | algorithm | ||
| 2098 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setSourceFile", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.STRING(filename)}, dummyMsg); | |
| 2099 | end setSourceFile; | ||
| 2100 | |||
| 2101 | function getSourceFile | ||
| 2102 | input String class_; | ||
| 2103 | output String res; | ||
| 2104 | algorithm | ||
| 2105 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getSourceFile", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_)))}, dummyMsg); | |
| 2106 | end getSourceFile; | ||
| 2107 | |||
| 2108 | function refactorClass | ||
| 2109 | input String className; | ||
| 2110 | output String res; | ||
| 2111 | algorithm | ||
| 2112 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "refactorClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2113 | end refactorClass; | ||
| 2114 | |||
| 2115 | function deleteClass | ||
| 2116 | input String className; | ||
| 2117 | output Boolean res; | ||
| 2118 | algorithm | ||
| 2119 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deleteClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2120 | end deleteClass; | ||
| 2121 | |||
| 2122 | function renameClass | ||
| 2123 | input String oldName; | ||
| 2124 | input String newName; | ||
| 2125 | output list<String> res; | ||
| 2126 | protected | ||
| 2127 | Values.Value res_arr; | ||
| 2128 | algorithm | ||
| 2129 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "renameClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(oldName))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(newName)))}, dummyMsg); | |
| 2130 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2131 | end renameClass; | ||
| 2132 | |||
| 2133 | function copyClass | ||
| 2134 | input String className; | ||
| 2135 | input String newClassName; | ||
| 2136 | input String withIn; | ||
| 2137 | output Boolean res; | ||
| 2138 | algorithm | ||
| 2139 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "copyClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(newClassName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(withIn)))}, dummyMsg); | |
| 2140 | end copyClass; | ||
| 2141 | |||
| 2142 | function moveClassToBottom | ||
| 2143 | input String className; | ||
| 2144 | output Boolean res; | ||
| 2145 | algorithm | ||
| 2146 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "moveClassToBottom", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2147 | end moveClassToBottom; | ||
| 2148 | |||
| 2149 | function moveClassToTop | ||
| 2150 | input String className; | ||
| 2151 | output Boolean res; | ||
| 2152 | algorithm | ||
| 2153 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "moveClassToTop", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2154 | end moveClassToTop; | ||
| 2155 | |||
| 2156 | function moveClass | ||
| 2157 | input String className; | ||
| 2158 | input Integer offset; | ||
| 2159 | output Boolean res; | ||
| 2160 | algorithm | ||
| 2161 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "moveClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.INTEGER(offset)}, dummyMsg); | |
| 2162 | end moveClass; | ||
| 2163 | |||
| 2164 | function newModel | ||
| 2165 | input String className; | ||
| 2166 | input String withinPath; | ||
| 2167 | output Boolean res; | ||
| 2168 | algorithm | ||
| 2169 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "newModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(withinPath)))}, dummyMsg); | |
| 2170 | end newModel; | ||
| 2171 | |||
| 2172 | function createModel | ||
| 2173 | input String className; | ||
| 2174 | output Boolean res; | ||
| 2175 | algorithm | ||
| 2176 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "createModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2177 | end createModel; | ||
| 2178 | |||
| 2179 | function translateResidualsDAE | ||
| 2180 | input String className; | ||
| 2181 | input String fileNamePrefix; | ||
| 2182 | output Boolean res; | ||
| 2183 | algorithm | ||
| 2184 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "translateResidualsDAE", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(fileNamePrefix)}, dummyMsg); | |
| 2185 | end translateResidualsDAE; | ||
| 2186 | |||
| 2187 | function reduceTerms | ||
| 2188 | input String className; | ||
| 2189 | input Real startTime; | ||
| 2190 | input Real stopTime; | ||
| 2191 | input Integer numberOfIntervals; | ||
| 2192 | input Real tolerance; | ||
| 2193 | input String method; | ||
| 2194 | input String fileNamePrefix; | ||
| 2195 | input String options; | ||
| 2196 | input String outputFormat; | ||
| 2197 | input String variableFilter; | ||
| 2198 | input String cflags; | ||
| 2199 | input String simflags; | ||
| 2200 | input String labelstoCancel; | ||
| 2201 | output list<String> res; | ||
| 2202 | protected | ||
| 2203 | Values.Value res_arr; | ||
| 2204 | algorithm | ||
| 2205 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "reduceTerms", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.REAL(startTime), Values.REAL(stopTime), Values.INTEGER(numberOfIntervals), Values.REAL(tolerance), Values.STRING(method), Values.STRING(fileNamePrefix), Values.STRING(options), Values.STRING(outputFormat), Values.STRING(variableFilter), Values.STRING(cflags), Values.STRING(simflags), Values.STRING(labelstoCancel)}, dummyMsg); | |
| 2206 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2207 | end reduceTerms; | ||
| 2208 | |||
| 2209 | function buildLabel | ||
| 2210 | input String className; | ||
| 2211 | input Real startTime; | ||
| 2212 | input Real stopTime; | ||
| 2213 | input Integer numberOfIntervals; | ||
| 2214 | input Real tolerance; | ||
| 2215 | input String method; | ||
| 2216 | input String fileNamePrefix; | ||
| 2217 | input String options; | ||
| 2218 | input String outputFormat; | ||
| 2219 | input String variableFilter; | ||
| 2220 | input String cflags; | ||
| 2221 | input String simflags; | ||
| 2222 | output list<String> res; | ||
| 2223 | protected | ||
| 2224 | Values.Value res_arr; | ||
| 2225 | algorithm | ||
| 2226 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "buildLabel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.REAL(startTime), Values.REAL(stopTime), Values.INTEGER(numberOfIntervals), Values.REAL(tolerance), Values.STRING(method), Values.STRING(fileNamePrefix), Values.STRING(options), Values.STRING(outputFormat), Values.STRING(variableFilter), Values.STRING(cflags), Values.STRING(simflags)}, dummyMsg); | |
| 2227 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2228 | end buildLabel; | ||
| 2229 | |||
| 2230 | function buildEncryptedPackage | ||
| 2231 | input String className; | ||
| 2232 | input Boolean encrypt; | ||
| 2233 | output Boolean res; | ||
| 2234 | algorithm | ||
| 2235 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "buildEncryptedPackage", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(encrypt)}, dummyMsg); | |
| 2236 | end buildEncryptedPackage; | ||
| 2237 | |||
| 2238 | function buildModelFMU | ||
| 2239 | input String className; | ||
| 2240 | input String version; | ||
| 2241 | input String fmuType; | ||
| 2242 | input String fileNamePrefix; | ||
| 2243 | input list<String> platforms; | ||
| 2244 | input Boolean includeResources; | ||
| 2245 | input String method; | ||
| 2246 | output String res; | ||
| 2247 | algorithm | ||
| 2248 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "buildModelFMU", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(version), Values.STRING(fmuType), Values.STRING(fileNamePrefix), ValuesMake.makeArray(list(Values.STRING(platforms_iter) for platforms_iter in platforms)), Values.BOOL(includeResources), Values.STRING(method)}, dummyMsg); | |
| 2249 | end buildModelFMU; | ||
| 2250 | |||
| 2251 | function translateModelFMU | ||
| 2252 | input String className; | ||
| 2253 | input String version; | ||
| 2254 | input String fmuType; | ||
| 2255 | input String fileNamePrefix; | ||
| 2256 | input list<String> platforms; | ||
| 2257 | input Boolean includeResources; | ||
| 2258 | output Boolean res; | ||
| 2259 | algorithm | ||
| 2260 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "translateModelFMU", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(version), Values.STRING(fmuType), Values.STRING(fileNamePrefix), ValuesMake.makeArray(list(Values.STRING(platforms_iter) for platforms_iter in platforms)), Values.BOOL(includeResources)}, dummyMsg); | |
| 2261 | end translateModelFMU; | ||
| 2262 | |||
| 2263 | function importFMUModelDescription | ||
| 2264 | input String filename; | ||
| 2265 | input String workdir; | ||
| 2266 | input Integer loglevel; | ||
| 2267 | input Boolean fullPath; | ||
| 2268 | input Boolean debugLogging; | ||
| 2269 | input Boolean generateInputConnectors; | ||
| 2270 | input Boolean generateOutputConnectors; | ||
| 2271 | output String res; | ||
| 2272 | algorithm | ||
| 2273 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "importFMUModelDescription", {Values.STRING(filename), Values.STRING(workdir), Values.INTEGER(loglevel), Values.BOOL(fullPath), Values.BOOL(debugLogging), Values.BOOL(generateInputConnectors), Values.BOOL(generateOutputConnectors)}, dummyMsg); | |
| 2274 | end importFMUModelDescription; | ||
| 2275 | |||
| 2276 | function importFMU | ||
| 2277 | input String filename; | ||
| 2278 | input String workdir; | ||
| 2279 | input Integer loglevel; | ||
| 2280 | input Boolean fullPath; | ||
| 2281 | input Boolean debugLogging; | ||
| 2282 | input Boolean generateInputConnectors; | ||
| 2283 | input Boolean generateOutputConnectors; | ||
| 2284 | input String modelName; | ||
| 2285 | output String res; | ||
| 2286 | algorithm | ||
| 2287 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "importFMU", {Values.STRING(filename), Values.STRING(workdir), Values.INTEGER(loglevel), Values.BOOL(fullPath), Values.BOOL(debugLogging), Values.BOOL(generateInputConnectors), Values.BOOL(generateOutputConnectors), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(modelName)))}, dummyMsg); | |
| 2288 | end importFMU; | ||
| 2289 | |||
| 2290 | function solveLinearSystem | ||
| 2291 | input list<list<Real>> A; | ||
| 2292 | input list<Real> B; | ||
| 2293 | output list<Real> res1; | ||
| 2294 | output Integer res2; | ||
| 2295 | protected | ||
| 2296 | Values.Value res1_arr; | ||
| 2297 | algorithm | ||
| 2298 | ✗ | (_,Values.TUPLE({res1_arr, Values.INTEGER(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "solveLinearSystem", {ValuesMake.makeArray(list(ValuesMake.makeArray(list(Values.REAL(A_iter_iter) for A_iter_iter in A_iter)) for A_iter in A)), ValuesMake.makeArray(list(Values.REAL(B_iter) for B_iter in B))}, dummyMsg); | |
| 2299 | ✗ | res1 := list(match res1_arr_iter case Values.REAL() then res1_arr_iter.real; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 2300 | end solveLinearSystem; | ||
| 2301 | |||
| 2302 | function getLoadedLibraries | ||
| 2303 | output list<list<String>> res; | ||
| 2304 | protected | ||
| 2305 | Values.Value res_arr; | ||
| 2306 | algorithm | ||
| 2307 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getLoadedLibraries", {}, dummyMsg); | |
| 2308 | ✗ | res := list(list(match res_arr_iter_iter case Values.STRING() then res_arr_iter_iter.string; end match for res_arr_iter_iter in ValuesUtil.arrayValues(res_arr_iter)) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2309 | end getLoadedLibraries; | ||
| 2310 | |||
| 2311 | function uriToFilename | ||
| 2312 | input String uri; | ||
| 2313 | output String res; | ||
| 2314 | algorithm | ||
| 2315 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "uriToFilename", {Values.STRING(uri)}, dummyMsg); | |
| 2316 | end uriToFilename; | ||
| 2317 | |||
| 2318 | function realpath | ||
| 2319 | input String name; | ||
| 2320 | output String res; | ||
| 2321 | algorithm | ||
| 2322 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "realpath", {Values.STRING(name)}, dummyMsg); | |
| 2323 | end realpath; | ||
| 2324 | |||
| 2325 | function rewriteBlockCall | ||
| 2326 | input String className; | ||
| 2327 | input String inDefs; | ||
| 2328 | output Boolean res; | ||
| 2329 | algorithm | ||
| 2330 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "rewriteBlockCall", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(inDefs)))}, dummyMsg); | |
| 2331 | end rewriteBlockCall; | ||
| 2332 | |||
| 2333 | function generateVerificationScenarios | ||
| 2334 | input String path; | ||
| 2335 | output Boolean res; | ||
| 2336 | algorithm | ||
| 2337 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateVerificationScenarios", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(path)))}, dummyMsg); | |
| 2338 | end generateVerificationScenarios; | ||
| 2339 | |||
| 2340 | function inferBindings | ||
| 2341 | input String path; | ||
| 2342 | output Boolean res; | ||
| 2343 | algorithm | ||
| 2344 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "inferBindings", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(path)))}, dummyMsg); | |
| 2345 | end inferBindings; | ||
| 2346 | |||
| 2347 | function exportToFigaro | ||
| 2348 | input String path; | ||
| 2349 | input String directory; | ||
| 2350 | input String database; | ||
| 2351 | input String mode; | ||
| 2352 | input String options; | ||
| 2353 | input String processor; | ||
| 2354 | output Boolean res; | ||
| 2355 | algorithm | ||
| 2356 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "exportToFigaro", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(path))), Values.STRING(directory), Values.STRING(database), Values.STRING(mode), Values.STRING(options), Values.STRING(processor)}, dummyMsg); | |
| 2357 | end exportToFigaro; | ||
| 2358 | |||
| 2359 | function listFile | ||
| 2360 | input String class_; | ||
| 2361 | input Boolean nestedClasses; | ||
| 2362 | output String res; | ||
| 2363 | algorithm | ||
| 2364 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "listFile", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(class_))), Values.BOOL(nestedClasses)}, dummyMsg); | |
| 2365 | end listFile; | ||
| 2366 | |||
| 2367 | function stringReplace | ||
| 2368 | input String str; | ||
| 2369 | input String source; | ||
| 2370 | input String target; | ||
| 2371 | output String res; | ||
| 2372 | algorithm | ||
| 2373 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "stringReplace", {Values.STRING(str), Values.STRING(source), Values.STRING(target)}, dummyMsg); | |
| 2374 | end stringReplace; | ||
| 2375 | |||
| 2376 | function stringSplit | ||
| 2377 | input String string; | ||
| 2378 | input String token; | ||
| 2379 | output list<String> res; | ||
| 2380 | protected | ||
| 2381 | Values.Value res_arr; | ||
| 2382 | algorithm | ||
| 2383 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "stringSplit", {Values.STRING(string), Values.STRING(token)}, dummyMsg); | |
| 2384 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2385 | end stringSplit; | ||
| 2386 | |||
| 2387 | function strtok | ||
| 2388 | input String string; | ||
| 2389 | input String token; | ||
| 2390 | output list<String> res; | ||
| 2391 | protected | ||
| 2392 | Values.Value res_arr; | ||
| 2393 | algorithm | ||
| 2394 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "strtok", {Values.STRING(string), Values.STRING(token)}, dummyMsg); | |
| 2395 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2396 | end strtok; | ||
| 2397 | |||
| 2398 | function listVariables | ||
| 2399 | output list<String> res; | ||
| 2400 | protected | ||
| 2401 | Values.Value res_arr; | ||
| 2402 | algorithm | ||
| 2403 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "listVariables", {}, dummyMsg); | |
| 2404 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2405 | end listVariables; | ||
| 2406 | |||
| 2407 | function getDerivedUnits | ||
| 2408 | input String baseUnit; | ||
| 2409 | output list<String> res; | ||
| 2410 | protected | ||
| 2411 | Values.Value res_arr; | ||
| 2412 | algorithm | ||
| 2413 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDerivedUnits", {Values.STRING(baseUnit)}, dummyMsg); | |
| 2414 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2415 | end getDerivedUnits; | ||
| 2416 | |||
| 2417 | function convertUnits | ||
| 2418 | input String s1; | ||
| 2419 | input String s2; | ||
| 2420 | output Boolean res1; | ||
| 2421 | output Real res2; | ||
| 2422 | output Real res3; | ||
| 2423 | algorithm | ||
| 2424 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), Values.REAL(res2), Values.REAL(res3)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "convertUnits", {Values.STRING(s1), Values.STRING(s2)}, dummyMsg); | |
| 2425 | end convertUnits; | ||
| 2426 | |||
| 2427 | function dumpXMLDAE | ||
| 2428 | input String className; | ||
| 2429 | input String translationLevel; | ||
| 2430 | input Boolean addOriginalAdjacencyMatrix; | ||
| 2431 | input Boolean addSolvingInfo; | ||
| 2432 | input Boolean addMathMLCode; | ||
| 2433 | input Boolean dumpResiduals; | ||
| 2434 | input String fileNamePrefix; | ||
| 2435 | input String rewriteRulesFile; | ||
| 2436 | output Boolean res1; | ||
| 2437 | output String res2; | ||
| 2438 | algorithm | ||
| 2439 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), Values.STRING(res2)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "dumpXMLDAE", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.STRING(translationLevel), Values.BOOL(addOriginalAdjacencyMatrix), Values.BOOL(addSolvingInfo), Values.BOOL(addMathMLCode), Values.BOOL(dumpResiduals), Values.STRING(fileNamePrefix), Values.STRING(rewriteRulesFile)}, dummyMsg); | |
| 2440 | end dumpXMLDAE; | ||
| 2441 | |||
| 2442 | function translateGraphics | ||
| 2443 | input String className; | ||
| 2444 | output String res; | ||
| 2445 | algorithm | ||
| 2446 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "translateGraphics", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2447 | end translateGraphics; | ||
| 2448 | |||
| 2449 | function save | ||
| 2450 | input String className; | ||
| 2451 | output Boolean res; | ||
| 2452 | algorithm | ||
| 2453 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "save", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2454 | end save; | ||
| 2455 | |||
| 2456 | function saveTotalModelDebug | ||
| 2457 | input String filename; | ||
| 2458 | input String className; | ||
| 2459 | input Boolean stripAnnotations; | ||
| 2460 | input Boolean stripComments; | ||
| 2461 | input Boolean obfuscate; | ||
| 2462 | output Boolean res; | ||
| 2463 | algorithm | ||
| 2464 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "saveTotalModelDebug", {Values.STRING(filename), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(stripAnnotations), Values.BOOL(stripComments), Values.BOOL(obfuscate)}, dummyMsg); | |
| 2465 | end saveTotalModelDebug; | ||
| 2466 | |||
| 2467 | function getTotalModel | ||
| 2468 | input String className; | ||
| 2469 | input Boolean stripAnnotations; | ||
| 2470 | input Boolean stripComments; | ||
| 2471 | input Boolean obfuscate; | ||
| 2472 | output String res; | ||
| 2473 | algorithm | ||
| 2474 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getTotalModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(stripAnnotations), Values.BOOL(stripComments), Values.BOOL(obfuscate)}, dummyMsg); | |
| 2475 | end getTotalModel; | ||
| 2476 | |||
| 2477 | function previous_saveTotalModel | ||
| 2478 | input String fileName; | ||
| 2479 | input String className; | ||
| 2480 | input Boolean stripAnnotations; | ||
| 2481 | input Boolean stripComments; | ||
| 2482 | input Boolean obfuscate; | ||
| 2483 | output Boolean res; | ||
| 2484 | algorithm | ||
| 2485 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "previous_saveTotalModel", {Values.STRING(fileName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(stripAnnotations), Values.BOOL(stripComments), Values.BOOL(obfuscate)}, dummyMsg); | |
| 2486 | end previous_saveTotalModel; | ||
| 2487 | |||
| 2488 | function saveTotalModel | ||
| 2489 | input String fileName; | ||
| 2490 | input String className; | ||
| 2491 | input Boolean stripAnnotations; | ||
| 2492 | input Boolean stripComments; | ||
| 2493 | input Boolean obfuscate; | ||
| 2494 | output Boolean res; | ||
| 2495 | algorithm | ||
| 2496 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "saveTotalModel", {Values.STRING(fileName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(stripAnnotations), Values.BOOL(stripComments), Values.BOOL(obfuscate)}, dummyMsg); | |
| 2497 | end saveTotalModel; | ||
| 2498 | |||
| 2499 | function saveModel | ||
| 2500 | input String fileName; | ||
| 2501 | input String className; | ||
| 2502 | output Boolean res; | ||
| 2503 | algorithm | ||
| 2504 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "saveModel", {Values.STRING(fileName), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2505 | end saveModel; | ||
| 2506 | |||
| 2507 | function deleteFile | ||
| 2508 | input String fileName; | ||
| 2509 | output Boolean res; | ||
| 2510 | algorithm | ||
| 2511 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "deleteFile", {Values.STRING(fileName)}, dummyMsg); | |
| 2512 | end deleteFile; | ||
| 2513 | |||
| 2514 | function loadModel | ||
| 2515 | input String className; | ||
| 2516 | input list<String> priorityVersion; | ||
| 2517 | input Boolean notify; | ||
| 2518 | input String languageStandard; | ||
| 2519 | input Boolean requireExactVersion; | ||
| 2520 | output Boolean res; | ||
| 2521 | algorithm | ||
| 2522 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), ValuesMake.makeArray(list(Values.STRING(priorityVersion_iter) for priorityVersion_iter in priorityVersion)), Values.BOOL(notify), Values.STRING(languageStandard), Values.BOOL(requireExactVersion)}, dummyMsg); | |
| 2523 | end loadModel; | ||
| 2524 | |||
| 2525 | function getExternalFunctions | ||
| 2526 | input String className; | ||
| 2527 | output String res; | ||
| 2528 | algorithm | ||
| 2529 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getExternalFunctions", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2530 | end getExternalFunctions; | ||
| 2531 | |||
| 2532 | function generateCode | ||
| 2533 | input String className; | ||
| 2534 | output Boolean res; | ||
| 2535 | algorithm | ||
| 2536 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateCode", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2537 | end generateCode; | ||
| 2538 | |||
| 2539 | function instantiateModel | ||
| 2540 | input String className; | ||
| 2541 | output String res; | ||
| 2542 | algorithm | ||
| 2543 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "instantiateModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2544 | end instantiateModel; | ||
| 2545 | |||
| 2546 | function checkAllModelsRecursive | ||
| 2547 | input String className; | ||
| 2548 | input Boolean checkProtected; | ||
| 2549 | output String res; | ||
| 2550 | algorithm | ||
| 2551 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "checkAllModelsRecursive", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(checkProtected)}, dummyMsg); | |
| 2552 | end checkAllModelsRecursive; | ||
| 2553 | |||
| 2554 | function checkModel | ||
| 2555 | input String className; | ||
| 2556 | output String res; | ||
| 2557 | algorithm | ||
| 2558 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "checkModel", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className)))}, dummyMsg); | |
| 2559 | end checkModel; | ||
| 2560 | |||
| 2561 | function remove | ||
| 2562 | input String path; | ||
| 2563 | output Boolean res; | ||
| 2564 | algorithm | ||
| 2565 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "remove", {Values.STRING(path)}, dummyMsg); | |
| 2566 | end remove; | ||
| 2567 | |||
| 2568 | function copy | ||
| 2569 | input String source; | ||
| 2570 | input String destination; | ||
| 2571 | output Boolean res; | ||
| 2572 | algorithm | ||
| 2573 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "copy", {Values.STRING(source), Values.STRING(destination)}, dummyMsg); | |
| 2574 | end copy; | ||
| 2575 | |||
| 2576 | function mkdir | ||
| 2577 | input String newDirectory; | ||
| 2578 | output Boolean res; | ||
| 2579 | algorithm | ||
| 2580 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "mkdir", {Values.STRING(newDirectory)}, dummyMsg); | |
| 2581 | end mkdir; | ||
| 2582 | |||
| 2583 | function cd | ||
| 2584 | input String newWorkingDirectory; | ||
| 2585 | output String res; | ||
| 2586 | algorithm | ||
| 2587 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "cd", {Values.STRING(newWorkingDirectory)}, dummyMsg); | |
| 2588 | end cd; | ||
| 2589 | |||
| 2590 | function getLanguageStandard | ||
| 2591 | output String res; | ||
| 2592 | algorithm | ||
| 2593 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getLanguageStandard", {}, dummyMsg); | |
| 2594 | end getLanguageStandard; | ||
| 2595 | |||
| 2596 | function getOrderConnections | ||
| 2597 | output Boolean res; | ||
| 2598 | algorithm | ||
| 2599 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getOrderConnections", {}, dummyMsg); | |
| 2600 | end getOrderConnections; | ||
| 2601 | |||
| 2602 | function getShowAnnotations | ||
| 2603 | output Boolean res; | ||
| 2604 | algorithm | ||
| 2605 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getShowAnnotations", {}, dummyMsg); | |
| 2606 | end getShowAnnotations; | ||
| 2607 | |||
| 2608 | function setShowAnnotations | ||
| 2609 | input Boolean show; | ||
| 2610 | output Boolean res; | ||
| 2611 | algorithm | ||
| 2612 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setShowAnnotations", {Values.BOOL(show)}, dummyMsg); | |
| 2613 | end setShowAnnotations; | ||
| 2614 | |||
| 2615 | function getDefaultOpenCLDevice | ||
| 2616 | output Integer res; | ||
| 2617 | algorithm | ||
| 2618 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getDefaultOpenCLDevice", {}, dummyMsg); | |
| 2619 | end getDefaultOpenCLDevice; | ||
| 2620 | |||
| 2621 | function getVectorizationLimit | ||
| 2622 | output Integer res; | ||
| 2623 | algorithm | ||
| 2624 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getVectorizationLimit", {}, dummyMsg); | |
| 2625 | end getVectorizationLimit; | ||
| 2626 | |||
| 2627 | function setNoSimplify | ||
| 2628 | input Boolean noSimplify; | ||
| 2629 | output Boolean res; | ||
| 2630 | algorithm | ||
| 2631 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setNoSimplify", {Values.BOOL(noSimplify)}, dummyMsg); | |
| 2632 | end setNoSimplify; | ||
| 2633 | |||
| 2634 | function getNoSimplify | ||
| 2635 | output Boolean res; | ||
| 2636 | algorithm | ||
| 2637 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getNoSimplify", {}, dummyMsg); | |
| 2638 | end getNoSimplify; | ||
| 2639 | |||
| 2640 | function getAnnotationVersion | ||
| 2641 | output String res; | ||
| 2642 | algorithm | ||
| 2643 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAnnotationVersion", {}, dummyMsg); | |
| 2644 | end getAnnotationVersion; | ||
| 2645 | |||
| 2646 | function echo | ||
| 2647 | input Boolean setEcho; | ||
| 2648 | output Boolean res; | ||
| 2649 | algorithm | ||
| 2650 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "echo", {Values.BOOL(setEcho)}, dummyMsg); | |
| 2651 | end echo; | ||
| 2652 | |||
| 2653 | function runScript | ||
| 2654 | input String fileName; | ||
| 2655 | output String res; | ||
| 2656 | algorithm | ||
| 2657 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "runScript", {Values.STRING(fileName)}, dummyMsg); | |
| 2658 | end runScript; | ||
| 2659 | |||
| 2660 | function clearMessages | ||
| 2661 | output Boolean res; | ||
| 2662 | algorithm | ||
| 2663 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clearMessages", {}, dummyMsg); | |
| 2664 | end clearMessages; | ||
| 2665 | |||
| 2666 | function countMessages | ||
| 2667 | output Integer res1; | ||
| 2668 | output Integer res2; | ||
| 2669 | output Integer res3; | ||
| 2670 | algorithm | ||
| 2671 | ✗ | (_,Values.TUPLE({Values.INTEGER(res1), Values.INTEGER(res2), Values.INTEGER(res3)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "countMessages", {}, dummyMsg); | |
| 2672 | end countMessages; | ||
| 2673 | |||
| 2674 | function getErrorString | ||
| 2675 | input Boolean warningsAsErrors; | ||
| 2676 | output String res; | ||
| 2677 | algorithm | ||
| 2678 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getErrorString", {Values.BOOL(warningsAsErrors)}, dummyMsg); | |
| 2679 | end getErrorString; | ||
| 2680 | |||
| 2681 | function alarm | ||
| 2682 | input Integer seconds; | ||
| 2683 | output Integer res; | ||
| 2684 | algorithm | ||
| 2685 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "alarm", {Values.INTEGER(seconds)}, dummyMsg); | |
| 2686 | end alarm; | ||
| 2687 | |||
| 2688 | function compareFiles | ||
| 2689 | input String file1; | ||
| 2690 | input String file2; | ||
| 2691 | output Boolean res; | ||
| 2692 | algorithm | ||
| 2693 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "compareFiles", {Values.STRING(file1), Values.STRING(file2)}, dummyMsg); | |
| 2694 | end compareFiles; | ||
| 2695 | |||
| 2696 | function compareFilesAndMove | ||
| 2697 | input String newFile; | ||
| 2698 | input String oldFile; | ||
| 2699 | output Boolean res; | ||
| 2700 | algorithm | ||
| 2701 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "compareFilesAndMove", {Values.STRING(newFile), Values.STRING(oldFile)}, dummyMsg); | |
| 2702 | end compareFilesAndMove; | ||
| 2703 | |||
| 2704 | function writeFile | ||
| 2705 | input String fileName; | ||
| 2706 | input String data; | ||
| 2707 | input Boolean append; | ||
| 2708 | output Boolean res; | ||
| 2709 | algorithm | ||
| 2710 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "writeFile", {Values.STRING(fileName), Values.STRING(data), Values.BOOL(append)}, dummyMsg); | |
| 2711 | end writeFile; | ||
| 2712 | |||
| 2713 | function readFile | ||
| 2714 | input String fileName; | ||
| 2715 | output String res; | ||
| 2716 | algorithm | ||
| 2717 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "readFile", {Values.STRING(fileName)}, dummyMsg); | |
| 2718 | end readFile; | ||
| 2719 | |||
| 2720 | function stat | ||
| 2721 | input String fileName; | ||
| 2722 | output Boolean res1; | ||
| 2723 | output Real res2; | ||
| 2724 | output Real res3; | ||
| 2725 | algorithm | ||
| 2726 | ✗ | (_,Values.TUPLE({Values.BOOL(res1), Values.REAL(res2), Values.REAL(res3)})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "stat", {Values.STRING(fileName)}, dummyMsg); | |
| 2727 | end stat; | ||
| 2728 | |||
| 2729 | function directoryExists | ||
| 2730 | input String dirName; | ||
| 2731 | output Boolean res; | ||
| 2732 | algorithm | ||
| 2733 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "directoryExists", {Values.STRING(dirName)}, dummyMsg); | |
| 2734 | end directoryExists; | ||
| 2735 | |||
| 2736 | function regularFileExists | ||
| 2737 | input String fileName; | ||
| 2738 | output Boolean res; | ||
| 2739 | algorithm | ||
| 2740 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "regularFileExists", {Values.STRING(fileName)}, dummyMsg); | |
| 2741 | end regularFileExists; | ||
| 2742 | |||
| 2743 | function getVersion | ||
| 2744 | input String cl; | ||
| 2745 | output String res; | ||
| 2746 | algorithm | ||
| 2747 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getVersion", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(cl)))}, dummyMsg); | |
| 2748 | end getVersion; | ||
| 2749 | |||
| 2750 | function clearCommandLineOptions | ||
| 2751 | output Boolean res; | ||
| 2752 | algorithm | ||
| 2753 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clearCommandLineOptions", {}, dummyMsg); | |
| 2754 | end clearCommandLineOptions; | ||
| 2755 | |||
| 2756 | function getConfigFlagValidOptions | ||
| 2757 | input String flag; | ||
| 2758 | output list<String> res1; | ||
| 2759 | output String res2; | ||
| 2760 | output list<String> res3; | ||
| 2761 | protected | ||
| 2762 | Values.Value res1_arr; | ||
| 2763 | Values.Value res3_arr; | ||
| 2764 | algorithm | ||
| 2765 | ✗ | (_,Values.TUPLE({res1_arr, Values.STRING(res2), res3_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getConfigFlagValidOptions", {Values.STRING(flag)}, dummyMsg); | |
| 2766 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 2767 | ✗ | res3 := list(match res3_arr_iter case Values.STRING() then res3_arr_iter.string; end match for res3_arr_iter in ValuesUtil.arrayValues(res3_arr)); | |
| 2768 | end getConfigFlagValidOptions; | ||
| 2769 | |||
| 2770 | function getCommandLineOptions | ||
| 2771 | output list<String> res; | ||
| 2772 | protected | ||
| 2773 | Values.Value res_arr; | ||
| 2774 | algorithm | ||
| 2775 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getCommandLineOptions", {}, dummyMsg); | |
| 2776 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 2777 | end getCommandLineOptions; | ||
| 2778 | |||
| 2779 | function setCommandLineOptions | ||
| 2780 | input String options; | ||
| 2781 | output Boolean res; | ||
| 2782 | algorithm | ||
| 2783 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setCommandLineOptions", {Values.STRING(options)}, dummyMsg); | |
| 2784 | end setCommandLineOptions; | ||
| 2785 | |||
| 2786 | function getAvailableTearingMethods | ||
| 2787 | output list<String> res1; | ||
| 2788 | output list<String> res2; | ||
| 2789 | protected | ||
| 2790 | Values.Value res1_arr; | ||
| 2791 | Values.Value res2_arr; | ||
| 2792 | algorithm | ||
| 2793 | ✗ | (_,Values.TUPLE({res1_arr, res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailableTearingMethods", {}, dummyMsg); | |
| 2794 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 2795 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 2796 | end getAvailableTearingMethods; | ||
| 2797 | |||
| 2798 | function getTearingMethod | ||
| 2799 | output String res; | ||
| 2800 | algorithm | ||
| 2801 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getTearingMethod", {}, dummyMsg); | |
| 2802 | end getTearingMethod; | ||
| 2803 | |||
| 2804 | function getAvailableIndexReductionMethods | ||
| 2805 | output list<String> res1; | ||
| 2806 | output list<String> res2; | ||
| 2807 | protected | ||
| 2808 | Values.Value res1_arr; | ||
| 2809 | Values.Value res2_arr; | ||
| 2810 | algorithm | ||
| 2811 | ✗ | (_,Values.TUPLE({res1_arr, res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailableIndexReductionMethods", {}, dummyMsg); | |
| 2812 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 2813 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 2814 | end getAvailableIndexReductionMethods; | ||
| 2815 | |||
| 2816 | function getIndexReductionMethod | ||
| 2817 | output String res; | ||
| 2818 | algorithm | ||
| 2819 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getIndexReductionMethod", {}, dummyMsg); | |
| 2820 | end getIndexReductionMethod; | ||
| 2821 | |||
| 2822 | function getAvailableMatchingAlgorithms | ||
| 2823 | output list<String> res1; | ||
| 2824 | output list<String> res2; | ||
| 2825 | protected | ||
| 2826 | Values.Value res1_arr; | ||
| 2827 | Values.Value res2_arr; | ||
| 2828 | algorithm | ||
| 2829 | ✗ | (_,Values.TUPLE({res1_arr, res2_arr})) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getAvailableMatchingAlgorithms", {}, dummyMsg); | |
| 2830 | ✗ | res1 := list(match res1_arr_iter case Values.STRING() then res1_arr_iter.string; end match for res1_arr_iter in ValuesUtil.arrayValues(res1_arr)); | |
| 2831 | ✗ | res2 := list(match res2_arr_iter case Values.STRING() then res2_arr_iter.string; end match for res2_arr_iter in ValuesUtil.arrayValues(res2_arr)); | |
| 2832 | end getAvailableMatchingAlgorithms; | ||
| 2833 | |||
| 2834 | function getMatchingAlgorithm | ||
| 2835 | output String res; | ||
| 2836 | algorithm | ||
| 2837 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getMatchingAlgorithm", {}, dummyMsg); | |
| 2838 | end getMatchingAlgorithm; | ||
| 2839 | |||
| 2840 | function clearDebugFlags | ||
| 2841 | output Boolean res; | ||
| 2842 | algorithm | ||
| 2843 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clearDebugFlags", {}, dummyMsg); | |
| 2844 | end clearDebugFlags; | ||
| 2845 | |||
| 2846 | function disableNewInstantiation | ||
| 2847 | output Boolean res; | ||
| 2848 | algorithm | ||
| 2849 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "disableNewInstantiation", {}, dummyMsg); | |
| 2850 | end disableNewInstantiation; | ||
| 2851 | |||
| 2852 | function enableNewInstantiation | ||
| 2853 | output Boolean res; | ||
| 2854 | algorithm | ||
| 2855 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "enableNewInstantiation", {}, dummyMsg); | |
| 2856 | end enableNewInstantiation; | ||
| 2857 | |||
| 2858 | function setCompilerFlags | ||
| 2859 | input String compilerFlags; | ||
| 2860 | output Boolean res; | ||
| 2861 | algorithm | ||
| 2862 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setCompilerFlags", {Values.STRING(compilerFlags)}, dummyMsg); | |
| 2863 | end setCompilerFlags; | ||
| 2864 | |||
| 2865 | function getHomeDirectoryPath | ||
| 2866 | output String res; | ||
| 2867 | algorithm | ||
| 2868 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getHomeDirectoryPath", {}, dummyMsg); | |
| 2869 | end getHomeDirectoryPath; | ||
| 2870 | |||
| 2871 | function getModelicaPath | ||
| 2872 | output String res; | ||
| 2873 | algorithm | ||
| 2874 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getModelicaPath", {}, dummyMsg); | |
| 2875 | end getModelicaPath; | ||
| 2876 | |||
| 2877 | function setModelicaPath | ||
| 2878 | input String modelicaPath; | ||
| 2879 | output Boolean res; | ||
| 2880 | algorithm | ||
| 2881 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setModelicaPath", {Values.STRING(modelicaPath)}, dummyMsg); | |
| 2882 | end setModelicaPath; | ||
| 2883 | |||
| 2884 | function getInstallationDirectoryPath | ||
| 2885 | output String res; | ||
| 2886 | algorithm | ||
| 2887 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getInstallationDirectoryPath", {}, dummyMsg); | |
| 2888 | end getInstallationDirectoryPath; | ||
| 2889 | |||
| 2890 | function setInstallationDirectoryPath | ||
| 2891 | input String installationDirectoryPath; | ||
| 2892 | output Boolean res; | ||
| 2893 | algorithm | ||
| 2894 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setInstallationDirectoryPath", {Values.STRING(installationDirectoryPath)}, dummyMsg); | |
| 2895 | end setInstallationDirectoryPath; | ||
| 2896 | |||
| 2897 | function setEnvironmentVar | ||
| 2898 | input String var; | ||
| 2899 | input String value; | ||
| 2900 | output Boolean res; | ||
| 2901 | algorithm | ||
| 2902 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setEnvironmentVar", {Values.STRING(var), Values.STRING(value)}, dummyMsg); | |
| 2903 | end setEnvironmentVar; | ||
| 2904 | |||
| 2905 | function getEnvironmentVar | ||
| 2906 | input String var; | ||
| 2907 | output String res; | ||
| 2908 | algorithm | ||
| 2909 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getEnvironmentVar", {Values.STRING(var)}, dummyMsg); | |
| 2910 | end getEnvironmentVar; | ||
| 2911 | |||
| 2912 | function getTempDirectoryPath | ||
| 2913 | output String res; | ||
| 2914 | algorithm | ||
| 2915 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getTempDirectoryPath", {}, dummyMsg); | |
| 2916 | end getTempDirectoryPath; | ||
| 2917 | |||
| 2918 | function setTempDirectoryPath | ||
| 2919 | input String tempDirectoryPath; | ||
| 2920 | output Boolean res; | ||
| 2921 | algorithm | ||
| 2922 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setTempDirectoryPath", {Values.STRING(tempDirectoryPath)}, dummyMsg); | |
| 2923 | end setTempDirectoryPath; | ||
| 2924 | |||
| 2925 | function setCXXCompiler | ||
| 2926 | input String compiler; | ||
| 2927 | output Boolean res; | ||
| 2928 | algorithm | ||
| 2929 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setCXXCompiler", {Values.STRING(compiler)}, dummyMsg); | |
| 2930 | end setCXXCompiler; | ||
| 2931 | |||
| 2932 | function getCXXCompiler | ||
| 2933 | output String res; | ||
| 2934 | algorithm | ||
| 2935 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getCXXCompiler", {}, dummyMsg); | |
| 2936 | end getCXXCompiler; | ||
| 2937 | |||
| 2938 | function setCFlags | ||
| 2939 | input String inString; | ||
| 2940 | output Boolean res; | ||
| 2941 | algorithm | ||
| 2942 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setCFlags", {Values.STRING(inString)}, dummyMsg); | |
| 2943 | end setCFlags; | ||
| 2944 | |||
| 2945 | function getCFlags | ||
| 2946 | output String res; | ||
| 2947 | algorithm | ||
| 2948 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getCFlags", {}, dummyMsg); | |
| 2949 | end getCFlags; | ||
| 2950 | |||
| 2951 | function setCompiler | ||
| 2952 | input String compiler; | ||
| 2953 | output Boolean res; | ||
| 2954 | algorithm | ||
| 2955 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setCompiler", {Values.STRING(compiler)}, dummyMsg); | |
| 2956 | end setCompiler; | ||
| 2957 | |||
| 2958 | function getCompiler | ||
| 2959 | output String res; | ||
| 2960 | algorithm | ||
| 2961 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getCompiler", {}, dummyMsg); | |
| 2962 | end getCompiler; | ||
| 2963 | |||
| 2964 | function setLinkerFlags | ||
| 2965 | input String linkerFlags; | ||
| 2966 | output Boolean res; | ||
| 2967 | algorithm | ||
| 2968 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setLinkerFlags", {Values.STRING(linkerFlags)}, dummyMsg); | |
| 2969 | end setLinkerFlags; | ||
| 2970 | |||
| 2971 | function getLinkerFlags | ||
| 2972 | output String res; | ||
| 2973 | algorithm | ||
| 2974 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getLinkerFlags", {}, dummyMsg); | |
| 2975 | end getLinkerFlags; | ||
| 2976 | |||
| 2977 | function setLinker | ||
| 2978 | input String linker; | ||
| 2979 | output Boolean res; | ||
| 2980 | algorithm | ||
| 2981 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "setLinker", {Values.STRING(linker)}, dummyMsg); | |
| 2982 | end setLinker; | ||
| 2983 | |||
| 2984 | function getLinker | ||
| 2985 | output String res; | ||
| 2986 | algorithm | ||
| 2987 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "getLinker", {}, dummyMsg); | |
| 2988 | end getLinker; | ||
| 2989 | |||
| 2990 | function generateSeparateCodeDependenciesMakefile | ||
| 2991 | input String filename; | ||
| 2992 | input String directory; | ||
| 2993 | input String suffix; | ||
| 2994 | output Boolean res; | ||
| 2995 | algorithm | ||
| 2996 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateSeparateCodeDependenciesMakefile", {Values.STRING(filename), Values.STRING(directory), Values.STRING(suffix)}, dummyMsg); | |
| 2997 | end generateSeparateCodeDependenciesMakefile; | ||
| 2998 | |||
| 2999 | function generateSeparateCodeDependencies | ||
| 3000 | input String stampSuffix; | ||
| 3001 | output list<String> res; | ||
| 3002 | protected | ||
| 3003 | Values.Value res_arr; | ||
| 3004 | algorithm | ||
| 3005 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateSeparateCodeDependencies", {Values.STRING(stampSuffix)}, dummyMsg); | |
| 3006 | ✗ | res := list(match res_arr_iter case Values.STRING() then res_arr_iter.string; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3007 | end generateSeparateCodeDependencies; | ||
| 3008 | |||
| 3009 | function generateSeparateCode | ||
| 3010 | input String className; | ||
| 3011 | input Boolean cleanCache; | ||
| 3012 | output Boolean res; | ||
| 3013 | algorithm | ||
| 3014 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateSeparateCode", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.BOOL(cleanCache)}, dummyMsg); | |
| 3015 | end generateSeparateCode; | ||
| 3016 | |||
| 3017 | function generateJuliaHeader | ||
| 3018 | input String fileName; | ||
| 3019 | output Boolean res; | ||
| 3020 | algorithm | ||
| 3021 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateJuliaHeader", {Values.STRING(fileName)}, dummyMsg); | |
| 3022 | end generateJuliaHeader; | ||
| 3023 | |||
| 3024 | function generateHeader | ||
| 3025 | input String fileName; | ||
| 3026 | output Boolean res; | ||
| 3027 | algorithm | ||
| 3028 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "generateHeader", {Values.STRING(fileName)}, dummyMsg); | |
| 3029 | end generateHeader; | ||
| 3030 | |||
| 3031 | function clearVariables | ||
| 3032 | output Boolean res; | ||
| 3033 | algorithm | ||
| 3034 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clearVariables", {}, dummyMsg); | |
| 3035 | end clearVariables; | ||
| 3036 | |||
| 3037 | function clearProgram | ||
| 3038 | output Boolean res; | ||
| 3039 | algorithm | ||
| 3040 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clearProgram", {}, dummyMsg); | |
| 3041 | end clearProgram; | ||
| 3042 | |||
| 3043 | function clear | ||
| 3044 | output Boolean res; | ||
| 3045 | algorithm | ||
| 3046 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "clear", {}, dummyMsg); | |
| 3047 | end clear; | ||
| 3048 | |||
| 3049 | function help | ||
| 3050 | input String topic; | ||
| 3051 | output String res; | ||
| 3052 | algorithm | ||
| 3053 | ✗ | (_,Values.STRING(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "help", {Values.STRING(topic)}, dummyMsg); | |
| 3054 | end help; | ||
| 3055 | |||
| 3056 | function saveAll | ||
| 3057 | input String fileName; | ||
| 3058 | output Boolean res; | ||
| 3059 | algorithm | ||
| 3060 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "saveAll", {Values.STRING(fileName)}, dummyMsg); | |
| 3061 | end saveAll; | ||
| 3062 | |||
| 3063 | function system_parallel | ||
| 3064 | input list<String> callStr; | ||
| 3065 | input Integer numThreads; | ||
| 3066 | output list<Integer> res; | ||
| 3067 | protected | ||
| 3068 | Values.Value res_arr; | ||
| 3069 | algorithm | ||
| 3070 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "system_parallel", {ValuesMake.makeArray(list(Values.STRING(callStr_iter) for callStr_iter in callStr)), Values.INTEGER(numThreads)}, dummyMsg); | |
| 3071 | ✗ | res := list(match res_arr_iter case Values.INTEGER() then res_arr_iter.integer; end match for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3072 | end system_parallel; | ||
| 3073 | |||
| 3074 | function system | ||
| 3075 | input String callStr; | ||
| 3076 | input String outputFile; | ||
| 3077 | output Integer res; | ||
| 3078 | algorithm | ||
| 3079 | ✗ | (_,Values.INTEGER(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "system", {Values.STRING(callStr), Values.STRING(outputFile)}, dummyMsg); | |
| 3080 | end system; | ||
| 3081 | |||
| 3082 | function loadFileInteractive | ||
| 3083 | input String filename; | ||
| 3084 | input String encoding; | ||
| 3085 | input Boolean uses; | ||
| 3086 | input Boolean notify; | ||
| 3087 | input Boolean requireExactVersion; | ||
| 3088 | output list<String> res; | ||
| 3089 | protected | ||
| 3090 | Values.Value res_arr; | ||
| 3091 | algorithm | ||
| 3092 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadFileInteractive", {Values.STRING(filename), Values.STRING(encoding), Values.BOOL(uses), Values.BOOL(notify), Values.BOOL(requireExactVersion)}, dummyMsg); | |
| 3093 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3094 | end loadFileInteractive; | ||
| 3095 | |||
| 3096 | function loadFileInteractiveQualified | ||
| 3097 | input String filename; | ||
| 3098 | input String encoding; | ||
| 3099 | output list<String> res; | ||
| 3100 | protected | ||
| 3101 | Values.Value res_arr; | ||
| 3102 | algorithm | ||
| 3103 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadFileInteractiveQualified", {Values.STRING(filename), Values.STRING(encoding)}, dummyMsg); | |
| 3104 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3105 | end loadFileInteractiveQualified; | ||
| 3106 | |||
| 3107 | function parseFile | ||
| 3108 | input String filename; | ||
| 3109 | input String encoding; | ||
| 3110 | output list<String> res; | ||
| 3111 | protected | ||
| 3112 | Values.Value res_arr; | ||
| 3113 | algorithm | ||
| 3114 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "parseFile", {Values.STRING(filename), Values.STRING(encoding)}, dummyMsg); | |
| 3115 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3116 | end parseFile; | ||
| 3117 | |||
| 3118 | function parseString | ||
| 3119 | input String data; | ||
| 3120 | input String filename; | ||
| 3121 | output list<String> res; | ||
| 3122 | protected | ||
| 3123 | Values.Value res_arr; | ||
| 3124 | algorithm | ||
| 3125 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "parseString", {Values.STRING(data), Values.STRING(filename)}, dummyMsg); | |
| 3126 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3127 | end parseString; | ||
| 3128 | |||
| 3129 | function loadClassContentString | ||
| 3130 | input String data; | ||
| 3131 | input String className; | ||
| 3132 | input Integer offsetX; | ||
| 3133 | input Integer offsetY; | ||
| 3134 | output Boolean res; | ||
| 3135 | algorithm | ||
| 3136 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadClassContentString", {Values.STRING(data), Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(className))), Values.INTEGER(offsetX), Values.INTEGER(offsetY)}, dummyMsg); | |
| 3137 | end loadClassContentString; | ||
| 3138 | |||
| 3139 | function loadString | ||
| 3140 | input String data; | ||
| 3141 | input String filename; | ||
| 3142 | input String encoding; | ||
| 3143 | input Boolean merge; | ||
| 3144 | input Boolean uses; | ||
| 3145 | input Boolean notify; | ||
| 3146 | input Boolean requireExactVersion; | ||
| 3147 | output Boolean res; | ||
| 3148 | algorithm | ||
| 3149 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadString", {Values.STRING(data), Values.STRING(filename), Values.STRING(encoding), Values.BOOL(merge), Values.BOOL(uses), Values.BOOL(notify), Values.BOOL(requireExactVersion)}, dummyMsg); | |
| 3150 | end loadString; | ||
| 3151 | |||
| 3152 | function reloadClass | ||
| 3153 | input String name; | ||
| 3154 | input String encoding; | ||
| 3155 | output Boolean res; | ||
| 3156 | algorithm | ||
| 3157 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "reloadClass", {Values.CODE(Absyn.C_TYPENAME(Parser.stringPath(name))), Values.STRING(encoding)}, dummyMsg); | |
| 3158 | end reloadClass; | ||
| 3159 | |||
| 3160 | function loadEncryptedPackage | ||
| 3161 | input String fileName; | ||
| 3162 | input String workdir; | ||
| 3163 | input Boolean skipUnzip; | ||
| 3164 | input Boolean uses; | ||
| 3165 | input Boolean notify; | ||
| 3166 | input Boolean requireExactVersion; | ||
| 3167 | output Boolean res; | ||
| 3168 | algorithm | ||
| 3169 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadEncryptedPackage", {Values.STRING(fileName), Values.STRING(workdir), Values.BOOL(skipUnzip), Values.BOOL(uses), Values.BOOL(notify), Values.BOOL(requireExactVersion)}, dummyMsg); | |
| 3170 | end loadEncryptedPackage; | ||
| 3171 | |||
| 3172 | function parseEncryptedPackage | ||
| 3173 | input String fileName; | ||
| 3174 | input String workdir; | ||
| 3175 | output list<String> res; | ||
| 3176 | protected | ||
| 3177 | Values.Value res_arr; | ||
| 3178 | algorithm | ||
| 3179 | ✗ | (_,res_arr) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "parseEncryptedPackage", {Values.STRING(fileName), Values.STRING(workdir)}, dummyMsg); | |
| 3180 | ✗ | res := list(ValuesDump.valString(res_arr_iter) for res_arr_iter in ValuesUtil.arrayValues(res_arr)); | |
| 3181 | end parseEncryptedPackage; | ||
| 3182 | |||
| 3183 | function loadFiles | ||
| 3184 | input list<String> fileNames; | ||
| 3185 | input String encoding; | ||
| 3186 | input Integer numThreads; | ||
| 3187 | input Boolean uses; | ||
| 3188 | input Boolean notify; | ||
| 3189 | input Boolean requireExactVersion; | ||
| 3190 | input Boolean allowWithin; | ||
| 3191 | output Boolean res; | ||
| 3192 | algorithm | ||
| 3193 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadFiles", {ValuesMake.makeArray(list(Values.STRING(fileNames_iter) for fileNames_iter in fileNames)), Values.STRING(encoding), Values.INTEGER(numThreads), Values.BOOL(uses), Values.BOOL(notify), Values.BOOL(requireExactVersion), Values.BOOL(allowWithin)}, dummyMsg); | |
| 3194 | end loadFiles; | ||
| 3195 | |||
| 3196 | function loadFile | ||
| 3197 | input String fileName; | ||
| 3198 | input String encoding; | ||
| 3199 | input Boolean uses; | ||
| 3200 | input Boolean notify; | ||
| 3201 | input Boolean requireExactVersion; | ||
| 3202 | input Boolean allowWithin; | ||
| 3203 | output Boolean res; | ||
| 3204 | algorithm | ||
| 3205 | ✗ | (_,Values.BOOL(res)) := CevalScript.cevalInteractiveFunctions2(FCore.emptyCache(), FGraph.empty(), "loadFile", {Values.STRING(fileName), Values.STRING(encoding), Values.BOOL(uses), Values.BOOL(notify), Values.BOOL(requireExactVersion), Values.BOOL(allowWithin)}, dummyMsg); | |
| 3206 | end loadFile; | ||
| 3207 | |||
| 3208 | annotation(__OpenModelica_Interface="backend_main"); | ||
| 3209 | end OpenModelicaScriptingAPI; | ||
| 3210 |