Java library for execution of discrete events simulations