Entity represents a process in the simulation. It adds a phase to event, so different events can be combined into one process. The constructor takes the phase, the queuing priority, the scheduling priority and the kill flag. If the kill flag is set to OK the termination count that was set in the simulation::run method decreases and the simulation possibly stops, if this event is terminated.