Beispiel #1
0
 //Constructors
 /// <summary>
 /// Creates an initialized instance
 /// </summary>
 /// <param name="readoutUnitName">Name of the readout unit</param>
 /// <param name="allowedPredictorsCfg">Allowed predictors</param>
 /// <param name="allowedPoolsCfg">Allowed pools</param>
 /// <param name="allowedInputFieldsCfg">Allowed input fields</param>
 public ReadoutUnitMapSettings(string readoutUnitName,
                               AllowedPredictorsSettings allowedPredictorsCfg,
                               AllowedPoolsSettings allowedPoolsCfg,
                               AllowedInputFieldsSettings allowedInputFieldsCfg)
 {
     ReadoutUnitName       = readoutUnitName;
     AllowedPredictorsCfg  = allowedPredictorsCfg == null ? null : (AllowedPredictorsSettings)allowedPredictorsCfg.DeepClone();
     AllowedPoolsCfg       = allowedPoolsCfg == null ? null : (AllowedPoolsSettings)allowedPoolsCfg.DeepClone();
     AllowedInputFieldsCfg = allowedInputFieldsCfg == null ? null : (AllowedInputFieldsSettings)allowedInputFieldsCfg.DeepClone();
     Check();
     return;
 }
Beispiel #2
0
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">Source instance</param>
 public AllowedPredictorsSettings(AllowedPredictorsSettings source)
     : this()
 {
     AddAllowedPredictors(source.AllowedPredictorCfgCollection);
     return;
 }