From 2e305433b861d7c270a6838388394ea0c854ef18 Mon Sep 17 00:00:00 2001 From: midttuna Date: Mon, 2 Sep 2024 23:07:55 +0300 Subject: [PATCH 1/2] Added manipulation CreateEnsembleContextWithAssociation --- CHANGELOG.md | 1 + src/t2iapi/context/context_requests.proto | 8 ++++++++ src/t2iapi/context/context_responses.proto | 8 ++++++++ src/t2iapi/context/service.proto | 8 ++++++++ 4 files changed, 25 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fe2195..fa8fd56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- manipulation CreateEnsembleContextStateWithAssociation - manipulation PhysicallyDisconnectRemovableSubsystemAfterSettingActivationStateOnOrStndBy - manipulation RequestIndicationOfNextCalibrationTimeRequired for devices - manipulation IndicateTimeOfNextCalibrationToUser for devices diff --git a/src/t2iapi/context/context_requests.proto b/src/t2iapi/context/context_requests.proto index e5f1ced..39506b2 100644 --- a/src/t2iapi/context/context_requests.proto +++ b/src/t2iapi/context/context_requests.proto @@ -45,6 +45,14 @@ message CreateContextStateWithAssociationRequest { ContextAssociation context_association = 2; // the initial association of the context state } +/* +Request to create or adapt a pm:EnsembleContextState with a given @ContextAssociation. + */ +message CreateEnsembleContextStateWithAssociationRequest { + string descriptor_handle = 1; + ContextAssociation context_association = 2; // the initial association of the pm:EnsembleContextState +} + /* Request to create or adapt a pm:AbstractContextState instance with a given @ContextAssociation and a given number of pm:Validator elements. diff --git a/src/t2iapi/context/context_responses.proto b/src/t2iapi/context/context_responses.proto index 4f7c649..0bef77e 100644 --- a/src/t2iapi/context/context_responses.proto +++ b/src/t2iapi/context/context_responses.proto @@ -24,6 +24,14 @@ message CreateContextStateWithAssociationResponse { string context_state_handle = 2; // handle of the context state, that was created or adapted } +/* +Response containing the handle of the newly created or adapted pm:EnsembleContextState. + */ +message CreateContextStateWithAssociationResponse { + BasicResponse status = 1; + string ensemble_context_state_handle = 2; // handle of the pm:EnsembleContextState, that was created or adapted +} + /* Response containing the context state handle and the prior mdib version. */ diff --git a/src/t2iapi/context/service.proto b/src/t2iapi/context/service.proto index 82cdff1..b2d7dbf 100644 --- a/src/t2iapi/context/service.proto +++ b/src/t2iapi/context/service.proto @@ -58,6 +58,14 @@ service ContextService { rpc CreateContextStateWithAssociation (t2iapi.context.CreateContextStateWithAssociationRequest) returns (t2iapi.context.CreateContextStateWithAssociationResponse); + /* + Create or adapt a pm:EnsembleContextState instance with the given @ContextAssociation value for the given descriptor handle. + The manipulated state shall be persistent until a next manipulation call. If the device is not able to maintain + the static state, it shall return RESULT_NOT_SUPPORTED. + */ + rpc CreateEnsembleContextStateWithAssociation (t2iapi.context.CreateEnsembleContextStateWithAssociationRequest) + returns (t2iapi.context.CreateEnsembleContextStateWithAssociationResponse); + /* Create or adapt a pm:AbstractContextState instance with the given @ContextAssociation value for the given descriptor handle and provide at least the number of pm:Validator elements for this ContextState. From 552ab596762b0b5aa6fd28569f426136195cfe98 Mon Sep 17 00:00:00 2001 From: midttuna Date: Mon, 2 Sep 2024 23:13:36 +0300 Subject: [PATCH 2/2] naming fix forgot Ensemble in name --- src/t2iapi/context/context_responses.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/t2iapi/context/context_responses.proto b/src/t2iapi/context/context_responses.proto index 0bef77e..762e759 100644 --- a/src/t2iapi/context/context_responses.proto +++ b/src/t2iapi/context/context_responses.proto @@ -27,7 +27,7 @@ message CreateContextStateWithAssociationResponse { /* Response containing the handle of the newly created or adapted pm:EnsembleContextState. */ -message CreateContextStateWithAssociationResponse { +message CreateEnsembleContextStateWithAssociationResponse { BasicResponse status = 1; string ensemble_context_state_handle = 2; // handle of the pm:EnsembleContextState, that was created or adapted }