@@ -65,13 +65,13 @@ namespace simmer {
65
65
Arrival (Simulator* sim, const std::string& name, int mon, Order order,
66
66
Activity* first_activity, int priority = 0 )
67
67
: Process(sim, name, mon, priority), order(order), paused(false ),
68
- clones (new int (0 )), activity(first_activity), timer(NULL ), batch( NULL )
69
- { init (); }
68
+ clones (new int (0 )), activity(first_activity), timer(NULL ),
69
+ dropout( NULL ), batch( NULL ) { init (); }
70
70
71
71
Arrival (const Arrival& o)
72
72
: Process(o), order(o.order), paused(o.paused), clones(o.clones),
73
- activity(NULL ), attributes(o.attributes), timer(NULL ), batch( NULL )
74
- { init (); }
73
+ activity(NULL ), attributes(o.attributes), timer(NULL ),
74
+ dropout( NULL ), batch( NULL ) { init (); }
75
75
76
76
~Arrival () { reset (); }
77
77
@@ -186,6 +186,8 @@ namespace simmer {
186
186
batch = NULL ;
187
187
}
188
188
189
+ void set_dropout (Activity* next) { dropout = next; }
190
+
189
191
void set_renege (double timeout, Activity* next) {
190
192
cancel_renege ();
191
193
timer = new Task (sim, " Renege-Timer" ,
@@ -222,6 +224,7 @@ namespace simmer {
222
224
SelMap selected; /* *< selected resource */
223
225
Task* timer; /* *< timer that triggers reneging */
224
226
std::string signal; /* *< signal that triggers reneging */
227
+ Activity* dropout; /* *< drop-out trajectory */
225
228
Batched* batch; /* *< batch that contains this arrival */
226
229
ResMSet resources; /* *< resources that contain this arrival */
227
230
0 commit comments