Transistor in saturation and cutoff modes acts as ON switch and OFF switch respectively.SPDT switch is used just for forward and reverse biasing the transistor.Blue wire indicates reverse biasing the transistor.Green wire indicates forward biasing the transistor.