The SimKit simulation kernel is a simple discrete event simulation (DES) kernel that can be used to easily implement simulations. SimKit has been used to implement simulators as complicated as the ATM-TN simulator but has also been used to teach students DES.
The following links will take you through the registration process to get the SimKit source code (including examples and documentation):