Skip to content

Commit

Permalink
add manipulation GetMetricDeterminationMode (Draegerwerk#95)
Browse files Browse the repository at this point in the history
// Added manipulation GetMetricDeterminationMode

# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
  • Loading branch information
midttuna authored Oct 21, 2024
1 parent 27eec7d commit 366ba54
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation GetMetricDeterminationMode for metrics
- manipulation PhysicallyDisconnectRemovableSubsystemAfterPhysicalConnectorProvided
- manipulation SetActiveModeOfOperation for metrics
- manipulation PhysicallyDisconnectRemovableSubsystemAfterSettingActivationStateOnOrStndBy
Expand Down
11 changes: 10 additions & 1 deletion src/t2iapi/metric/metric_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ syntax = "proto3";
package t2iapi.metric;

import "t2iapi/basic_responses.proto";
import "t2iapi/metric/types.proto";

option java_package = "com.draeger.medical.t2iapi.metric";
option java_outer_classname = "MetricResponses";
Expand All @@ -31,4 +32,12 @@ message CalibrateMetricResponse {
message IsComputerControlledResponse {
BasicResponse status = 1; // the status of the rpc indicating whether or not it was successful
bool answer = 2; // true if metric is computer-controlled, otherwise false
}
}

/*
Response indicating whether a metric is determined episodically or periodically
*/
message GetMetricDeterminationMode {
BasicResponse status = 1; // the status of the rpc indicating whether or not it was successful
MetricDeterminationMode answer = 2; // 0 - Episodically, 1 - Periodically
}
6 changes: 6 additions & 0 deletions src/t2iapi/metric/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,10 @@ service MetricService {
*/
rpc SetActiveModeOfOperation (BasicHandleRequest)
returns (BasicResponse);

/*
Requests if the metric with the given handle is determined episodically or periodically.
*/
rpc GetMetricDeterminationMode (BasicHandleRequest)
returns (t2iapi.metric.GetMetricDeterminationMode);
}
8 changes: 8 additions & 0 deletions src/t2iapi/metric/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ enum MetricStatus {
METRIC_STATUS_DE_INITIALIZED_AND_NOT_PERFORMING_OR_APPLYING = 4;
METRIC_STATUS_FAILED = 5;
}

/*
Represents whether a METRIC is determined episodically or periodically.
*/
enum MetricDeterminationMode {
METRIC_DETERMINATION_MODE_EPISODICALLY = 0;
METRIC_DETERMINATION_MODE_PERIODICALLY = 1;
}

0 comments on commit 366ba54

Please sign in to comment.