Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetComponentActivationAndSetOperatingMode and SetAlertActivationAndSe… #62

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
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.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
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.
*/
NerijusKondrotas marked this conversation as resolved.
Show resolved Hide resolved
rpc SetAlertActivationAndSetOperatingMode (
t2iapi.combined.SetAlertActivationAndSetOperatingModeRequest)
returns (BasicResponse);
}