PDA

View Full Version : How many Beds have been used in a BedArea?


Tom David
03-19-2010, 05:07 AM
I am looking for an easy and simple way to figure out how many beds have been used in a bed area.

Let’s assume I have a bed area with 15 beds. At the end of a simulation run I like to know how many beds have been used.

My solution would be to use the OnEntry trigger of each bed and write the bed number into one label (global information). Bed1 writes a 1, Bed2 writes a 2, etc. if the bed number is higher than the current label value. So if the label is 12 at the end, 12 beds have been used. Using the label makes it possible to show the value in the dashboard.

I am just wondering, if there is an easier way to solve this task and show the value in a dashboard.

If there is not an easier way, it might be an idea also to have statistics for areas. Or do we have them and I just did not know?

I mean statistics like content min, max, average, etc. like for the objects. Maybe not all of them, but some would be nice.
Or am I the only one, who thinks this could be useful?


And what you guys think about having two buttons to decrease and increase the run speed (half and double)? Several times I tried to use STRG UP and DOWN and really missing this functionality. Or am I the only one who is looking for this functionality?

Cliff King
04-09-2010, 09:49 AM
The number of beds being used in an area is recorded to the data structure of the area. There is a command setnumlocations() to set the number of active locations within an area which is used by the experimenter. There's also a dashboard widget found in the bar graph list called Group Occupancy (or something like that) that displays occupancy levels of an area, but it does so by reading the area's data structure rather than with a command that would be simple for a user to do. I will create a command to do this for v2.7.