Exemple #1
0
 //Constructors
 /// <summary>
 /// Creates an unitialized instance.
 /// </summary>
 /// <param name="networksCfg">The configuration of the cluster networks.</param>
 /// <param name="weightsCfg">The configuration of the macro-weights.</param>
 public TNRNetClusterProbabilisticSettings(TNRNetClusterProbabilisticNetworksSettings networksCfg,
                                           TNRNetClusterProbabilisticWeightsSettings weightsCfg
                                           )
 {
     NetworksCfg = (TNRNetClusterProbabilisticNetworksSettings)networksCfg.DeepClone();
     WeightsCfg  = (TNRNetClusterProbabilisticWeightsSettings)weightsCfg.DeepClone();
     Check();
     return;
 }
Exemple #2
0
        /// <summary>
        /// Creates an initialized instance.
        /// </summary>
        /// <param name="elem">A xml element containing the configuration data.</param>
        public TNRNetClusterProbabilisticSettings(XElement elem)
        {
            //Validation
            XElement settingsElem = Validate(elem, XsdTypeName);

            //Parsing
            NetworksCfg = new TNRNetClusterProbabilisticNetworksSettings(settingsElem.Element("networks"));
            WeightsCfg  = new TNRNetClusterProbabilisticWeightsSettings(settingsElem.Element("weights"));
            Check();
            return;
        }
 /// <summary>
 /// The deep copy constructor
 /// </summary>
 /// <param name="source">The source instance.</param>
 public TNRNetClusterProbabilisticNetworksSettings(TNRNetClusterProbabilisticNetworksSettings source)
     : this(source.NetworkCfgCollection)
 {
     return;
 }