within an AnyLogic project, in the 'seize' block I need to make a custom choice of resources from resource sets.
Having in the properties tab of the 'seize' block the field "Resource sets" with the value { {ResourcePool_A, ResourcePool_B} }
and the flag "customize resource choice" checked. In the "resource choice condition" code section, I need to make a choice like:
if (unit isfrom ResourcePool_A)
{
if (unit.param_a == value)
do something
....
}
else if (unit isfrom ResourcePool_B)
{
if (unit.param_b == value)
do something
....
}
How can I check if a resource unit is from a given pool or not and then discriminate resources accordingly with their features? Thank you. Best regards.