How to retrieve data for a preemped arrival

7 views
Skip to first unread message

Dan Ng

unread,
Aug 29, 2024, 9:46:06 PM8/29/24
to simmer-devel
Hi Inaki,

In the "Priority customers with preemption" example, is it possible to retrieve data that shows which customer was displaced by Guido?

Thank you.
Dan

Iñaki Ucar

unread,
Aug 30, 2024, 12:23:40 PM8/30/24
to simmer...@googlegroups.com
Hi,

On Fri, 30 Aug 2024 at 03:46, Dan Ng <dungngu...@gmail.com> wrote:
Hi Inaki,

In the "Priority customers with preemption" example, is it possible to retrieve data that shows which customer was displaced by Guido?

Not directly, but it's easy to see:

> bank |> get_mon_arrivals(per_resource=TRUE)
       name start_time end_time activity_time resource replication
1 Customer0  0.0000000       12            12  counter           1
2    Guido0 23.0000000       35            12  counter           1
3 Customer1  0.1773647       36            12  counter           1
4 Customer2  8.6410598       48            12  counter           1
5 Customer3 21.1345850       60            12  counter           1
6 Customer4 28.0923489       72            12  counter           1

Customer1 is right after Guido0, and the start_time is before Guido's, so Guido must have displaced Customer1.
 
--
Iñaki Úcar

Dan Ng

unread,
Aug 30, 2024, 7:49:45 PM8/30/24
to simmer-devel
Super! Thanks very much for quick reply!
Dan
Reply all
Reply to author
Forward
0 new messages