Plant simulator in Java