예제 #1
0
        public static ThinReflector CreateThinReflectorC()
        {
            int[] mapping = FactoryBase.ConvertMapping(REFLECTOR_C_THIN);

            var result = new ThinReflector(mapping);

            return(result);
        }
예제 #2
0
        public static ThinRotor CreateRotorGamma()
        {
            int[] mapping = FactoryBase.ConvertMapping(ROTOR_GAMMA);

            var result = new ThinRotor(mapping, 0);

            return(result);
        }
예제 #3
0
        public static Reflector CreateReflectorB()
        {
            int[] mapping = FactoryBase.ConvertMapping(REFLECTOR_B);

            var result = new Reflector(mapping);

            return(result);
        }
예제 #4
0
        public static Rotor CreateRotorVIII()
        {
            int[] mapping        = FactoryBase.ConvertMapping(ROTOR_VIII);
            int[] notchPositions = new[] { ('Z' - 'A'), ('M' - 'A') };

            var result = new Rotor(mapping, notchPositions, 0);

            return(result);
        }
예제 #5
0
        public static Rotor CreateRotorIV()
        {
            int[] mapping        = FactoryBase.ConvertMapping(ROTOR_IV);
            int[] notchPositions = new[] { 'J' - 'A' };

            var result = new Rotor(mapping, notchPositions, 0);

            return(result);
        }