public BB84ProtocolFactoryConfiguration(string ID)
            : base(ID)
        {
            itemLogEnabled = ConfigurationFactory.CreateBoolConfigurationItem(idLogEnabled);
            itemLogEnabled.Value = itemLogEnabledValue;
            this.addObject(itemLogEnabled);

            itemBurstLog = ConfigurationFactory.CreateBoolConfigurationItem(idBurstLog);
            itemBurstLog.Value = itemBurstLogValue;
            this.addObject(itemBurstLog);

            itemDelta = ConfigurationFactory.CreateIntegerConfigurationItem(idDelta);
            itemDelta.MaxValue = itemDeltaMax;
            itemDelta.MinValue = itemDeltaMin;
            itemDelta.Value = itemDeltaValue;
            itemDelta.Comment = itemDeltaComment;
            this.addObject(itemDelta);

            itemPerformKeyPartialComparison = ConfigurationFactory.CreateBoolConfigurationItem(idPerformKeyPartialComparison);
            itemPerformKeyPartialComparison.Value = itemPerformKeyPartialComparisonValue;
            this.addObject(itemPerformKeyPartialComparison);

            itemPerformPrivacyAmplification = ConfigurationFactory.CreateBoolConfigurationItem(idPerformPrivacyAmplification);
            itemPerformPrivacyAmplification.Value = itemPerformPrivacyAmplificationValue;
            this.addObject(itemPerformPrivacyAmplification);

            itemErrorToleranceLevel = ConfigurationFactory.CreateFloatConfigurationItem(idErrorToleranceLevel);
            itemErrorToleranceLevel.MaxValue = itemErrorToleranceLevelMax;
            itemErrorToleranceLevel.MinValue = itemErrorToleranceLevelMin;
            itemErrorToleranceLevel.Value = itemErrorToleranceLevelValue;
            this.addObject(itemErrorToleranceLevel);
        }
        public BB84ProtocolConfiguration(string ID)
            : base(ID)
        {
            itemUseGlobalConfiguration = ConfigurationFactory.CreateBoolConfigurationItem(idUseGlobalConfiguration);
            itemUseGlobalConfiguration.Value = itemUseGlobalConfigurationValue;
            this.addObject(itemUseGlobalConfiguration);

            itemLogEnabled = ConfigurationFactory.CreateBoolConfigurationItem(idLogEnabled);
            itemLogEnabled.Value = ((ConfigurationItemBool)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idLogEnabled)).Value;
            this.addObject(itemLogEnabled);

            itemBurstLog = ConfigurationFactory.CreateBoolConfigurationItem(idBurstLog);
            itemBurstLog.Value = ((ConfigurationItemBool)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idBurstLog)).Value;
            this.addObject(itemBurstLog);

            itemDelta = ConfigurationFactory.CreateIntegerConfigurationItem(idDelta);
            itemDelta.MaxValue = ((ConfigurationItemInteger)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idDelta)).MaxValue;
            itemDelta.MinValue = ((ConfigurationItemInteger)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idDelta)).MinValue;
            itemDelta.Value = ((ConfigurationItemInteger)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idDelta)).Value;
            this.addObject(itemDelta);

            itemPerformKeyPartialComparison = ConfigurationFactory.CreateBoolConfigurationItem(idPerformKeyPartialComparison);
            itemPerformKeyPartialComparison.Value = ((ConfigurationItemBool)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idPerformKeyPartialComparison)).Value;
            this.addObject(itemPerformKeyPartialComparison);

            itemPerformPrivacyAmplification = ConfigurationFactory.CreateBoolConfigurationItem(idPerformPrivacyAmplification);
            itemPerformPrivacyAmplification.Value = ((ConfigurationItemBool)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idPerformPrivacyAmplification)).Value;
            this.addObject(itemPerformPrivacyAmplification);

            itemErrorToleranceLevel = ConfigurationFactory.CreateFloatConfigurationItem(idErrorToleranceLevel);
            itemErrorToleranceLevel.MaxValue = ((ConfigurationItemFloat)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idErrorToleranceLevel)).MaxValue;
            itemErrorToleranceLevel.MinValue = ((ConfigurationItemFloat)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idErrorToleranceLevel)).MinValue;
            itemErrorToleranceLevel.Value = ((ConfigurationItemFloat)BB84ProtocolFactory.Configuration.findProperty(BB84ProtocolFactory.Configuration.idErrorToleranceLevel)).Value;
            this.addObject(itemErrorToleranceLevel);
        }
        public QuantumOperatorNoiseConfiguration(string ID)
            : base(ID)
        {
            itemNoiseEnabled = ConfigurationFactory.CreateBoolConfigurationItem(idNoiseEnabled);
            itemNoiseEnabled.Value = itemNoiseEnabledValue;
            this.addObject(itemNoiseEnabled);

            itemNoiseFactor = ConfigurationFactory.CreateFloatConfigurationItem(idNoiseFactor);
            itemNoiseFactor.MaxValue = itemNoiseFactorMax;
            itemNoiseFactor.MinValue = itemNoiseFactorMin;
            itemNoiseFactor.Value = itemNoiseFactorValue;
            this.addObject(itemNoiseFactor);
        }
 public static ConfigurationItemFloat CreateConfigurationItemFloat(string ID, bool volatil)
 {
     ConfigurationItemFloat item = new ConfigurationItemFloat(ID, volatil);
     return item;
 }