Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ModeliChart Protocol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ModeliChart
ModeliChart Protocol
Commits
f07e8379
Commit
f07e8379
authored
7 years ago
by
Tim Übelhör
Browse files
Options
Downloads
Patches
Plain Diff
Updated for easier parsing.
parent
60a8b0eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ModeliRpc.proto
+40
-50
40 additions, 50 deletions
ModeliRpc.proto
with
40 additions
and
50 deletions
ModeliRpc.proto
+
40
−
50
View file @
f07e8379
...
...
@@ -40,36 +40,6 @@ service ModeliBackend {
rpc
Log
(
LogRequest
)
returns
(
stream
LogResponse
);
}
// From Fmi2Standard
enum
Fmi2Status
{
FMI2_OK
=
0
;
FMI2_WARNING
=
1
;
FMI2_DISCARD
=
2
;
FMI2_ERROR
=
3
;
FMI2_FATAL
=
4
;
FMI2_PENDING
=
5
;
}
// Contains values from and for the fmu
message
IntValue
{
uint32
value_ref
=
1
;
int32
value
=
2
;
}
message
RealValue
{
uint32
value_ref
=
1
;
double
value
=
2
;
}
message
BoolValue
{
uint32
value_ref
=
1
;
int32
value
=
2
;
// Fmi2 standard encodes bools as int (1: true, 0: false)
}
message
StringValue
{
uint32
value_ref
=
1
;
string
value
=
2
;
}
// The metadata of a ChannelLink
message
ChannelLink
{
string
master_instance_name
=
1
;
...
...
@@ -84,7 +54,7 @@ message ChannelLink {
message
PlayRequest
{}
message
PlayResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
PlayFastRequest
{
...
...
@@ -92,7 +62,7 @@ message PlayFastRequest {
}
message
PlayFastResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
PauseRequest
{}
...
...
@@ -102,7 +72,7 @@ message PauseResponse {}
message
StopRequest
{}
message
StopResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
AddFmuRequest
{
...
...
@@ -138,50 +108,70 @@ message RemoveChannelLinkResponse {
bool
success
=
1
;
}
message
IntValues
{
repeated
uint32
vrs
=
1
;
repeated
int32
values
=
2
;
}
message
SetIntRequest
{
string
instance_name
=
1
;
repeated
IntValue
int_
value
=
2
;
IntValue
s
value
s
=
2
;
}
message
SetIntResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
RealValues
{
repeated
uint32
vrs
=
1
;
repeated
double
values
=
2
;
}
message
SetRealRequest
{
string
instance_name
=
1
;
repeated
RealValue
real_
value
=
2
;
RealValue
s
value
s
=
2
;
}
message
SetRealResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
BoolValues
{
repeated
uint32
vrs
=
1
;
repeated
int32
values
=
2
;
}
message
SetBoolRequest
{
string
instance_name
=
1
;
repeated
BoolValue
bool_
value
=
2
;
BoolValue
s
value
s
=
2
;
}
message
SetBoolResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
StringValues
{
repeated
uint32
vrs
=
1
;
repeated
string
values
=
2
;
}
message
SetStringRequest
{
string
instance_name
=
1
;
repeated
StringValue
string_
value
=
2
;
StringValue
s
value
s
=
2
;
}
message
SetStringResponse
{
Fmi2Status
status
=
1
;
int32
status
=
1
;
}
message
NewValuesRequest
{}
message
NewValuesResponse
{
double
timestamp
=
1
;
repeated
IntValue
int_value
=
2
;
repeated
RealValue
real_value
=
3
;
repeated
BoolValue
bool_value
=
4
;
repeated
StringValue
string_value
=
5
;
IntValue
s
int_value
s
=
2
;
RealValue
s
real_value
s
=
3
;
BoolValue
s
bool_value
s
=
4
;
StringValue
s
string_value
s
=
5
;
string
instance_name
=
6
;
}
...
...
@@ -189,6 +179,6 @@ message LogRequest {}
message
LogResponse
{
string
instance_name
=
1
;
Fmi2Status
status
=
2
;
int32
status
=
2
;
string
message
=
3
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment