question

Lars Jacobsen avatar image
0 Likes"
Lars Jacobsen asked Jeanette F commented

How to add a Site ID to Storage System Address Scheme?

Is it possible to expand the storage system address scheme with an additional field, i.e. Site ID? The issue is that I would like to query storage possibilities by site and not only globally.


1660122955237.png

FlexSim 22.1.3
storage systemaddress scheme
1660122955237.png (28.1 KiB)
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel commented

The simplest way will be to duplicate the address scheme for each site and include the site ID at the start.

1660125019189.png

1660125222071.png


Then on the storage objects choose the correct scheme for the site:

1660125085224.png

1660125102805.png



1660125019189.png (15.0 KiB)
1660125085224.png (5.7 KiB)
1660125102805.png (5.7 KiB)
1660125222071.png (9.4 KiB)
· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Lars Jacobsen avatar image
0 Likes"
Lars Jacobsen answered Jason Lightfoot edited

Thanks for all the input. I realized that I can use slot.storageObject to limit the result of the sql query.


Object Site = Model.find("SiteA");

Array WrhObj = Site.subnodes.toArray();

int Zone = 10;

return Storage.system.querySlots("WHERE slot.zoneID = $1 AND slot.storageObject IN $2", 0, Zone, WrhObj).as(Array).length;


1660199196567.png


1660199196567.png (117.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I don't believe that this is possible.

You could use an (indexed) slot label for that purpose though. Or is there any reason you would like to avoid using labels?

1660124001354.png


1660124001354.png (215.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.