Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/pstaeck/t2iapi into add_new…
Browse files Browse the repository at this point in the history
…_manipulations_to_indicate_and_end_membership_in_an_ensemble

Conflicts:
	CHANGELOG.md
  • Loading branch information
pstaeck committed Oct 23, 2024
2 parents c7c2251 + 366ba54 commit 6bd4466
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 for combined settings
- manipulation SetActiveModeOfOperation for metrics
- manipulation PhysicallyDisconnectRemovableSubsystemAfterSettingActivationStateOnOrStndBy for combined settings
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 6bd4466

Please sign in to comment.