Class ArrivalProcess

java.lang.Object
simu.framework.ArrivalProcess

public class ArrivalProcess extends Object
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 Details

    • ArrivalProcess

      public ArrivalProcess(ContinuousGenerator g, EventList tl, IEventType type)
      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 event
      tl - the event list to which the generated events will be added
      type - 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.