diff --git a/CHANGELOG.md b/CHANGELOG.md index e1404ad..704701f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/t2iapi/combined/combined_requests.proto b/src/t2iapi/combined/combined_requests.proto index 6f2334f..865cd14 100644 --- a/src/t2iapi/combined/combined_requests.proto +++ b/src/t2iapi/combined/combined_requests.proto @@ -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"; @@ -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 } diff --git a/src/t2iapi/combined/service.proto b/src/t2iapi/combined/service.proto index 0899e8f..328bcc5 100644 --- a/src/t2iapi/combined/service.proto +++ b/src/t2iapi/combined/service.proto @@ -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"; @@ -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); }