Text this: A MAS architecture for dynamic, realtime rescheduling and learning applied to railway transportation.