Skip to content

Commit

Permalink
Adapt ensemble context indicate membership with identification (Draeg…
Browse files Browse the repository at this point in the history
…erwerk#54)

Adapt description and return value of the manipulation to indicate
membership in an SDC PARTICIPANT ENSEMBLE.

# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer

---------

Co-authored-by: Albrecht Kleinfeld <[email protected]>
  • Loading branch information
a-kleinf and a-kleinf authored Aug 8, 2023
1 parent 5db3d59 commit 2c71bea
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- TriggerAnyDescriptorUpdate manipulation

### Changed
- semantics for the EnsembleContextIndicateMembershipWithIdentification manipulation
- semantics for the SetMetricValuesInRange manipulation
- semantics for the SetAlertConditionPresence manipulation
- semantics for SetOperatingMode manipulation
- manipulation SetInvalidValue to SetIncorrectValue, changed semantics
- semantics for SetAlertActivation, SetComponentActivation, SetAlarmSignalInactivationState,
SetAlertSystemNotFunctional, SetLocationDetail, RemoveAllContextStateValidators, SetContextStateAssociation,
CreateContextStateWithAssociation, CreateContextStateWithAssociationAndUniqueIdentification,
CreateContextStateWithAssocIdentificationAndValidator, RemoveIdentificationOfContextState,
ChangeIdentificationOfContextState, CreateContextStateWithAssocAndSpecificValidator,
SetClockDevice, SetLanguage, SetNoValue, SetMetricValuesWithQualityMode
CreateContextStateWithAssociation, CreateContextStateWithAssocIdentificationAndValidator,
CreateContextStateWithAssocAndSpecificValidator, SetClockDevice, SetLanguage, SetNoValue,
SetMetricValuesWithQualityMode
- semantics for CreateContextStateWithAssociationAndValidators manipulation
- semantics for SetDeviceOperatingMode manipulation
- message PartialIdentification to message PartialInstanceIdentifier
Expand Down
6 changes: 3 additions & 3 deletions src/t2iapi/context/context_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ message GetSupportedContextTypesResponse {
}

/*
Response which contains Identification including a list of InstanceIdentifier elements
which identify an ensemble and thus enables the caller to distinguish ensembles from each other.
Response which contains a list of lists with pm:Identification elements. Each list of pm:Identification elements
identifies a pm:EnsembleContextState and thus enables the differentiation of ensembles from each other.
*/
message EnsembleContextIndicateMembershipWithIdentificationResponse {
BasicResponse status = 1;
repeated PartialInstanceIdentifier identification = 2;
repeated IdentificationList identification_list = 3;
}
10 changes: 7 additions & 3 deletions src/t2iapi/context/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ service ContextService {
returns (BasicResponse);

/*
Indicate membership in an SDC PARTICIPANT ENSEMBLE using an ensemble context that has the provided descriptor handle
and return a list of pm:Identification elements which identify an ensemble and thus enable the caller to distinguish
ensembles from each other.
Indicate membership in an SDC PARTICIPANT ENSEMBLE using ensemble context state(s) that have the provided descriptor
handle and return a list of pm:Identification elements which identify the ensemble context state(s).
If already one or more pm:EnsembleContextState(s) indicate the membership, it is not needed to create a new
pm:EnsembleContextState(s). In this case it is sufficient to only return the BasicResponse and the pm:Identification
elements.
The 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 EnsembleContextIndicateMembershipWithIdentification (BasicHandleRequest)
returns (EnsembleContextIndicateMembershipWithIdentificationResponse);
Expand Down
8 changes: 7 additions & 1 deletion src/t2iapi/response_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@ enum Result {
RESULT_NOT_IMPLEMENTED = 3;
}

/*
Represents pm:Identification (defined in IEEE Std 11073-10207-2017).
*/
message IdentificationList {
repeated PartialInstanceIdentifier identification = 1; // list of identifiers for contexts
}

/*
Represents InstanceIdentifier (defined in IEEE Std 11073-10207-2017).
Represents pm:InstanceIdentifier (defined in IEEE Std 11073-10207-2017).
Following combinations of InstanceIdentifier/@Root and InstanceIdentifier/@Extension are allowed:
+------------------------------------------------------------------------+
Expand Down

0 comments on commit 2c71bea

Please sign in to comment.