Using an Agent-Based Formalism to Simulate Passenger Flows