Skip to content

Commit

Permalink
SetComponentActivationAndSetOperatingMode and SetAlertActivationAndSe… (
Browse files Browse the repository at this point in the history
#62)

New manipulation SetComponentActivationAndSetOperatingMode and SetAlertActivationAndSetOperatingMode

# 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
NerijusKondrotas authored Sep 7, 2023
1 parent bab883f commit 5c5f17c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- manipulation SetComponentActivationAndSetOperatingMode for components and operations
- manipulation SetAlertActivationAndSetOperatingMode for alerts and operations
- manipulation TransitionFromCreateStateWithIdentificationToRemoveIdentification for contexts
- manipulation TransitionFromCreateStateWithIdentificationToChangeIdentification for contexts
- manipulation TransitionProvideValueToExpressNoValueAvailable for metrics
Expand Down
34 changes: 31 additions & 3 deletions src/t2iapi/combined/combined_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ package t2iapi.combined;

import "t2iapi/context/types.proto";
import "t2iapi/operation/types.proto";
import "t2iapi/activation_state/types.proto";


option java_package = "com.draeger.medical.t2iapi.combined";
option java_outer_classname = "CombinedRequests";
Expand All @@ -21,11 +23,37 @@ Request to create a new or adapt an existing context state with a requested @Con
set the requested @OperatingMode for the referenced operation.
*/
message CreateContextStateWithAssociationAndSetOperatingModeRequest {
string context_descriptor_handle = 1; // the context descriptor handle for which the @ContextAssociation value
string context_descriptor_handle = 1; // the context descriptor handle for which the ContextAssociation value
// shall be set
t2iapi.context.ContextAssociation context_association = 2; // the requested @ContextAssociation value
// of the context state
string operation_descriptor_handle = 3; // the operation descriptor handle for which the @OperatingMode value
string operation_descriptor_handle = 3; // the operation descriptor handle for which the OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested OperatingMode value of the operation state
}

/*
Request to set the @ActivationState of the component or metric with the given handle to the requested
ComponentActivation value and to set the @OperatingMode of the operation with the given handle to the requested
OperatingMode value.
*/
message SetComponentActivationAndSetOperatingModeRequest {
string component_metric_descriptor_handle = 1; // the component or metric descriptor handle for which
// the ActivationState shall be set
t2iapi.activation_state.ComponentActivation component_activation= 2; // the requested ComponentActivation value
string operation_descriptor_handle = 3; // the operation descriptor handle for which the OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested OperatingMode value of the operation state
}

/*
Request to set the @ActivationState of the alert with the given handle to the requested AlertActivation value and
to set the @OperatingMode of the operation with the given handle to the requested OperatingMode value.
*/
message SetAlertActivationAndSetOperatingModeRequest {
string alert_descriptor_handle = 1; // alert descriptor handle for which the ActivationState shall be set
t2iapi.activation_state.AlertActivation alert_activation= 2; // the requested AlertActivation value
string operation_descriptor_handle = 3; // the operation descriptor handle for which the OperatingMode value
// shall be set
t2iapi.operation.OperatingMode operating_mode = 4; // the requested @OperatingMode value of the operation state
t2iapi.operation.OperatingMode operating_mode = 4; // the requested OperatingMode value of the operation state
}
22 changes: 22 additions & 0 deletions src/t2iapi/combined/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ package t2iapi.combined;

import "t2iapi/combined/combined_requests.proto";
import "t2iapi/context/context_responses.proto";
import "t2iapi/basic_responses.proto";

option java_package = "com.draeger.medical.t2iapi.combined";
option java_outer_classname = "CombinedApiService";
Expand All @@ -29,4 +30,25 @@ service CombinedService {
rpc CreateContextStateWithAssociationAndSetOperatingMode (
t2iapi.combined.CreateContextStateWithAssociationAndSetOperatingModeRequest)
returns (t2iapi.context.CreateContextStateWithAssociationResponse);

/*
Request to set the @ActivationState of the component or metric with the given handle to the requested
ComponentActivation value and to set the @OperatingMode of the operation with the given handle to the requested
OperatingMode value.
The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED.
*/
rpc SetComponentActivationAndSetOperatingMode (
t2iapi.combined.SetComponentActivationAndSetOperatingModeRequest)
returns (BasicResponse);

/*
Request to set the @ActivationState of the alert with the given handle to the requested AlertActivation value and
to set the @OperatingMode of the operation with the given handle to the requested OperatingMode value.
The manipulated states shall be persistent until a next manipulation call or an SDC operation invocation.
If the device is not able to maintain the static states, it shall return RESULT_NOT_SUPPORTED.
*/
rpc SetAlertActivationAndSetOperatingMode (
t2iapi.combined.SetAlertActivationAndSetOperatingModeRequest)
returns (BasicResponse);
}

0 comments on commit 5c5f17c

Please sign in to comment.