`
turingfellow
  • 浏览: 135085 次
  • 性别: Icon_minigender_1
  • 来自: 福建省莆田市
社区版块
存档分类
最新评论

capabilities 3/3

    博客分类:
  • jade
阅读更多
01<capability xmlns="http://jadex.sourceforge.net/jadex"
02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
03 xsi:schemaLocation="http://jadex.sourceforge.net/jadex
04 http://jadex.sourceforge.net/jadex-0.94.xsd"
05 package="jadex.examples.hunterprey.creature.actsense"
06 name="ActSense">
07
08<capabilities>
09<capability name="dfcap"file="jadex.planlib.DF"/>
10</capabilities>
11
12<beliefs>
13<beliefset name="hunters"class="Hunter"exported="true"/>
14<beliefset name="preys"class="Preys"exported="true"/>
15<beliefset name="obstacles"class="Obstacle"exported="true"/>
16<beliefset name="food"class="Food"exported="true"/>
17<belief name="environmentagent"class="jadex.adapter.fipa.AgentIdentifier"/>
18<beliefref name="my_self"class="Creature"exported="true">
19<abstract/>
20</beliefref>
21</beliefs>
22
23<goals>
24<achievegoal name="move"exported="true">
25<parameter name="direction"class="String"/>
26</achievegoal>
27<achievegoal name="eat"exported="true">
28<parameter name="object"class="WorldObject"/>
29</achievegoal>
30<achievegoalref name="df_search">
31<concrete ref="dfcap.df_search"/>
32</achievegoalref>
33</goals>
34
35<plans>
36<plan name="move">
37<body>new MovePlan()</body>
38<trigger><goal ref="move"/></trigger>
39</plan>
40<plan name="eat">
41<body>new EatPlan()</body>
42<trigger><goal ref="eat"/></trigger>
43</plan>
44<plan name="updatevision">
45<body>new UpdateVisionPlan()</body>
46<trigger><messageevent ref="inform_vision"/></trigger>
47</plan>
48</plans>
49
50<events>
51<messageevent name="inform_vision"type="fipa"direction="receive">
52<parameter name="performative"class="String"direction="fixed">
53<value>jadex.adapter.fipa.SFipa.INFORM</value>
54</parameter>
55<parameter name="language"class="String"direction="fixed">
56<value>jadex.adapter.fipa.SFipa.JAVA_XML</value>
57</parameter>
58<parameter name="ontology"class="String"direction="fixed">
59<value>HunterPreyOntology.ONTOLOGY_NAME</value>
60</parameter>
61<parameter name="content-class"class="Class"direction="fixed">
62<value>CurrentVision.class</value>
63</parameter>
64<parameter name="content"class="CurrentVision"/>
65</messageevent>
66</events>
67</capability>
Fig.5.Act/sense capabilityof food the creature discovers.They will lead to plan executions for reaching the
food’s location and eating it.The third goal type is called“wander around”(line
36)and initiates random walking on the map.In this paper the details of goal
declarations are out of scope,for an extensive description the reader can refer
to[2].
For proper operation the basic behavior capability needs access to the en-
vironmental beliefs made available by the included act/sense capability(lines
8-10).Therefore concrete belief set references are defined for hunters,obstacles
and food(lines 13-16).These belief set references are also exported allowing an
outer capability or the creature itself to access these values.An abstract and ex-
ported belief reference is assigned for“my self”,as the basic behavior capability
still does not know in which exact kind of prey it will be used.
To illustrate the parametrization of capabilities it is assumed that two dif-
ferent kinds of preys need to be created from the basic behavior capability.The
first labeled“LazyPrey”should only flee from nearby hunters and otherwise just
sit and wait where it is.On the contrary a“CleverPrey”should wander around
to explore the map,eat food and flee from hunters.For each kind of prey a
separate initial mental state has been specified(lines 48-57 and lines 58-63).
For the operation of a LazyPrey it is necessary to have an instance of a“keep
alone”goal to flee from hunters.This is achieved by creating an initial goal of
that type(line 55).Additionally,it is required to turn o?the reactive creation of
“eat food”goals which cannot be done directly.Hence,a belief“eating allowed”
is introduced as some kind of goal creation switch and used in the creation
condition of the“eat food”goal.In the initial state this belief is negated which
ensures that no“eat food”goals will be instantiated at runtime.
A CleverPrey needs to exploit the whole functionality of the basic behavior
capability.Thus,initial goals for exploring the map(line 60)and for escaping
from nearby hunters(line 61)are created.Nothing has to be declared in the
initial state for“eat food”goals,because these are created automatically at
runtime whenever a new piece of food is discovered as mentioned earlier.
6 Summary and Outlook
This paper revisits the capability concept introduced by Busetta et al.for modu-
larizing BDI agents,in which several conceptual limitations have been identified:
–No generic mechanism for importing/exporting arbitrary mental elements
such as beliefs and goals is available leading to a decreased usability.
–The parametrization of capabilities is not supported which hinders flexible
reuse of capabilities.
–Only design time composition is supported.
–Refinements of mental elements are not addressed.
In turn a new capability concept based on the main ideas of the original proposal
is introduced to address most of these shortcomings.Regarding the usability and
generality a new import/export mechanism is presented,allowing to treat all01<capability xmlns="http://jadex.sourceforge.net/jadex"
02 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
03 xsi:schemaLocation="http://jadex.sourceforge.net/jadex
04 http://jadex.sourceforge.net/jadex-0.94.xsd"
05 package="jadex.examples.hunterprey.creature.preys.basicbehaviour"
06 name="BasicBehaviour">
07
08<capabilities>
09<capability name="actsensecap"class="ActSense"/>
10</capabilities>
11
12<beliefs>
13<beliefsetref name="hunters"class="Hunter"exported="true">
14<concrete ref="actsensecap.hunters"/>
15<beliefsetref>
16<!–similar declarations for obstacles and food omitted for brevity.–>
17<beliefref name="my_self"class="Creature"exported="true">
18<assignto ref="actsensecap.my_self"/>
19<abstract/>
20</beliefref>
21<belief name="eating_allowed"class="boolean">
22<fact>true</fact>
23</belief>
24</beliefs>
25
26<goals>
27<maintaingoal name="keep_alone"exclude="never">
28<!–details omitted for brevity.–>
29</maintaingoal>
30<achievegoal name="eat_food">
31<creationcondition>
32$beliefbase.eating_allowed&&$beliefbase.food.length>0
33</creationcondition>
34<!–further details omitted for brevity.–>
35</achievegoal>
36<performgoal name="wander_around"retry="true"exclude="never"/>
37<achievegoalref name="move">
38<concrete ref="actsensecap.move"/>
39</achievegoalref>
40<achievegoalref name="eat">
41<concrete ref="actsensecap.eat"/>
42</achievegoalref>
43</goals>
44
45<plans><!–omitted for brevity.–></plans>
46
47<initialstates>
48<initialstate name="flee">
49<beliefs>
50<initialbelief ref="eating_allowed">
51<fact>false</fact>
52</initialbelief>
53</beliefs>
54<goals>
55<initialgoal name="escapegoal"ref="keep_alone"/>
56</goals>
57</initialstate>
58<initialstate name="wander_flee_eat">
59<goals>
60<initialgoal name="wandergoal"ref="wander_around"/>
61<initialgoal name="escapegoal"ref="keep_alone"/>
62</goals>
63</initialstate>
64</initialstates>
65</capability>
Fig.6.Basic prey behavior capabilityelements(e.g.beliefs or goals)in a similar fashion and hence simplifying the
way in which a capability interface is defined.Furthermore,parametrization is
supported through the definition of an initial mental state,which is defined as a
part of the capability itself.This allows for easy capability configuration as only
the state names need to be known in the including capability.
In addition to the aforementioned issues the new capability concept is also
prepared to handle the dynamic composition of capabilities at runtime to flexibly
adopt agent behavior.The extension points to add functionality at runtime are
already present in the new capability concept and have been tested in the current
implementation.The process of removing capabilities and their elements at any
time during the agent execution has only been sketched and is left for future
work.
Another area of future work which is also facilitated through the locality prin-
ciple is the refinement of elements from subcapabilities.Properties of an element
might be redefined on a proxy element.In our vision such an element refinement
has similarities with the inheritance relationship from object-orientation.E.g.a
goal reference type could be used to inherit all the properties of the concrete goal
and add new properties such as additional parameters.At runtime the proposed
creation semantics could help in deciding in which cases the redefined or the
original specification should be used.
Finally,an interesting topic for future research regards bringing together the
role-based decomposition approaches with the component-based capability ap-
proach.A capability might provide an implementation entity for a role identified
in an abstract design.Building agents capable of playing certain roles could then
be easily done by composing the agent from capabilities for each role.
分享到:
评论

相关推荐

    web3.0 development kit 海康威视32bit + 64bit最新开发包

    3. **库文件**:包含32位和64位的动态链接库(DLL)或静态库文件,这些库文件是与海康威视设备交互的核心,开发者在自己的应用程序中需要引用这些库。 4. **开发工具**:可能包括编译器、调试器、模拟器等,方便...

    ISAPI_2.0-PTZ Service.pdf

    3. 术语和关系 ISAPI 2.0-PTZ 服务规范定义了一些基本术语和关系,包括 PTZ 空间类型、PTZ 控制器、PTZ 通道、PTZ 能力等。 3.1 术语表 * PTZ 空间类型:描述 PTZ 设备的移动范围和方向。 * PTZ 控制器:控制 PTZ...

    海康威视WEB3.0开发包1.rar

    3. **WebComponentsKit.exe**:这是一个Web插件,它允许在浏览器环境中播放和控制海康威视的网络摄像头,支持H.265和H.264视频编码。H.265的引入意味着开发者可以在相同的带宽下获取更高质量的视频流,或者在保持...

    Linux下的Capabilities安全机制分析.pdf

    3. 文件权限管理:系统管理员可以使用setcap命令为文件分配capabilities,使得普通用户执行该文件时可以获得相应的权限。 总结来说,Linux的Capabilities安全机制是一种更为安全的权限管理策略,它通过细分root权限...

    linux下的Capabilities安全机制分析

    3. **系统调用**:Linux提供了多个系统调用,用于查询和设置进程和文件的Capabilities,例如`getcap`、`setcap`等。 4. **信号处理**:当进程接收到特定信号时,可能会触发Capabilities的更新或改变。 #### 应用...

    5G NR User Equipment (UE) radio access capabilities.pdf

    3. 无线接入能力(radio access capabilities):这部分描述了UE在无线通信方面所支持的功能和性能指标,如最大传输功率、对不同频段的支持、多输入多输出(MIMO)能力、调制解调技术等。 4. 3GPP标准:3GPP(3rd ...

    Wi-Fi_Alliance_Capabilities_Specification_v1.0 WiFi 联盟官方文档

    Wi-Fi Alliance Capabilities Specification v1.0 是一个由 Wi-Fi 联盟发布的官方文档,它详细介绍了 Wi-Fi 技术的特定功能和标准,旨在确保不同设备之间的互操作性和兼容性。 Wi-Fi 联盟是一家非营利组织,致力于...

    将java工程转为web工程(Myeclipse无法add web capabilities的时候)

    标题中提到的问题——“Myeclipse无法add web capabilities”,这可能是由于IDE的一些设置问题,或者是工程本身结构不满足Web工程的要求。解决这个问题,我们可以按照以下步骤操作: 1. **检查工程结构**:确保你的...

    海康威视WEB3.0开发包.zip

    3. **示例项目**:压缩包提供的示例项目是开发者快速理解和上手的关键。通过这些示例,开发者可以学习如何配置和调用控件,以及如何处理各种交互事件。示例通常包括基本的视频播放、高级功能如云台控制的实现,以及...

    ComponentOne 2013 V1 PowerSuite 3 2013 V1 3/5

    ComponentOne 2013 V1 PowerSuite 3 2013 V1 3/5 共五个压缩文件,请全部下载后解压 Enterprise-ready reporting, spreadsheets, and data analysis components for .NET applications. .NET Reporting, ...

    three.js加载webGPU的实例走起来

    3. 具体看一下官方示例。 4. 首先,下载chrome 金丝雀版本 并且打开chrome://flags/,搜索webgpu,启用unsafewebgpu选项。 5. 去github下载最新代码。直接查找webgpu功能页面。右键浏览。使用chrome金丝雀浏览器打开...

    opencore_framework_capabilities

    标题与描述均提到了"opencore_framework_capabilities",这实际上指的是Packet Video Corporation设计的OpenCORE多媒体框架的能力。这份文档详细介绍了在Android平台上的OpenCORE多媒体框架的各种功能和特性,以下是...

    Linux下的Capabilities安全机制的分析与完善.pdf

    3. **动态权限调整**:允许程序根据运行时的需求动态地获取或释放权限,而不是一开始就拥有全部权限。 4. **权限审计**:增强系统对权限使用的监控,以便发现并防止异常权限行为。 5. **安全策略强化**:制定更严格...

    Studio for WinForms 2012 v2 3/3

    Studio for WinForms 2012 v2 1/3 C1StudioNet_2012v2.msi 共三个压缩分卷,请全部下载后解压 65+ .NET Windows Forms controls, including the ones you can't get anywhere else. Generate a grid with a ...

    Effective Robotics Programming with ROS - 3td Edition 2016

    Effective Robotics Programming with ROS - 3td Edition,英文版,468页,文档格式AZW3/MOBI/EPUB/PDF About This Book This comprehensive, yet easy-to-follow guide will help you find your way through the ROS...

    iSeries Performance Capabilities Reference

    3. **获取文档方式**:用户可以通过iSeries Information Center在线图书馆免费下载该文档,或者通过特定命令在IBM的内部系统中请求获取。同时,IBM还提供了前一版本(V5R1和V4R5)的性能指南,便于用户进行版本间的...

    3GPP协议 - 38306-h10(英文版本).docx

    本文档是 3GPP 组织在 Release 17 中发布的一份技术规范文档,旨在规定用户设备(UE) radio access capabilities 的技术要求。该文档的主要内容包括用户设备(UE) radio access capabilities 的技术规范、试验方法...

    Luma3DSv10.0.1.zip

    Luma3DS is a program to patch the system software of (New) Nintendo 3DS handheld consoles "on the fly", adding features (such as per-game language settings and debugging capabilities for developers) ...

    微信小程序物流查询插件 uniapp开发

    微信小程序物流查询插件 ...https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/express_search.html#_1-%E6%8E%A5%E5%8F%A3%E9%89%B4%E6%9D%83

    Authentication- IO Capabilities.cywrk.Archive01.zip

    3. **IO接口**:可能包括如何安全地处理输入输出操作,如防止缓冲区溢出、SQL注入等攻击,以及使用安全的API和库。 4. **身份验证协议**:可能涵盖了各种身份验证协议,如HTTP Basic Auth、Digest Auth、OAuth2.0等...

Global site tag (gtag.js) - Google Analytics