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

Added manipulation CreateEnsembleContextWithAssociation #90

Closed
Closed
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/t2iapi/context/context_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions src/t2iapi/context/context_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/t2iapi/context/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't you just use the CreateContextStateWithAssociation manipulation?

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.
Expand Down
Loading