简体   繁体   English

Anylogic:尽管使用时间表定义了停机时间,但当停机时间开始时服务不会中断,它会继续

[英]Anylogic: Despite defining downtime with a schedule, instead of the service getting interrupted when downtime kicks in it continues

I have used a source service and sink.我使用了源服务和接收器。 service uses some resource as per a defined schedule.服务按照定义的时间表使用一些资源。 this resource is having a downtime as per a defined schedule, also the downtime has a preemption policy.该资源按照定义的计划有停机时间,停机时间也有抢占策略。

When the downtime kicks in, the service shall get interrupted and resumed once the downtime is over subject to the condition that resource is available for that service.当停机时间开始时,服务将被中断并在停机时间结束后恢复,但前提是资源可用于该服务。

But it is not working.但它不起作用。

i have provide all the model details in following link...我在以下链接中提供了所有模型详细信息...

please help me to debug this thing.请帮我调试这个东西。

Model link 模型链接

You need to define a preemption policy for your service block as well (eg Wait for original resource).您还需要为您的服务块定义一个抢占策略(例如等待原始资源)。 Otherwise, the current task for agents that are currently inside the service block will not be suspended when the downtime occurs.否则,当前位于服务块内的代理的当前任务将不会在发生停机时暂停。

服务抢占政策

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM