如果老化高于阈值,如何将代理送去沉没

发布于 2025-02-08 09:34:11 字数 267 浏览 0 评论 0原文

我正在建立一个模型,在任何时间点,如果任何代理在系统中都超出阈值,则必须转到接收器块。是否可以根据系统中的代理时间进行操作?

如果代理商花了180天及以后,我想将其发送到注销块

I am building a model where at any point in time if any agent is in system beyond threshold it has to go to Sink block. Is it possible to do it based on Agent time in system ?

If agents spent 180 days and beyond I want to send it to write-off block
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

街角迷惘 2025-02-15 09:34:11

您首先需要做的是创建一个连接到水槽块的Enter块

完成此操作,大多数块都具有关联的删除方法,因此您可以使用任何代理A:

a.currentBlock().remove(a);
enter.take(a);

尽管如此,这不是我认为这不是一个好习惯,从任何块中删除了代理几乎随时可以肯定会以某种方式弄乱您的流程逻辑...

what you need to do first is to create an enter block that connects to your sink block
enter image description here

With that done, most of the blocks have a remove method associated, so you can do this, with any agent a:

a.currentBlock().remove(a);
enter.take(a);

Nevertheless, this is not good practice in my opinion, removing an agent from any block at any time will almost certainly mess up your flow logic in some way...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文