简体   繁体   English

如何使用状态图作为代理的流程图

[英]How to use a state chart as the flow chart for an agent

I have two processes I want to juxtapose. 我有两个我希望并列的过程。 The first is a Manual workflow that is well represented by the Process library. 第一个是手动工作流程,由流程库很好地表示。 The second is a software System that performs the same work, but is better modelled as a state transition system (eg s/w component level). 第二个是执行相同工作的软件系统,但最好建模为状态转换系统(例如,s / w组件级别)。

Now in AnyLogic, state models are for agents, that can run through processes with animations (counts), or move across space. 现在在AnyLogic中,状态模型用于代理,可以运行具有动画(计数)的进程,或跨空间移动。 What if I want to use a state chart to run an agent through? 如果我想使用状态图表来运行代理怎么办? so I have a System state chart/agent and a Job state chart/agent? 所以我有一个系统状态图表/代理和一个工作状态图表/代理?

I want Jobs from Population A to go through the Manual process flow chart and Jobs from Population B to go through the System state flow chart, so I can juxtapose the processing costs. 我希望人口A的工作人员通过手册流程图和人口B的工作来完成系统状态流程图,这样我就可以并列处理成本。 I then calculate various delays and resource allocations for each of the Jobs going through and compare them. 然后,我计算每个作业的各种延迟和资源分配,并进行比较。

Can anyone explain how to setup a state chart as the base process, another agent will go through? 任何人都可以解释如何设置状态图作为基本过程,另一个代理将经历? Is this even possible? 这甚至可能吗?

Please help Thanks 请帮忙谢谢

This will not work as you would like it to, for these reasons: 由于以下原因,这不会按照您的意愿运行:

  • You can't send an Agent into a flowchart. 您无法将代理发送到流程图中。 (Not sure how AnyLogic is handling it internally, maybe a generic token, or no flow at all, just changes to the state). (不确定AnyLogic如何在内部处理它,可能是通用令牌,或根本没有流,只是改变状态)。

  • In AnyLogic there can only be one state active (simple or combined state) per state chart, so you can't represent a population with several members. 在AnyLogic中,每个状态图只能有一个状态为活动状态(简单状态或组合状态),因此您无法表示具有多个成员的总体。

  • Agents can't be in more then one flow at a time, so even if it would be possible to insert an Agent into a statechart, this limitation would also apply. 代理一次不能超过一个流,因此即使可以将代理插入状态图,这种限制也适用。

The conclusion of this is: State charts are suitable for modeling individual behaviour (inside one Agent), whereas process flows can be both used for individual behaviour (inside one Agent, running a dummy Agent through) as well as for groups (multiple Agents running through process). 结论是:状态图适用于对个体行为进行建模(在一个代理内部),而过程流可以用于单个行为(在一个代理内部,运行虚拟代理)以及用于组(多个代理运行)通过过程)。

The normal use case would be to add the state chart to the Agent type running through your process flow (as you already noted in your question), applying the changes caused by the state chart to the individual agent. 正常的用例是将状态图添加到通过流程流运行的代理类型(正如您在问题中已经提到的那样),将状态图引起的更改应用于单个代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 代理选项中“使用”的功能是什么,以及如何使用? - What is the function of “Use” in Agent Options and how to use it? 如何找出Clojure代理进入无效状态的原因 - How to find out why a Clojure agent got into invalid state 将新语言与对话框流代理集成 - Integrating a new language with dialog flow agent 如何使用 DialogFlow 的方法 projects.agent.import 将 zip 文件导入代理? - How to use Method projects.agent.import of DialogFlow for importing zip file to agent? 如何在基于AnyLogic Agent的仿真中使用个性化条件 - How to use indivdual condition in AnyLogic agent based simulation 如何在 jenkins 自由式项目中使用从代理名称作为参数 - How to use slave agent name as a parameter in jenkins freestyle project MQFTE代理的状态为问题状态。 原因是什么?如何纠正? - The status of the MQFTE agent is in problemm state. What is the reason for it and how can this be rectified? 检查另一个状态图代理类型 Anylogic 的状态 - check state of another statechart agent type Anylogic AnyLogic 中的代理群体 state 费用 - Agent-population state chages in AnyLogic Anylogic:如何在主代理中创建代理图? - Anylogic: How to create an agent graph in the Main agent?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM