To stop the locomotive, the armature circuit was opened by the main switch, stopping the flow of current, and then brakes were applied by long levers.
(the armature circuit; was opened; by the main switch; stopping the flow of current) (brakes; were applied; by long levers; T:then)
the armature circuit brakes
was opened were applied
by the main switch stopping the flow of current
by long levers T:then