简体   繁体   中英

how to seize resource permanently using Anylogic

is it possible to seize resource permanently to agent until end of model.. like we assigning token

I try to use seize and service block with resource pool but its not working

It is not how seizing is supposed to work. If you want to permanently reduce the size of a resource pool by 1 (effectively what you want to do), then simply call

myResourcePool.setCapacity(myResourcePool.getCapacity()-1);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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