Affect, anticipation, and adaptation: affect-controlled selection of anticipatory simulation in artificial adaptive agents