As for the hump operation, an inbound train cuts its power off, a carman walks the track to bleed the air off all the cars in the track.
The cars are shoved up the hump by the hump engines, (at the Alton & Southern big double hump, the humpers are pairs of remote controlled UP SD40's), the cars, with no air, are let go by the pin puller at the top of the hump according to his switch list. All the infomation on each car in the cut being humped was fed into the hump computer. The order, the wieght, the destination, etc. When the car is cut free, the computer has lined the turnouts into the proper track and the computer applies the "retarders" with enough pressure to control the speed of the car as it rolls down the hump.
The computer knows how many cars are already in the track and basis its speed on that, first car into an empty track will not have much retarder applied so it will roll a long way. A "skate?, at the end of the track will stop the car from rolling out. the computer will slow the cars more as the track starts to fill so coupling will be made at a safe speed not to cause damage , usually 4 MPH or less.
After a track is full, a puller, (A&S uses pairs of remote controlled switch engines), to couple the track and pull the track or multiple tracks to the outbound track where roadpower is added, the air pressure pumped up, the brakes "set" and the carman inspect the entire train to ensure that all cars are safe to depart and that the brake pipe pressure "leakage" or air flow method, is within the parameters.
Forgive my windbag on brakes, which has little to do with this thread:
Years ago, up into the 1980's the Missouri Pacific had an air brake car, (ex passenger car) that toured the system and required engineers to attend as part of the rules classes. It was really a good class. It had the various locomotive brake valves and a number of car brake valves. When an application was "set" on the locomotive automatic brake valve, you could watch the brakes "set" on each car brake cylinder and they all had gauges so you could see what was happening.
Train air brakes "set from the front to back, so it may take a number of seconds before the rear car senses the brake pipe reduction and applies it's brakes.
With the advent of distributed power and computer controlled air brake valves on the locomotives, a DP unit in the middle or rear of the train will get the signal from the lead controlling unit computer to help draw down the brake pipe much quicker from the rear forward, appling the train brakes in a more uniform fasion. The DP units also will recharge the brake pipe at a much faster rate which will also release the train brakes much more uniformly and help prevent pull-aparts, (used to be more common, an engineer applies more horsepower to pull the train before the brakes on the rear portion on the train release all the way).
There are a number of rules today as to setting out cars individually or in blocks. Hand brake are tested to ensure that a car or cars will not roll. You may hear on a scanner, release brakes for a securement test. then a drag test to hear if the brakes on the wheels are screeching, all to make sure the hand brakes are properly applied and that enough are applied to hold the cars left behind. Now another rule, when making a single car setout, the above applies, but after yoru engine is cut away, you must wait 1 minute, then apply the handbrake somemore. (I guess the thinking here is after the emergency valve applies its air to the piston, there may be some extra tork to be applied to the hand brake?).
Anyway, we get tested or watch all the time by management to see that these rules are followed. The air brake rules are mandated both the company and the Federal Railroad Adminastration who also send agents in the feild to ensure the rules are complied with.
Dan