From 92abed952f455601792b8ff9674eb39dc728d159 Mon Sep 17 00:00:00 2001 From: liyan Date: Thu, 2 Feb 2023 03:10:53 +0000 Subject: [PATCH] update zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md. Signed-off-by: li-yan339 Signed-off-by: liyan --- .../explicit-implicit-want-mappings.md | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md index 4d79a19ba5..b5f5430964 100644 --- a/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md +++ b/zh-cn/application-dev/application-models/explicit-implicit-want-mappings.md @@ -60,8 +60,9 @@ - 调用方传入的want参数的action不为空,待匹配Ability的skills配置中的actions不为空且不包含调用方传入的want参数的action,则action匹配失败。 - **图1** want参数的action匹配规则 - want-action + **图1** want参数的action匹配规则 + + ![want-action](figures/want-action.png) ### want参数的entities匹配规则 @@ -78,16 +79,18 @@ - 调用方传入的want参数的entities不为空,待匹配Ability的skills配置中的entities不为空且不完全包含调用方传入的want参数的entities,则entities匹配失败。 - **图2** want参数的entities匹配规则 -want-entities + **图2** want参数的entities匹配规则 + + ![want-entities](figures/want-entities.png) ### want参数的uri和type匹配规则 调用方传入的want参数中设置uri和type参数发起组件启动请求,系统会遍历当前系统已安装的组件列表,并逐个匹配待匹配Ability的skills配置中的uris数组,如果待匹配Ability的skills配置中的uris数组中只要有一个可以匹配调用方传入的want参数中设置的uri和type即为匹配成功。 -**图3** want参数中uri和type皆不为空时的匹配规则 -want-uri-type1 +**图3** want参数中uri和type皆不为空时的匹配规则 + +![want-uri-type1](figures/want-uri-type1.png) 实际应用中,uri和type共存在四种情况,下面将讲解四种情况的具体匹配规则: @@ -112,8 +115,9 @@ 下图为了简化描述,称want中传入的uri为w_uri,称want中传入的type为w_type, 待匹配Ability的skills配置中uris为s_uris,其中每个元素为s_uri;按自上而下顺序匹配。 -**图4** want参数中uri和type的具体匹配规则 -want-uri-type2 +**图4** want参数中uri和type的具体匹配规则 + +![want-uri-type2](figures/want-uri-type2.png) ### uri匹配规则 -- GitLab