@opencor/opencor 0.20250826.0 → 0.20250827.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/opencor.es.js +1 -1
- package/package.json +5 -6
- package/src/App.vue +0 -7
- package/src/ContainerApp.vue +0 -21
- package/src/assets/app.css +0 -14
- package/src/assets/base.css +0 -31
- package/src/assets/logo.svg +0 -17
- package/src/common/common.ts +0 -86
- package/src/common/constants.ts +0 -12
- package/src/common/electron.ts +0 -23
- package/src/common/electronApi.ts +0 -63
- package/src/common/locCommon.ts +0 -170
- package/src/common/settings.ts +0 -95
- package/src/common/vueCommon.ts +0 -69
- package/src/components/BackgroundComponent.vue +0 -26
- package/src/components/BlockingMessageComponent.vue +0 -34
- package/src/components/ContentsComponent.vue +0 -277
- package/src/components/DragNDropComponent.vue +0 -35
- package/src/components/MainMenu.vue +0 -225
- package/src/components/OpenCOR.vue +0 -624
- package/src/components/dialogs/AboutDialog.vue +0 -51
- package/src/components/dialogs/BaseDialog.vue +0 -58
- package/src/components/dialogs/OpenRemoteDialog.vue +0 -37
- package/src/components/dialogs/ResetAllDialog.vue +0 -13
- package/src/components/dialogs/SettingsDialog.vue +0 -42
- package/src/components/dialogs/UpdateAvailableDialog.vue +0 -16
- package/src/components/dialogs/UpdateDownloadProgressDialog.vue +0 -11
- package/src/components/dialogs/UpdateErrorDialog.vue +0 -18
- package/src/components/dialogs/UpdateNotAvailableDialog.vue +0 -12
- package/src/components/propertyEditors/GraphsPropertyEditor.vue +0 -3
- package/src/components/propertyEditors/ParametersPropertyEditor.vue +0 -3
- package/src/components/propertyEditors/PropertyEditor.vue +0 -60
- package/src/components/propertyEditors/SimulationPropertyEditor.vue +0 -45
- package/src/components/propertyEditors/SolversPropertyEditor.vue +0 -3
- package/src/components/views/IssuesView.vue +0 -50
- package/src/components/views/SimulationExperimentUiView.vue +0 -154
- package/src/components/views/SimulationExperimentView.vue +0 -218
- package/src/components/widgets/GraphPanelWidget.vue +0 -140
- package/src/components/widgets/InputWidget.vue +0 -128
- package/src/libopencor/locApi.ts +0 -167
- package/src/libopencor/locFileApi.ts +0 -263
- package/src/libopencor/locLoggerApi.ts +0 -36
- package/src/libopencor/locSedApi.ts +0 -486
- package/src/libopencor/locUiJsonApi.ts +0 -485
- package/src/libopencor/locVersionApi.ts +0 -17
- package/src/libopencor/src/common.cpp +0 -67
- package/src/libopencor/src/common.h +0 -27
- package/src/libopencor/src/file.cpp +0 -72
- package/src/libopencor/src/file.h +0 -15
- package/src/libopencor/src/main.cpp +0 -78
- package/src/libopencor/src/sed.cpp +0 -348
- package/src/libopencor/src/sed.h +0 -53
- package/src/libopencor/src/version.cpp +0 -8
- package/src/libopencor/src/version.h +0 -5
- package/src/main.ts +0 -6
- package/src/types/types.d.ts +0 -9
|
@@ -1,486 +0,0 @@
|
|
|
1
|
-
import * as vue from 'vue'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
_cppLocApi,
|
|
5
|
-
_wasmLocApi,
|
|
6
|
-
cppVersion,
|
|
7
|
-
wasmIssuesToIssues,
|
|
8
|
-
wasmVersion,
|
|
9
|
-
type IIssue,
|
|
10
|
-
type IWasmFile,
|
|
11
|
-
type IWasmIssues
|
|
12
|
-
} from './locApi.js'
|
|
13
|
-
|
|
14
|
-
// SED-ML API.
|
|
15
|
-
|
|
16
|
-
class SedBase {
|
|
17
|
-
protected _filePath: string
|
|
18
|
-
|
|
19
|
-
constructor(filePath: string) {
|
|
20
|
-
this._filePath = filePath
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class SedBaseIndex extends SedBase {
|
|
25
|
-
protected _index: number
|
|
26
|
-
|
|
27
|
-
constructor(filePath: string, index: number) {
|
|
28
|
-
super(filePath)
|
|
29
|
-
|
|
30
|
-
this._index = index
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IWasmSedDocument {
|
|
35
|
-
issues: IWasmIssues
|
|
36
|
-
modelCount: number
|
|
37
|
-
model(index: number): IWasmSedModel
|
|
38
|
-
simulationCount: number
|
|
39
|
-
simulation(index: number): IWasmSedSimulation
|
|
40
|
-
instantiate(): IWasmSedInstance
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export class SedDocument extends SedBase {
|
|
44
|
-
private _wasmSedDocument: IWasmSedDocument = {} as IWasmSedDocument
|
|
45
|
-
|
|
46
|
-
constructor(filePath: string, wasmFile: IWasmFile) {
|
|
47
|
-
super(filePath)
|
|
48
|
-
|
|
49
|
-
if (cppVersion()) {
|
|
50
|
-
_cppLocApi.sedDocumentCreate(this._filePath)
|
|
51
|
-
} else {
|
|
52
|
-
this._wasmSedDocument = new _wasmLocApi.SedDocument(wasmFile)
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
issues(): IIssue[] {
|
|
57
|
-
return cppVersion()
|
|
58
|
-
? _cppLocApi.sedDocumentIssues(this._filePath)
|
|
59
|
-
: wasmIssuesToIssues(this._wasmSedDocument.issues)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
modelCount(): number {
|
|
63
|
-
return cppVersion() ? _cppLocApi.sedDocumentModelCount(this._filePath) : this._wasmSedDocument.modelCount
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
model(index: number): SedModel {
|
|
67
|
-
return new SedModel(this._filePath, index, this._wasmSedDocument)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
simulationCount(): number {
|
|
71
|
-
return cppVersion() ? _cppLocApi.sedDocumentSimulationCount(this._filePath) : this._wasmSedDocument.simulationCount
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
simulation(index: number): SedSimulation {
|
|
75
|
-
let type: ESedSimulationType
|
|
76
|
-
|
|
77
|
-
if (cppVersion()) {
|
|
78
|
-
type = _cppLocApi.sedDocumentSimulationType(this._filePath, index)
|
|
79
|
-
} else {
|
|
80
|
-
switch (this._wasmSedDocument.simulation(index).constructor.name) {
|
|
81
|
-
case 'SedAnalysis':
|
|
82
|
-
type = ESedSimulationType.ANALYSIS
|
|
83
|
-
|
|
84
|
-
break
|
|
85
|
-
case 'SedSteadyState':
|
|
86
|
-
type = ESedSimulationType.STEADY_STATE
|
|
87
|
-
|
|
88
|
-
break
|
|
89
|
-
case 'SedOneStep':
|
|
90
|
-
type = ESedSimulationType.ONE_STEP
|
|
91
|
-
|
|
92
|
-
break
|
|
93
|
-
default: // 'SedUniformTimeCourse'.
|
|
94
|
-
type = ESedSimulationType.UNIFORM_TIME_COURSE
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
if (type === ESedSimulationType.ANALYSIS) {
|
|
99
|
-
return new SedSimulationAnalysis(this._filePath, index, this._wasmSedDocument, type)
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (type === ESedSimulationType.STEADY_STATE) {
|
|
103
|
-
return new SedSimulationSteadyState(this._filePath, index, this._wasmSedDocument, type)
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
if (type === ESedSimulationType.ONE_STEP) {
|
|
107
|
-
return new SedSimulationOneStep(this._filePath, index, this._wasmSedDocument, type)
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return new SedSimulationUniformTimeCourse(this._filePath, index, this._wasmSedDocument, type)
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
instantiate(): SedInstance {
|
|
114
|
-
return new SedInstance(this._filePath, this._wasmSedDocument)
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface IWasmSedChangeAttribute {
|
|
119
|
-
componentName: string
|
|
120
|
-
variableName: string
|
|
121
|
-
newValue: string
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
interface IWasmSedModel {
|
|
125
|
-
addChange(change: IWasmSedChangeAttribute): void
|
|
126
|
-
removeAllChanges(): void
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export class SedModel extends SedBaseIndex {
|
|
130
|
-
private _wasmSedModel: IWasmSedModel = {} as IWasmSedModel
|
|
131
|
-
|
|
132
|
-
constructor(filePath: string, index: number, _wasmSedDocument: IWasmSedDocument) {
|
|
133
|
-
super(filePath, index)
|
|
134
|
-
|
|
135
|
-
if (wasmVersion()) {
|
|
136
|
-
this._wasmSedModel = _wasmSedDocument.model(index)
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
addChange(componentName: string, variableName: string, newValue: string): void {
|
|
141
|
-
if (cppVersion()) {
|
|
142
|
-
_cppLocApi.sedDocumentModelAddChange(this._filePath, this._index, componentName, variableName, newValue)
|
|
143
|
-
} else {
|
|
144
|
-
this._wasmSedModel.addChange(new _wasmLocApi.SedChangeAttribute(componentName, variableName, newValue))
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
removeAllChanges(): void {
|
|
149
|
-
if (cppVersion()) {
|
|
150
|
-
_cppLocApi.sedDocumentModelRemoveAllChanges(this._filePath, this._index)
|
|
151
|
-
} else {
|
|
152
|
-
this._wasmSedModel.removeAllChanges()
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export enum ESedSimulationType {
|
|
158
|
-
ANALYSIS,
|
|
159
|
-
STEADY_STATE,
|
|
160
|
-
ONE_STEP,
|
|
161
|
-
UNIFORM_TIME_COURSE
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface IWasmSedSimulation {
|
|
165
|
-
type: ESedSimulationType
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export class SedSimulation extends SedBaseIndex {
|
|
169
|
-
private _type: ESedSimulationType
|
|
170
|
-
|
|
171
|
-
constructor(filePath: string, index: number, _wasmSedDocument: IWasmSedDocument, type: ESedSimulationType) {
|
|
172
|
-
super(filePath, index)
|
|
173
|
-
|
|
174
|
-
this._type = type
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
type(): ESedSimulationType {
|
|
178
|
-
return this._type
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export class SedSimulationAnalysis extends SedSimulation {}
|
|
183
|
-
|
|
184
|
-
export class SedSimulationSteadyState extends SedSimulation {}
|
|
185
|
-
|
|
186
|
-
interface IWasmSedSimulationOneStep extends IWasmSedSimulation {
|
|
187
|
-
step: number
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export class SedSimulationOneStep extends SedSimulation {
|
|
191
|
-
private _wasmSedSimulationOneStep: IWasmSedSimulationOneStep = {} as IWasmSedSimulationOneStep
|
|
192
|
-
|
|
193
|
-
constructor(filePath: string, index: number, _wasmSedDocument: IWasmSedDocument, type: ESedSimulationType) {
|
|
194
|
-
super(filePath, index, _wasmSedDocument, type)
|
|
195
|
-
|
|
196
|
-
if (wasmVersion()) {
|
|
197
|
-
this._wasmSedSimulationOneStep = _wasmSedDocument.simulation(index) as IWasmSedSimulationOneStep
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
step(): number {
|
|
202
|
-
return cppVersion()
|
|
203
|
-
? _cppLocApi.sedDocumentSimulationOneStepStep(this._filePath, this._index)
|
|
204
|
-
: this._wasmSedSimulationOneStep.step
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
interface IWasmSedSimulationUniformTimeCourse extends IWasmSedSimulation {
|
|
209
|
-
initialTime: number
|
|
210
|
-
outputStartTime: number
|
|
211
|
-
outputEndTime: number
|
|
212
|
-
numberOfSteps: number
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export class SedSimulationUniformTimeCourse extends SedSimulation {
|
|
216
|
-
private _wasmSedSimulationUniformTimeCourse: IWasmSedSimulationUniformTimeCourse =
|
|
217
|
-
{} as IWasmSedSimulationUniformTimeCourse
|
|
218
|
-
|
|
219
|
-
constructor(filePath: string, index: number, _wasmSedDocument: IWasmSedDocument, type: ESedSimulationType) {
|
|
220
|
-
super(filePath, index, _wasmSedDocument, type)
|
|
221
|
-
|
|
222
|
-
if (wasmVersion()) {
|
|
223
|
-
this._wasmSedSimulationUniformTimeCourse = _wasmSedDocument.simulation(
|
|
224
|
-
index
|
|
225
|
-
) as IWasmSedSimulationUniformTimeCourse
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
initialTime(): number {
|
|
230
|
-
return cppVersion()
|
|
231
|
-
? _cppLocApi.sedDocumentSimulationUniformTimeCourseInitialTime(this._filePath, this._index)
|
|
232
|
-
: this._wasmSedSimulationUniformTimeCourse.initialTime
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
outputStartTime(): number {
|
|
236
|
-
return cppVersion()
|
|
237
|
-
? _cppLocApi.sedDocumentSimulationUniformTimeCourseOutputStartTime(this._filePath, this._index)
|
|
238
|
-
: this._wasmSedSimulationUniformTimeCourse.outputStartTime
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
setOutputStartTime(value: number): void {
|
|
242
|
-
if (cppVersion()) {
|
|
243
|
-
_cppLocApi.sedDocumentSimulationUniformTimeCourseSetOutputStartTime(this._filePath, this._index, value)
|
|
244
|
-
} else {
|
|
245
|
-
this._wasmSedSimulationUniformTimeCourse.outputStartTime = value
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
outputEndTime(): number {
|
|
250
|
-
return cppVersion()
|
|
251
|
-
? _cppLocApi.sedDocumentSimulationUniformTimeCourseOutputEndTime(this._filePath, this._index)
|
|
252
|
-
: this._wasmSedSimulationUniformTimeCourse.outputEndTime
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
setOutputEndTime(value: number): void {
|
|
256
|
-
if (cppVersion()) {
|
|
257
|
-
_cppLocApi.sedDocumentSimulationUniformTimeCourseSetOutputEndTime(this._filePath, this._index, value)
|
|
258
|
-
} else {
|
|
259
|
-
this._wasmSedSimulationUniformTimeCourse.outputEndTime = value
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
numberOfSteps(): number {
|
|
264
|
-
return cppVersion()
|
|
265
|
-
? _cppLocApi.sedDocumentSimulationUniformTimeCourseNumberOfSteps(this._filePath, this._index)
|
|
266
|
-
: this._wasmSedSimulationUniformTimeCourse.numberOfSteps
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
setNumberOfSteps(value: number): void {
|
|
270
|
-
if (cppVersion()) {
|
|
271
|
-
_cppLocApi.sedDocumentSimulationUniformTimeCourseSetNumberOfSteps(this._filePath, this._index, value)
|
|
272
|
-
} else {
|
|
273
|
-
this._wasmSedSimulationUniformTimeCourse.numberOfSteps = value
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
interface IWasmSedInstance {
|
|
279
|
-
issues: IWasmIssues
|
|
280
|
-
task(index: number): IWasmSedInstanceTask
|
|
281
|
-
run(): number
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export class SedInstance extends SedBase {
|
|
285
|
-
private _wasmSedInstance: IWasmSedInstance = {} as IWasmSedInstance
|
|
286
|
-
|
|
287
|
-
constructor(filePath: string, wasmSedDocument: IWasmSedDocument) {
|
|
288
|
-
super(filePath)
|
|
289
|
-
|
|
290
|
-
if (cppVersion()) {
|
|
291
|
-
_cppLocApi.sedDocumentInstantiate(this._filePath)
|
|
292
|
-
} else {
|
|
293
|
-
this._wasmSedInstance = vue.markRaw(wasmSedDocument.instantiate())
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
issues(): IIssue[] {
|
|
298
|
-
return cppVersion()
|
|
299
|
-
? _cppLocApi.sedInstanceIssues(this._filePath)
|
|
300
|
-
: wasmIssuesToIssues(this._wasmSedInstance.issues)
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
task(index: number): SedInstanceTask {
|
|
304
|
-
return new SedInstanceTask(this._filePath, index, this._wasmSedInstance)
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
run(): number {
|
|
308
|
-
return cppVersion() ? _cppLocApi.sedInstanceRun(this._filePath) : this._wasmSedInstance.run()
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
interface IWasmSedInstanceTask {
|
|
313
|
-
voiName: string
|
|
314
|
-
voiUnit: string
|
|
315
|
-
voiAsArray: number[]
|
|
316
|
-
stateCount: number
|
|
317
|
-
stateName(index: number): string
|
|
318
|
-
stateUnit(index: number): string
|
|
319
|
-
stateAsArray(index: number): number[]
|
|
320
|
-
rateCount: number
|
|
321
|
-
rateName(index: number): string
|
|
322
|
-
rateUnit(index: number): string
|
|
323
|
-
rateAsArray(index: number): number[]
|
|
324
|
-
constantCount: number
|
|
325
|
-
constantName(index: number): string
|
|
326
|
-
constantUnit(index: number): string
|
|
327
|
-
constantAsArray(index: number): number[]
|
|
328
|
-
computedConstantCount: number
|
|
329
|
-
computedConstantName(index: number): string
|
|
330
|
-
computedConstantUnit(index: number): string
|
|
331
|
-
computedConstantAsArray(index: number): number[]
|
|
332
|
-
algebraicCount: number
|
|
333
|
-
algebraicName(index: number): string
|
|
334
|
-
algebraicUnit(index: number): string
|
|
335
|
-
algebraicAsArray(index: number): number[]
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
export class SedInstanceTask extends SedBaseIndex {
|
|
339
|
-
private _wasmSedInstanceTask: IWasmSedInstanceTask = {} as IWasmSedInstanceTask
|
|
340
|
-
|
|
341
|
-
constructor(filePath: string, index: number, wasmSedInstance: IWasmSedInstance) {
|
|
342
|
-
super(filePath, index)
|
|
343
|
-
|
|
344
|
-
if (wasmVersion()) {
|
|
345
|
-
this._wasmSedInstanceTask = wasmSedInstance.task(index)
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
voiName(): string {
|
|
350
|
-
return cppVersion()
|
|
351
|
-
? _cppLocApi.sedInstanceTaskVoiName(this._filePath, this._index)
|
|
352
|
-
: this._wasmSedInstanceTask.voiName
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
voiUnit(): string {
|
|
356
|
-
return cppVersion()
|
|
357
|
-
? _cppLocApi.sedInstanceTaskVoiUnit(this._filePath, this._index)
|
|
358
|
-
: this._wasmSedInstanceTask.voiUnit
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
voi(): number[] {
|
|
362
|
-
return cppVersion()
|
|
363
|
-
? _cppLocApi.sedInstanceTaskVoi(this._filePath, this._index)
|
|
364
|
-
: this._wasmSedInstanceTask.voiAsArray
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
stateCount(): number {
|
|
368
|
-
return cppVersion()
|
|
369
|
-
? _cppLocApi.sedInstanceTaskStateCount(this._filePath, this._index)
|
|
370
|
-
: this._wasmSedInstanceTask.stateCount
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
stateName(index: number): string {
|
|
374
|
-
return cppVersion()
|
|
375
|
-
? _cppLocApi.sedInstanceTaskStateName(this._filePath, this._index, index)
|
|
376
|
-
: this._wasmSedInstanceTask.stateName(index)
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
stateUnit(index: number): string {
|
|
380
|
-
return cppVersion()
|
|
381
|
-
? _cppLocApi.sedInstanceTaskStateUnit(this._filePath, this._index, index)
|
|
382
|
-
: this._wasmSedInstanceTask.stateUnit(index)
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
state(index: number): number[] {
|
|
386
|
-
return cppVersion()
|
|
387
|
-
? _cppLocApi.sedInstanceTaskState(this._filePath, this._index, index)
|
|
388
|
-
: this._wasmSedInstanceTask.stateAsArray(index)
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
rateCount(): number {
|
|
392
|
-
return cppVersion()
|
|
393
|
-
? _cppLocApi.sedInstanceTaskRateCount(this._filePath, this._index)
|
|
394
|
-
: this._wasmSedInstanceTask.rateCount
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
rateName(index: number): string {
|
|
398
|
-
return cppVersion()
|
|
399
|
-
? _cppLocApi.sedInstanceTaskRateName(this._filePath, this._index, index)
|
|
400
|
-
: this._wasmSedInstanceTask.rateName(index)
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
rateUnit(index: number): string {
|
|
404
|
-
return cppVersion()
|
|
405
|
-
? _cppLocApi.sedInstanceTaskRateUnit(this._filePath, this._index, index)
|
|
406
|
-
: this._wasmSedInstanceTask.rateUnit(index)
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
rate(index: number): number[] {
|
|
410
|
-
return cppVersion()
|
|
411
|
-
? _cppLocApi.sedInstanceTaskRate(this._filePath, this._index, index)
|
|
412
|
-
: this._wasmSedInstanceTask.rateAsArray(index)
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
constantCount(): number {
|
|
416
|
-
return cppVersion()
|
|
417
|
-
? _cppLocApi.sedInstanceTaskConstantCount(this._filePath, this._index)
|
|
418
|
-
: this._wasmSedInstanceTask.constantCount
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
constantName(index: number): string {
|
|
422
|
-
return cppVersion()
|
|
423
|
-
? _cppLocApi.sedInstanceTaskConstantName(this._filePath, this._index, index)
|
|
424
|
-
: this._wasmSedInstanceTask.constantName(index)
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
constantUnit(index: number): string {
|
|
428
|
-
return cppVersion()
|
|
429
|
-
? _cppLocApi.sedInstanceTaskConstantUnit(this._filePath, this._index, index)
|
|
430
|
-
: this._wasmSedInstanceTask.constantUnit(index)
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
constant(index: number): number[] {
|
|
434
|
-
return cppVersion()
|
|
435
|
-
? _cppLocApi.sedInstanceTaskConstant(this._filePath, this._index, index)
|
|
436
|
-
: this._wasmSedInstanceTask.constantAsArray(index)
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
computedConstantCount(): number {
|
|
440
|
-
return cppVersion()
|
|
441
|
-
? _cppLocApi.sedInstanceTaskComputedConstantCount(this._filePath, this._index)
|
|
442
|
-
: this._wasmSedInstanceTask.computedConstantCount
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
computedConstantName(index: number): string {
|
|
446
|
-
return cppVersion()
|
|
447
|
-
? _cppLocApi.sedInstanceTaskComputedConstantName(this._filePath, this._index, index)
|
|
448
|
-
: this._wasmSedInstanceTask.computedConstantName(index)
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
computedConstantUnit(index: number): string {
|
|
452
|
-
return cppVersion()
|
|
453
|
-
? _cppLocApi.sedInstanceTaskComputedConstantUnit(this._filePath, this._index, index)
|
|
454
|
-
: this._wasmSedInstanceTask.computedConstantUnit(index)
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
computedConstant(index: number): number[] {
|
|
458
|
-
return cppVersion()
|
|
459
|
-
? _cppLocApi.sedInstanceTaskComputedConstant(this._filePath, this._index, index)
|
|
460
|
-
: this._wasmSedInstanceTask.computedConstantAsArray(index)
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
algebraicCount(): number {
|
|
464
|
-
return cppVersion()
|
|
465
|
-
? _cppLocApi.sedInstanceTaskAlgebraicCount(this._filePath, this._index)
|
|
466
|
-
: this._wasmSedInstanceTask.algebraicCount
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
algebraicName(index: number): string {
|
|
470
|
-
return cppVersion()
|
|
471
|
-
? _cppLocApi.sedInstanceTaskAlgebraicName(this._filePath, this._index, index)
|
|
472
|
-
: this._wasmSedInstanceTask.algebraicName(index)
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
algebraicUnit(index: number): string {
|
|
476
|
-
return cppVersion()
|
|
477
|
-
? _cppLocApi.sedInstanceTaskAlgebraicUnit(this._filePath, this._index, index)
|
|
478
|
-
: this._wasmSedInstanceTask.algebraicUnit(index)
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
algebraic(index: number): number[] {
|
|
482
|
-
return cppVersion()
|
|
483
|
-
? _cppLocApi.sedInstanceTaskAlgebraic(this._filePath, this._index, index)
|
|
484
|
-
: this._wasmSedInstanceTask.algebraicAsArray(index)
|
|
485
|
-
}
|
|
486
|
-
}
|