question

Mohamed Furquan K avatar image
0 Likes"
Mohamed Furquan K asked Ben Wilson commented

Separating the intake of service and patient elevator

In my model there is have 4 Elevators (2 for patient + 2 for staff). I would like to make sure the staff use only service elevator and the patient elevator used by patient + transporter .

Goal : Is to not transport patients in Service Elevator

1) Defined the barrier Rule 1 to Staff only.

2) CODE

treenode traveler = param(1);

/**Staff Only*/

return !isclasstype(traveler, "People::Staff") || traveler.TravelingWithoutPatient?;


3) I would like to know how to modify the code such that only Staff use Service elevator and no patients are transported in the elevator


FlexSim 20.1.2
healthcareflexsim 20.1.22020
barrier.jpg (22.6 KiB)
barrier1.jpg (81.4 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @mohamed_furquan.k, was matthew.gillespie's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept or comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

@Mohamed Furquan K The Staff Only condition does exactly that. It only let's Staff cross dividers assigned that condition. You may need to move the divider out a little bit more away from the front of the elevator. When people walk to the elevator they walk to a point a meter or two in front of the elevator, so you need to block off that space.

If you still can't get it working attach your model.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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