Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 public DVBSChannel()
 {
     SwitchingFrequency = 0;
     DisEqc             = DisEqcType.SimpleA;
     _bandType          = BandType.Universal;
     _satelliteIndex    = -1;
     _modulation        = ModulationType.ModQpsk;
     _innerFecRate      = BinaryConvolutionCodeRate.RateNotSet;
     _pilot             = Pilot.NotSet;
     _rollOff           = RollOff.NotSet;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 /// <param name="chan">The chan.</param>
 public DVBSChannel(DVBSChannel chan)
     : base(chan)
 {
     _polarisation       = chan.Polarisation;
     _symbolRate         = chan.SymbolRate;
     _switchingFrequency = chan.SwitchingFrequency;
     DisEqc          = chan.DisEqc;
     _bandType       = chan.BandType;
     _modulation     = chan.ModulationType;
     _innerFecRate   = chan.InnerFecRate;
     _pilot          = chan.Pilot;
     _rollOff        = chan.Rolloff;
     _satelliteIndex = chan.SatelliteIndex;
 }
 internal void load(XmlReader reader)
 {
     switch (reader.Name)
     {
         case "CarrierFrequency":
             Frequency = Int32.Parse(reader.ReadString());
             break;
         case "Polarisation":
             switch (reader.ReadString())
             {
                 case "CircularL":
                     polarization = new SignalPolarization(SignalPolarization.CircularLeft);
                     break;
                 case "CircularR":
                     polarization = new SignalPolarization(SignalPolarization.CircularRight);
                     break;
                 case "LinearH":
                     polarization = new SignalPolarization(SignalPolarization.LinearHorizontal);
                     break;
                 case "LinearV":
                     polarization = new SignalPolarization(SignalPolarization.LinearVertical);
                     break;
             }
             break;
         case "SymbolRate":
             symbolRate = Int32.Parse(reader.ReadString());
             break;
         case "InnerFecRate":
             switch (reader.ReadString())
             {
                 case "Rate1_2":
                     fec = new FECRate(FECRate.FECRate12);
                     break;
                 case "Rate1_3":
                     fec = new FECRate(FECRate.FECRate13);
                     break;
                 case "Rate1_4":
                     fec = new FECRate(FECRate.FECRate14);
                     break;
                 case "Rate2_3":
                     fec = new FECRate(FECRate.FECRate23);
                     break;
                 case "Rate2_5":
                     fec = new FECRate(FECRate.FECRate25);
                     break;
                 case "Rate3_4":
                     fec = new FECRate(FECRate.FECRate34);
                     break;
                 case "Rate3_5":
                     fec = new FECRate(FECRate.FECRate35);
                     break;
                 case "Rate4_5":
                     fec = new FECRate(FECRate.FECRate45);
                     break;
                 case "Rate5_11":
                     fec = new FECRate(FECRate.FECRate511);
                     break;
                 case "Rate5_6":
                     fec = new FECRate(FECRate.FECRate56);
                     break;
                 case "Rate6_7":
                     fec = new FECRate(FECRate.FECRate67);
                     break;
                 case "Rate7_8":
                     fec = new FECRate(FECRate.FECRate78);
                     break;
                 case "Rate8_9":
                     fec = new FECRate(FECRate.FECRate89);
                     break;
                 case "Rate9_10":
                     fec = new FECRate(FECRate.FECRate910);
                     break;
             }
             break;
         case "CollectionType":
             switch (reader.ReadString())
             {
                 case "EIT":
                     CollectionType = CollectionType.EIT;
                     break;
                 case "MHEG5":
                     CollectionType = CollectionType.MHEG5;
                     break;
                 case "OPENTV":
                     CollectionType = CollectionType.OpenTV;
                     break;
                 case "MHW1":
                     CollectionType = CollectionType.MediaHighway1;
                     break;
                 case "MHW2":
                     CollectionType = CollectionType.MediaHighway2;
                     break;
                 case "FREESAT":
                     CollectionType = CollectionType.FreeSat;
                     break;
                 case "PSIP":
                     CollectionType = CollectionType.PSIP;
                     break;
                 case "DISHNETWORK":
                     CollectionType = CollectionType.DishNetwork;
                     break;
                 case "BELLTV":
                     CollectionType = CollectionType.BellTV;
                     break;
                 case "SIEHFERNINFO":
                     CollectionType = CollectionType.SiehfernInfo;
                     break;
             }
             break;
         case "Pilot":
             switch (reader.ReadString())
             {
                 case "NotSet":
                     pilot = Pilot.NotSet;
                     break;
                 case "NotDefined":
                     pilot = Pilot.NotDefined;
                     break;
                 case "On":
                     pilot = Pilot.On;
                     break;
                 case "Off":
                     pilot = Pilot.Off;
                     break;
                 default:
                     pilot = Pilot.NotSet;
                     break;
             }
             break;
         case "Rolloff":
             switch (reader.ReadString())
             {
                 case "NotSet":
                     rollOff = RollOff.NotSet;
                     break;
                 case "NotDefined":
                     rollOff = RollOff.NotDefined;
                     break;
                 case "Twenty":
                     rollOff = RollOff.RollOff20;
                     break;
                 case "TwentyFive":
                     rollOff = RollOff.RollOff25;
                     break;
                 case "ThirtyFive":
                     rollOff = RollOff.RollOff35;
                     break;
                 default:
                     rollOff = RollOff.NotSet;
                     break;
             }
             break;
         case "Modulation":
             switch (reader.ReadString())
             {
                 case "ModBPSK":
                     modulation = Modulation.BPSK;
                     break;
                 case "ModOQPSK":
                     modulation = Modulation.OQPSK;
                     break;
                 case "Mod8Psk":
                     modulation = Modulation.PSK8;
                     break;
                 case "Mod1024Qam":
                     modulation = Modulation.QAM1024;
                     break;
                 case "Mod112Qam":
                     modulation = Modulation.QAM112;
                     break;
                 case "Mod128Qam":
                     modulation = Modulation.QAM128;
                     break;
                 case "Mod16Qam":
                     modulation = Modulation.QAM16;
                     break;
                 case "Mod160Qam":
                     modulation = Modulation.QAM160;
                     break;
                 case "Mod192Qam":
                     modulation = Modulation.QAM192;
                     break;
                 case "Mod224Qam":
                     modulation = Modulation.QAM224;
                     break;
                 case "Mod256Qam":
                     modulation = Modulation.QAM256;
                     break;
                 case "Mod32Qam":
                     modulation = Modulation.QAM32;
                     break;
                 case "Mod320Qam":
                     modulation = Modulation.QAM320;
                     break;
                 case "Mod384Qam":
                     modulation = Modulation.QAM384;
                     break;
                 case "Mod448Qam":
                     modulation = Modulation.QAM448;
                     break;
                 case "Mod512Qam":
                     modulation = Modulation.QAM512;
                     break;
                 case "Mod64Qam":
                     modulation = Modulation.QAM64;
                     break;
                 case "Mod640Qam":
                     modulation = Modulation.QAM640;
                     break;
                 case "Mod768Qam":
                     modulation = Modulation.QAM768;
                     break;
                 case "Mod80Qam":
                     modulation = Modulation.QAM80;
                     break;
                 case "Mod896Qam":
                     modulation = Modulation.QAM896;
                     break;
                 case "Mod96Qam":
                     modulation = Modulation.QAM96;
                     break;
                 case "ModQPSK":
                     modulation = Modulation.QPSK;
                     break;
             }
             break;
         case "OpenTVCode":
             OpenTVCode = reader.ReadString();
             break;
         default:
             break;
     }
 }
        internal void load(XmlReader reader)
        {
            switch (reader.Name)
            {
            case "CarrierFrequency":
                Frequency = Int32.Parse(reader.ReadString());
                break;

            case "Polarisation":
                switch (reader.ReadString())
                {
                case "CircularL":
                    polarization = new SignalPolarization(SignalPolarization.CircularLeft);
                    break;

                case "CircularR":
                    polarization = new SignalPolarization(SignalPolarization.CircularRight);
                    break;

                case "LinearH":
                    polarization = new SignalPolarization(SignalPolarization.LinearHorizontal);
                    break;

                case "LinearV":
                    polarization = new SignalPolarization(SignalPolarization.LinearVertical);
                    break;
                }
                break;

            case "SymbolRate":
                symbolRate = Int32.Parse(reader.ReadString());
                break;

            case "InnerFecRate":
                switch (reader.ReadString())
                {
                case "Rate1_2":
                    fec = new FECRate(FECRate.FECRate12);
                    break;

                case "Rate1_3":
                    fec = new FECRate(FECRate.FECRate13);
                    break;

                case "Rate1_4":
                    fec = new FECRate(FECRate.FECRate14);
                    break;

                case "Rate2_3":
                    fec = new FECRate(FECRate.FECRate23);
                    break;

                case "Rate2_5":
                    fec = new FECRate(FECRate.FECRate25);
                    break;

                case "Rate3_4":
                    fec = new FECRate(FECRate.FECRate34);
                    break;

                case "Rate3_5":
                    fec = new FECRate(FECRate.FECRate35);
                    break;

                case "Rate4_5":
                    fec = new FECRate(FECRate.FECRate45);
                    break;

                case "Rate5_11":
                    fec = new FECRate(FECRate.FECRate511);
                    break;

                case "Rate5_6":
                    fec = new FECRate(FECRate.FECRate56);
                    break;

                case "Rate6_7":
                    fec = new FECRate(FECRate.FECRate67);
                    break;

                case "Rate7_8":
                    fec = new FECRate(FECRate.FECRate78);
                    break;

                case "Rate8_9":
                    fec = new FECRate(FECRate.FECRate89);
                    break;

                case "Rate9_10":
                    fec = new FECRate(FECRate.FECRate910);
                    break;
                }
                break;

            case "CollectionType":
                switch (reader.ReadString())
                {
                case "EIT":
                    CollectionType = CollectionType.EIT;
                    break;

                case "MHEG5":
                    CollectionType = CollectionType.MHEG5;
                    break;

                case "OPENTV":
                    CollectionType = CollectionType.OpenTV;
                    break;

                case "MHW1":
                    CollectionType = CollectionType.MediaHighway1;
                    break;

                case "MHW2":
                    CollectionType = CollectionType.MediaHighway2;
                    break;

                case "FREESAT":
                    CollectionType = CollectionType.FreeSat;
                    break;

                case "PSIP":
                    CollectionType = CollectionType.PSIP;
                    break;

                case "DISHNETWORK":
                    CollectionType = CollectionType.DishNetwork;
                    break;

                case "BELLTV":
                    CollectionType = CollectionType.BellTV;
                    break;

                case "SIEHFERNINFO":
                    CollectionType = CollectionType.SiehfernInfo;
                    break;
                }
                break;

            case "Pilot":
                switch (reader.ReadString())
                {
                case "NotSet":
                    pilot = Pilot.NotSet;
                    break;

                case "NotDefined":
                    pilot = Pilot.NotDefined;
                    break;

                case "On":
                    pilot = Pilot.On;
                    break;

                case "Off":
                    pilot = Pilot.Off;
                    break;

                default:
                    pilot = Pilot.NotSet;
                    break;
                }
                break;

            case "Rolloff":
                switch (reader.ReadString())
                {
                case "NotSet":
                    rollOff = RollOff.NotSet;
                    break;

                case "NotDefined":
                    rollOff = RollOff.NotDefined;
                    break;

                case "Twenty":
                    rollOff = RollOff.RollOff20;
                    break;

                case "TwentyFive":
                    rollOff = RollOff.RollOff25;
                    break;

                case "ThirtyFive":
                    rollOff = RollOff.RollOff35;
                    break;

                default:
                    rollOff = RollOff.NotSet;
                    break;
                }
                break;

            case "Modulation":
                switch (reader.ReadString())
                {
                case "ModBPSK":
                    modulation = Modulation.BPSK;
                    break;

                case "ModOQPSK":
                    modulation = Modulation.OQPSK;
                    break;

                case "Mod8Psk":
                    modulation = Modulation.PSK8;
                    break;

                case "Mod1024Qam":
                    modulation = Modulation.QAM1024;
                    break;

                case "Mod112Qam":
                    modulation = Modulation.QAM112;
                    break;

                case "Mod128Qam":
                    modulation = Modulation.QAM128;
                    break;

                case "Mod16Qam":
                    modulation = Modulation.QAM16;
                    break;

                case "Mod160Qam":
                    modulation = Modulation.QAM160;
                    break;

                case "Mod192Qam":
                    modulation = Modulation.QAM192;
                    break;

                case "Mod224Qam":
                    modulation = Modulation.QAM224;
                    break;

                case "Mod256Qam":
                    modulation = Modulation.QAM256;
                    break;

                case "Mod32Qam":
                    modulation = Modulation.QAM32;
                    break;

                case "Mod320Qam":
                    modulation = Modulation.QAM320;
                    break;

                case "Mod384Qam":
                    modulation = Modulation.QAM384;
                    break;

                case "Mod448Qam":
                    modulation = Modulation.QAM448;
                    break;

                case "Mod512Qam":
                    modulation = Modulation.QAM512;
                    break;

                case "Mod64Qam":
                    modulation = Modulation.QAM64;
                    break;

                case "Mod640Qam":
                    modulation = Modulation.QAM640;
                    break;

                case "Mod768Qam":
                    modulation = Modulation.QAM768;
                    break;

                case "Mod80Qam":
                    modulation = Modulation.QAM80;
                    break;

                case "Mod896Qam":
                    modulation = Modulation.QAM896;
                    break;

                case "Mod96Qam":
                    modulation = Modulation.QAM96;
                    break;

                case "ModQPSK":
                    modulation = Modulation.QPSK;
                    break;
                }
                break;

            case "OpenTVCode":
                OpenTVCode = reader.ReadString();
                break;

            default:
                break;
            }
        }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 public DVBSChannel()
 {
   SwitchingFrequency = 0;
   DisEqc = DisEqcType.SimpleA;
   _bandType = BandType.Universal;
   _satelliteIndex = -1;
   _modulation = ModulationType.ModQpsk;
   _innerFecRate = BinaryConvolutionCodeRate.RateNotSet;
   _pilot = Pilot.NotSet;
   _rollOff = RollOff.NotSet;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 /// <param name="chan">The chan.</param>
 public DVBSChannel(DVBSChannel chan)
   : base(chan)
 {
   _polarisation = chan.Polarisation;
   _symbolRate = chan.SymbolRate;
   _switchingFrequency = chan.SwitchingFrequency;
   DisEqc = chan.DisEqc;
   _bandType = chan.BandType;
   _modulation = chan.ModulationType;
   _innerFecRate = chan.InnerFecRate;
   _pilot = chan.Pilot;
   _rollOff = chan.Rolloff;
   _satelliteIndex = chan.SatelliteIndex;
 }
Beispiel #7
0
        /// <summary>
        /// Ermittelt ein Kürzel für diese Gruppe.
        /// </summary>
        /// <returns>Das gewünschte Kürzel.</returns>
        public override int GetHashCode()
        {
            // Core
            int hash = (null == OrbitalPosition) ? 0 : OrbitalPosition.GetHashCode();

            // Merge all
            return(hash ^ Frequency.GetHashCode() ^ SymbolRate.GetHashCode() ^ Polarization.GetHashCode() ^ InnerFEC.GetHashCode() ^ UsesS2Modulation.GetHashCode() ^ Modulation.GetHashCode() ^ RollOff.GetHashCode() ^ IsWestPosition.GetHashCode());
        }