Stochastic dynamic equilibrium models in Java and Scala.