Patent ID: 8826250
Filing Date: 2014-09-02
Classification: G06F

Abstract:
1. A method for discrete event simulation model of a system utilizing just-in-time compilation for at least one code block associated with at least one event in the discrete event simulation model, the method comprising the steps of: (a) determining the at least one event in the discrete event simulation model; (b) retrieving the at least one code block associated with the at least one event; (c) compiling the at least one code block into an object file (OBJ) using a compiler; (d) linking the object file with at least one predetermined function in a simulation library (LIB); (e) compiling the object file and the at least one predetermined function into a customized dynamic link library (DLL); (f) loading the customized dynamic link library within a discrete event simulation program execution; (g) linking the customized dynamic link library to a simulation program associated to the system; and (h) executing at least one user-entered logic in high speed by integrating a just-in-time compiler embedded into the discrete event simulation model to allow dynamic generation of high speed code blocks associated with the at least one event, the at least one user-entered logic being defined as a set of user-entered text that refers to system states and future events lists including a list of pending activities, a history of previously executed events or a previous system state at a previous moment of execution; whereby each at least one event has at least one event type, k, and for each k, a custom section of code is encapsulated inside a single function and compiled to a memory location to define the at least one code block, which is dynamically shared in the simulation program or other simulation programs executed within a context of an existing code block or other code blocks in a serial or recursive manner.