Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
markaren committed Jul 1, 2023
1 parent 1576d6a commit a842401
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 35 deletions.
20 changes: 0 additions & 20 deletions src/proxyfmu/defs.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,3 @@ struct ModelDescription {
9: optional DefaultExperiment default_experiment,
10: ModelVariables model_variables,
}

exception NoSuchFileException {
1: string message
}

exception NoSuchFmuException {
1: string message
}

exception NoSuchInstanceException {
1: string message
}

exception NoSuchVariableException {
1: string message
}

exception UnsupportedOperationException {
1: string message
}
30 changes: 15 additions & 15 deletions src/proxyfmu/service.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ service FmuService {

void instantiate()

defs.Status setup_experiment(1: double start, 2: double stop, 3: double tolerance) throws (1: defs.NoSuchInstanceException ex)
defs.Status enter_initialization_mode() throws (1: defs.NoSuchInstanceException ex)
defs.Status exit_initialization_mode() throws (1: defs.NoSuchInstanceException ex)
defs.Status setup_experiment(1: double start, 2: double stop, 3: double tolerance)
defs.Status enter_initialization_mode()
defs.Status exit_initialization_mode()

defs.Status step(1: double currentTime, 2: double stepSize) throws (1: defs.NoSuchInstanceException ex)
defs.Status terminate() throws (1: defs.NoSuchInstanceException ex)
defs.Status reset() throws (1: defs.NoSuchInstanceException ex)
void freeInstance() throws (1: defs.NoSuchInstanceException ex)
defs.Status step(1: double currentTime, 2: double stepSize)
defs.Status terminate()
defs.Status reset()
void freeInstance()

defs.IntegerRead read_integer(1: defs.ValueReferences vr) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.RealRead read_real(1: defs.ValueReferences vr) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.StringRead read_string(1: defs.ValueReferences vr) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.BooleanRead read_boolean(1: defs.ValueReferences vr) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.IntegerRead read_integer(1: defs.ValueReferences vr)
defs.RealRead read_real(1: defs.ValueReferences vr)
defs.StringRead read_string(1: defs.ValueReferences vr)
defs.BooleanRead read_boolean(1: defs.ValueReferences vr)

defs.Status write_integer(1: defs.ValueReferences vr, 2: defs.IntArray value) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.Status write_real(1: defs.ValueReferences vr, 2: defs.RealArray value) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.Status write_string(1: defs.ValueReferences vr, 2: defs.StringArray value) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.Status write_boolean(1: defs.ValueReferences vr, 2: defs.BooleanArray value) throws (1: defs.NoSuchInstanceException ex1, 2: defs.NoSuchVariableException ex2)
defs.Status write_integer(1: defs.ValueReferences vr, 2: defs.IntArray value)
defs.Status write_real(1: defs.ValueReferences vr, 2: defs.RealArray value)
defs.Status write_string(1: defs.ValueReferences vr, 2: defs.StringArray value)
defs.Status write_boolean(1: defs.ValueReferences vr, 2: defs.BooleanArray value)

}

0 comments on commit a842401

Please sign in to comment.