Optical Turnstiles and Barrier Gates