Skip to content

Commit

Permalink
Updated manipulation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-Draeger committed Jun 7, 2024
1 parent f63be31 commit 8fddb9d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/t2iapi/context/context_requests.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Request to create or adapt a context state with a given association, a list of s
message CreateContextStateWithAssocAndSpecificValidatorAndSpecificIdentificationRequest {
string descriptor_handle = 1;
ContextAssociation context_association = 2; // the initial association of the context state
repeated ValidatorType validator_type = 3; // type of pm:Validator
string num_validators = 3; // number of pm:Validator elements
string identification_root = 4; // pm:Identification/@Root
string identification_extension = 5; // pm:Identification/@Extension
}
Expand Down
16 changes: 11 additions & 5 deletions src/t2iapi/context/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,17 @@ service ContextService {
returns (t2iapi.context.CreateContextStateWithAssociationResponse);

/*
Create a ContextState instance for the given descriptor handle, that
- has the given @contextAssociation value,
- has exactly the pm:Validators listed in the request, (in particular: no pm:Validators when
the list is empty), and
- has exactly one pm:Identification with the given @Root and @Extension and no other children.
Create or adapt a ContextState instance for the given descriptor handle, that
- is related to the given descriptor_handle and of appropriate class for a state of this descriptor,
- has the given context_association value,
- has the given number of pm:Validators (num_validators)
- has exactly one pm:Identification with the given identification_root
and identification_extension and no other children.
Shall return the handle of the context state. This context state shall either be
newly created or it shall be adapted from a previously existing context state of the same descriptor, by
- disassociating it (in case it was associated)
- changing its Validators and Identifications
- setting its @contextAssociation to the given value.
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.
*/
Expand Down

0 comments on commit 8fddb9d

Please sign in to comment.