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..762e759 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 CreateEnsembleContextStateWithAssociationResponse { + 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.