Self-Regulated Learning in Virtual Simulations