Because the complexity of the simulation mainly occurs in algorithmic and not in mathematics, JAVA is an excellent choice because this programming language is full and has already been introduced in the commercial engineering course at FEB Gent. The simulation program was designed in such a way that all parameters can be read in by means of a text file. This file has a fixed structure and was drawn up in a way that all necessary information for the program can be specified. The information provided relates to the arrival process, the specifications of the queue, the operating process and the data that needs to be kept for making a certain. The reading of this file queue management is done by a regular expression, after which the necessary information is stored in different HashMaps structured according to a tree structure.
These Hash Maps will then be added later in the program where online queue management system necessary. Even if multiple simulations are required to obtain certain data that are necessary for the establishment of a specific, this read in file will be functional. After all, every that can be drawn up is linked to a class in which the parameters will vary in the necessary way to obtain the correct data. The simulation program is made up of different classes and sub classes. Each separate class has a specific function in the program. Because not every class of the simulation program can be discussed separately, the classes in this text are structured into groups that are discussed in the following paragraphs. As already mentioned, distributions will often be used in the simulation program. In order to implement this, the super class Distribution was created with its sub classes Poisson, Binomial, Geometric and Deterministic. These class group ensures that a correct distribution can always be created in the program and that numbers can be generated according to this created distribution when necessary. To implement online queue management system this function, the commons math .jar library was added to the program.
This library has the Distribution package which makes it very simple to customer queue management system initialize a distribution and generate numbers according to a certain distribution. In the simulation program, a difference is needed between the distributions used for the incidence and the distributions that are used to determine the length of an arriving train. Because the length of an arriving train must always be at least package, we will use a shifted discrete distribution for the length. In concrete terms, the sample value will always be increased by unit. This does not have to be a problem, although one must be attentive when determining and entering an average value in the read in file for this shifted distribution.
The table below shows the average values for the original and customer queue management system shifted discrete distributions. Under the group arrival process the classes Arrival, Packet and Train are understood. The classes Packet and Train provide all information with a package or train respectively when that package or train is created. For a train this is the arrival time the time slot in which the train is created and the number of remaining packages from which the train still exists in this time slot. For a package this is the type of package type and type packages are distinguished in the program by initializing a Boolean true or false when the package is created, in which time visit here slots the package was created and to which train the package belongs.