Class ArrivalProcess
java.lang.Object
simu.framework.ArrivalProcess
The ArrivalProcess class is responsible for generating events based on a continuous distribution.
It uses a generator to sample the time for the next event and adds it to the event list.
-
Constructor Summary
ConstructorsConstructorDescriptionArrivalProcess(ContinuousGenerator g, EventList tl, IEventType type) Constructs an ArrivalProcess with the specified generator, event list, and event type. -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerates the next event based on the continuous generator and adds it to the event list.
-
Constructor Details
-
ArrivalProcess
Constructs an ArrivalProcess with the specified generator, event list, and event type.- Parameters:
g- the continuous generator used to sample the time for the next eventtl- the event list to which the generated events will be addedtype- the type of events to be generated
-
-
Method Details
-
generateNext
public void generateNext()Generates the next event based on the continuous generator and adds it to the event list. The event time is calculated as the current time plus a sampled value from the generator.
-