The selector processing function does not depend on the selector or device to be connected. Simply separate and store the input stream and output it on demand.
Figure 5.3 shows the selector structure.

Figure 5.3 Selector structure (initial state)
The initial state of the selector is the state where the same numbered aperture and compartment are connected through the true output connector and compartment input connector. Other connectors are not connected.